Browse Source

k8s_fedora: enable tls in traefik ingress

Add explicit entrypoints to the traefik controller configuration, with
the existing http but also adding a tls enable entrypoint on port 443.

Add corresponding ports to service and container definitions.

Story: 2002555
Task: 22117

Change-Id: I3413947276019b584db15a92f62a1a427ac26594
changes/73/575373/4
Ricardo Rocha 3 years ago
parent
commit
4292b862a3
  1. 8
      magnum/drivers/common/templates/kubernetes/fragments/enable-ingress-traefik

8
magnum/drivers/common/templates/kubernetes/fragments/enable-ingress-traefik

@ -25,6 +25,9 @@ spec:
- name: http
containerPort: 80
hostPort: 80
- name: https
containerPort: 443
hostPort: 443
- name: admin
containerPort: 8080
securityContext:
@ -33,6 +36,8 @@ spec:
- --api
- --logLevel=INFO
- --kubernetes
- --entrypoints=Name:http Address::80
- --entrypoints=Name:https Address::443 TLS
nodeSelector:
role: ${INGRESS_CONTROLLER_ROLE}
---
@ -48,6 +53,9 @@ spec:
- name: http
protocol: TCP
port: 80
- name: https
protocol: TCP
port: 443
- name: admin
protocol: TCP
port: 8080

Loading…
Cancel
Save