EUGENIO SOUZA CARVALHO 3 years ago
parent
commit
c21f43f0f7
2 changed files with 4 additions and 2 deletions
  1. 1 0
      020-deployment.yaml
  2. 3 2
      040-app.yaml

+ 1 - 0
020-deployment.yaml

@@ -49,6 +49,7 @@ spec:
         # permanent redirecting of all requests on http (80) to https (443)
         - --entrypoints.web.http.redirections.entryPoint.to=websecure
         - --entrypoints.websecure.http.tls.certResolver=default
+        #- --entrypoints.websecure.http.tls.certResolver=letsencrypt
 
         # Let's Encrypt Configurtion:
         # Please note that this is the staging Let's Encrypt server configuration.

+ 3 - 2
040-app.yaml

@@ -33,7 +33,7 @@ metadata:
 spec:
   ports:
     - name: http
-      port: 80
+      port: 8000
       targetPort: 8000
   selector:
     app: containous
@@ -46,6 +46,7 @@ metadata:
   name: myingress
   annotations:
     traefik.ingress.kubernetes.io/router.entrypoints: web, websecure
+    # traefik.ingress.kubernetes.io/router.tls.certresolver: letse
 spec:
   rules:
     - host: k8s.eugeniocarvalho.dev
@@ -54,4 +55,4 @@ spec:
           - path: ""
             backend:
               serviceName: whoami
-              servicePort: 80
+              servicePort: 8000