githubEdit

Configure Ingress

Preparing local Linux environment or VM.

Do the following once to prepare your environment:

Reference: https://taasjci.atlassian.net/wiki/spaces/GS/pages/900531038/Creating+Ingress+controller+-+Completedarrow-up-right

Helm Setup

For deployment of Ingress controller, stock template from https://github.com/helm/charts/tree/master/stable/nginx-ingressarrow-up-right project is used with some customization.

Clone this project with git:

git clone https://github.com/helm/charts.git

Under stable/nginx-express/templates/, edit controller-deployment.yaml and remove the following block lines 104 to 112:

Under stable/nginx-express/, edit values.yaml and set controller.name and ingressClass to match your environment, like below:

Create Kubernetes secret:

kubectl create secret tls aks-ingress-tls --namespace ingress-basic --key aks-ingress-tls.key --cert aks-ingress-tls.crt

The files aks-ingress-tls.key and aks-ingress-tls.crt are and they are stored in lastpass

Create a policy for tiller:

kubectl policy add-role-to-user edit "system:serviceaccount:${TILLER_NAMESPACE}:tiller"

Install Helm Chart

Install helm chart (substitute your nginx container name and namespace name):

helm install --name nginx-as-dev nginx-ingress --namespace as-dev

Check Ingres

Check that nginx-ingress container was started (substitute your namespace name):

kubectl get services –-namespace as-dev

Configuring Certs

Convert a PFX to a Base64 string:

Generate a self signed cert

https://github.com/hashicorp/vault-guides/blob/master/operations/provision-vault/best-practices/terraform-aws/main.tfarrow-up-right

Here is another way of generating the certs using modules

Last updated

Was this helpful?