Mario Vázquez
2019-07-30 1e2ca71eab2d1c2704086dabfb3dcf94f5543885
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
apiVersion: apps/v1
kind: Deployment
metadata:
  name: haproxy-lb
  namespace: "{{ _haproxy_project }}"
  labels:
    app: haproxy-lb
spec:
  replicas: 1
  selector:
    matchLabels:
      app: haproxy-lb
  template:
    metadata:
      labels:
        app: haproxy-lb
    spec:
      containers:
      - image: registry.connect.redhat.com/haproxytech/haproxy:latest
        imagePullPolicy: Always
        name: haproxy
        ports:
        - containerPort: 8443
          protocol: TCP
        - containerPort: 8080
          protocol: TCP
        volumeMounts:
        - mountPath: /etc/haproxy
          name: config
      volumes:
      - configMap:
          defaultMode: 420
          items:
          - key: haproxy
            path: haproxy.cfg
          name: haproxy
        name: config