- docker
- helm
- terraform
- Run
export KUBECONFIG=/tmp/config(for direct kubeconfig to the one created by terraform) on local terminal.- Possible to override kubeconfig path with
kubeconfig_pathterraform var.
- Possible to override kubeconfig path with
cd terraform/local-cluster
terraform init
terraform apply --auto-approvecd charts
helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx && helm repo update
helm upgrade --install ingress-nginx ingress-nginx/ingress-nginx \
--namespace ingress-nginx --create-namespace \
--values ingress-controller/ingress-nginx.yaml
helm upgrade --install podinfo ./charts/podinfo-webapp \
-f environments/production/official-podinfo/values.yaml \
--namespace official-podinfo --create-namespace
helm upgrade --install podinfo ./charts/podinfo-webapp \
-f environments/production/custom-podinfo/values.yaml \
--namespace custom-podinfo --create-namespacehttp://lcoalhost/official→ Official Podinfohttp://lcoalhost/custom→ Custom Podinfo
cd custom-podinfo
docker build -t custom-podinfo:latest .
docker tag custom-podinfo roiko5/custom-podinfo
docker push roiko5/custom-podinfoTo destroy the local cluster and clean up resources:
cd terraform/local-cluster
terraform destroy --auto-approve