This repo shows a brief example of ytt templating.
- Obtain and target a Kubernetes Cluster.
- Deploy the application to the cluster:
Note: The values from
$ ytt -f config/ -f env/production.yml | kubectl apply -f - deployment.apps/application-name-server created service/application-service-name created configmap/application-config created
config/
are applied first and the production values fromenv/
will override them. - Forward local traffic to the cluster in order to visit the app:
$ kubectl port-forward service/application-service-name 8080:8080 Forwarding from 127.0.0.1:8080 -> 80 Forwarding from [::1]:8080 -> 80
- Verify the deployment
$ curl localhost:8080/app/