kubectl --kubeconfig=k8s-kubeconfig.yml create secret generic pgpassword --from-literal PGPASSWORD=CHANGEME
kubectl --kubeconfig=k8s-kubeconfig.yml create secret tls
kubectl --kubeconfig=k8s-kubeconfig.yml create secret docker-registry
https://kubernetes.github.io/ingress-nginx/deploy/#azure
kubectl --kubeconfig=k8s-kubeconfig.yml apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/static/mandatory.yaml
kubectl --kubeconfig=k8s-kubeconfig.yml apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/static/provider/cloud-generic.yaml
Create a namespace for cert-manager
kubectl --kubeconfig=k8s-kubeconfig.yml create namespace cert-manager
Apply the latest release of cert-manager https://github.com/jetstack/cert-manager
kubectl --kubeconfig=k8s-kubeconfig.yml apply --validate=false -f https://raw.githubusercontent.com/jetstack/cert-manager/release-0.11/deploy/manifests/00-crds.yaml
kubectl --kubeconfig=k8s-kubeconfig.yml apply -f k8s/certificate.yaml
kubectl --kubeconfig=k8s-kubeconfig.yml apply -f k8s/issuer.yaml
Constantly creating images can start to add up in storage consumption. Periodically you may wish to either remove just the data not associated with a container or you can remove all data.
# WARNING! This will remove:
# - all stopped containers
# - all networks not used by at least one container
# - all dangling images
# - all dangling build cache
docker system prune# WARNING! This will remove:
# - all stopped containers
# - all networks not used by at least one container
# - all images without at least one container associated to them
# - all build cache
docker system prune -aBuild the nginx image if it's not already configured from previous docker-compose builds.
docker build -f nginx/dev.Dockerfile nginx/.
Create a container running the nginx image.
docker run -it xxxxxxxxxxxx /bin/bash
Run test on your nginx configuration.
root@xxxxxxxxxxxx:/# nginx -t