80/TCP 2d7h
-deployment.apps/my-nginx 1/1 1 1 2d7h
-replicaset.apps/my-nginx-65c68bbcdf 1 1 1 2d7h
-```
+NAME READY UP-TO-DATE AVAILABLE AGE
+deployment.apps/my-release-ingress-nginx-controller 1/1 1 1 110s
-## Stick the nginx-ingress-controler and my-nginx app together
-Finally, the nginx-ingress controller needs a port-mapping pointing to the my-nginx app. This will be done with a config-map `nginx-ingress-tcp-services-config-map.yml`, referenced earlier in the nginx-ingress deployment definition:
-```
----
-apiVersion: v1
-kind: ConfigMap
-metadata:
- name: tcp-services
- namespace: ingress-nginx
-data:
- "9000": default/my-nginx:80
-```
-Apply with `kubectl apply -f nginx-ingress-tcp-services-config-map.yml`:
-```
-configmap/tcp-services created
-```
-Subsequently the config-map can be edited with `kubectl -n ingress-nginx edit configmap tcp-services`
-
-**Changes to config-maps do not take effect on running pods! A re-scale to 0 and back can solve this problem: https://stackoverflow.com/questions/37317003/restart-pods-when-configmap-updates-in-kubernetes**
-
-## Test exposed app on TCP-port 9000
-```
-dominik@muggler:~$ curl -s http://10.62.94.246:9000
-
-
-
-Welcome to nginx!
-
-
-
-Welcome to nginx!
-If you see this page, the nginx web server is successfully installed and
-working. Further configuration is required.
-
-For online documentation and support please refer to
-nginx.org.
-Commercial support is available at
-nginx.com.
-
-Thank you for using nginx.
-
-
-```
-Check logs of ingress-nginx-controller POD:
-```
-root@k3s-master:~# kubectl get pods --all-namespaces |grep ingress-nginx
-[...]
-ingress-nginx ingress-nginx-controller-d88d95c-khbv4 1/1 Running 0 4m36s
-[...]
-```
-```
-root@k3s-master:~# kubectl logs ingress-nginx-controller-d88d95c-khbv4 -f -n ingress-nginx
-[...]
-[10.62.94.1] [23/Aug/2020:16:38:33 +0000] TCP 200 850 81 0.001
-[...]
-```
-Check logs of my-nginx POD:
-```
-root@k3s-master:/k3s# kubectl get pods
-NAME READY STATUS RESTARTS AGE
-my-nginx-65c68bbcdf-xkhqj 1/1 Running 0 90m
-```
-```
-kubectl logs my-nginx-65c68bbcdf-xkhqj -f
-[...]
-10.42.0.18 - - [23/Aug/2020:16:38:33 +0000] "GET / HTTP/1.1" 200 612 "-" "curl/7.64.0" "-"
-[...]
+NAME DESIRED CURRENT READY AGE
+replicaset.apps/my-release-ingress-nginx-controller-695774d99c 1 1 1 110s
```
# Cert-Manager (references ingress controller)
@@ -456,7 +254,7 @@ spec:
```
`kubectl apply -f lets-encrypt-cluster-issuers.yaml`
-## Deploying a LE-certificate
+## Deploying a LE-certificate
All you need is an `Ingress` resource of class `nginx` which references a ClusterIssuer (`letsencrypt-prod-issuer`) resource:
```
apiVersion: networking.k8s.io/v1beta1
@@ -505,66 +303,7 @@ kubectl -n describe challenge