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
This commit is contained in:
parent
1710f3a84b
commit
4292b862a3
@ -25,6 +25,9 @@ spec:
|
|||||||
- name: http
|
- name: http
|
||||||
containerPort: 80
|
containerPort: 80
|
||||||
hostPort: 80
|
hostPort: 80
|
||||||
|
- name: https
|
||||||
|
containerPort: 443
|
||||||
|
hostPort: 443
|
||||||
- name: admin
|
- name: admin
|
||||||
containerPort: 8080
|
containerPort: 8080
|
||||||
securityContext:
|
securityContext:
|
||||||
@ -33,6 +36,8 @@ spec:
|
|||||||
- --api
|
- --api
|
||||||
- --logLevel=INFO
|
- --logLevel=INFO
|
||||||
- --kubernetes
|
- --kubernetes
|
||||||
|
- --entrypoints=Name:http Address::80
|
||||||
|
- --entrypoints=Name:https Address::443 TLS
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
role: ${INGRESS_CONTROLLER_ROLE}
|
role: ${INGRESS_CONTROLLER_ROLE}
|
||||||
---
|
---
|
||||||
@ -48,6 +53,9 @@ spec:
|
|||||||
- name: http
|
- name: http
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
port: 80
|
port: 80
|
||||||
|
- name: https
|
||||||
|
protocol: TCP
|
||||||
|
port: 443
|
||||||
- name: admin
|
- name: admin
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
port: 8080
|
port: 8080
|
||||||
|
Loading…
Reference in New Issue
Block a user