Update for a fonctionnal deployment
This commit is contained in:
parent
9fa90d889e
commit
206f44c362
16 changed files with 90 additions and 22 deletions
|
|
@ -1,13 +1,13 @@
|
|||
kind: Deployment
|
||||
apiVersion: apps/v1
|
||||
metadata:
|
||||
namespace: tools
|
||||
namespace: traefik
|
||||
name: traefik
|
||||
labels:
|
||||
app: traefik
|
||||
|
||||
spec:
|
||||
replicas: 1
|
||||
replicas: {% if traefik_node_selector is defined %}{{ traefik_node_selector|length }}{% else %}1{% endif %}
|
||||
selector:
|
||||
matchLabels:
|
||||
app: traefik
|
||||
|
|
@ -27,15 +27,15 @@ spec:
|
|||
- name: http
|
||||
containerPort: 80
|
||||
protocol: TCP
|
||||
# hostPort: 80
|
||||
hostPort: 80
|
||||
- name: https
|
||||
containerPort: 443
|
||||
protocol: TCP
|
||||
# hostPort: 443
|
||||
hostPort: 443
|
||||
- name: traefik
|
||||
containerPort: 8080
|
||||
protocol: TCP
|
||||
# hostPort: 8080
|
||||
hostPort: 8080
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /ping
|
||||
|
|
@ -66,7 +66,7 @@ spec:
|
|||
name: config
|
||||
{% if traefik_node_selector is defined %}
|
||||
nodeSelector:
|
||||
kubernetes.io/hostname: "{% for node_selector in traefik_node_selector %}{{ node_selector }}{% if not loop.last %}, {% endif %}{% endfor %}"
|
||||
entrypoint: traefik
|
||||
{% endif %}
|
||||
dnsPolicy: ClusterFirst
|
||||
hostNetwork: false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue