summaryrefslogtreecommitdiff
path: root/contrib/k8s-emc/acme-hack/nginx-acme-deploy.yml
blob: 3549f0ddece897a721b612cda2275c67f4b5d0ce (plain) (blame)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
apiVersion: apps/v1
kind: Deployment
metadata:
  namespace: emc
  name: nginx-acme-hack-emc-00
  labels:
    app: nginx
    type: acme-challenge
    tier: hack
    worker: emc-00
spec:
  replicas: 1
  selector:
    matchLabels:
      app: nginx
      type: acme-challenge
      tier: hack
      worker: emc-00
  strategy:
    type: Recreate
  revisionHistoryLimit: 5
  template:
    metadata:
      labels:
        app: nginx
        type: acme-challenge
        tier: hack
        worker: emc-00
    spec:
      nodeName: emc-00
      securityContext:
        runAsUser: 998
        fsGroup: 998
      containers:
      - name: nginx
        image: spreadspace/nginx:4
        imagePullPolicy: Always
        args:
        - nginx
        - -c
        - /srv/config/nginx.conf
        - -g
        - "daemon off;"
        volumeMounts:
        - name: home
          mountPath: /srv
        - name: nginx-lib
          mountPath: /var/lib/nginx
        - name: nginx-config
          mountPath: /srv/config
        - name: acme-challenge
          mountPath: /srv/www/.well-known/acme-challenge
      volumes:
      - name: home
        emptyDir:
          medium: Memory
      - name: nginx-lib
        emptyDir:
          medium: Memory
      - name: nginx-config
        configMap:
          name: nginx-acme-hack
      - name: acme-challenge
        hostPath:
          type: DirectoryOrCreate
          path: /var/run/acme/acme-challenge/