EUGENIO SOUZA CARVALHO 3 年之前
父节点
当前提交
c21f43f0f7
共有 2 个文件被更改,包括 4 次插入2 次删除
  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)
         # permanent redirecting of all requests on http (80) to https (443)
         - --entrypoints.web.http.redirections.entryPoint.to=websecure
         - --entrypoints.web.http.redirections.entryPoint.to=websecure
         - --entrypoints.websecure.http.tls.certResolver=default
         - --entrypoints.websecure.http.tls.certResolver=default
+        #- --entrypoints.websecure.http.tls.certResolver=letsencrypt
 
 
         # Let's Encrypt Configurtion:
         # Let's Encrypt Configurtion:
         # Please note that this is the staging Let's Encrypt server configuration.
         # Please note that this is the staging Let's Encrypt server configuration.

+ 3 - 2
040-app.yaml

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