In the kubernetes cluster, setup a proxy to update image version of deployment.
It's used in continuous deployment scenario, to avoid exposing Kubernetes API Server to Internet.
- Replace
AUTH_TOKEN
value with random string in base64 format, indoc/manifests/secret.yaml
file. - Replace or remove
host
andtls
values indoc/manifests/ingress.yaml
file. - Apply all manifests to to cluster,
kubectl apply -f doc/manifests/
.
curl --request PATCH \
--url 'https://deploy-proxy.example.com/namespaces/default/deployments/nginx-debug/containers/nginx?image=gcr.io/google_containers/nginx-slim:0.22' \
--header 'authorization: Bearer SOME-PRIVATE-TOKEN'