diff options
author | Christian Pointner <equinox@spreadspace.org> | 2020-04-29 15:55:18 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2020-04-29 15:55:18 +0200 |
commit | b6e0c310c410e59ae210108d33fdc66bedb7cbf1 (patch) | |
tree | 6a2725ae62d1edd4d5ddb061dcce755636af90e1 /contrib/k8s-lwl/acme-hack/nginx-acme-deploy.yml | |
parent | workaround for mysql image (diff) |
add k8s-lwl
Diffstat (limited to 'contrib/k8s-lwl/acme-hack/nginx-acme-deploy.yml')
-rw-r--r-- | contrib/k8s-lwl/acme-hack/nginx-acme-deploy.yml | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/contrib/k8s-lwl/acme-hack/nginx-acme-deploy.yml b/contrib/k8s-lwl/acme-hack/nginx-acme-deploy.yml new file mode 100644 index 0000000..7d52f55 --- /dev/null +++ b/contrib/k8s-lwl/acme-hack/nginx-acme-deploy.yml @@ -0,0 +1,66 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + namespace: lwl + name: nginx-acme-hack-lw-live-00 + labels: + app: nginx + type: acme-challenge + tier: hack + worker: lw-live-00 +spec: + replicas: 1 + selector: + matchLabels: + app: nginx + type: acme-challenge + tier: hack + worker: lw-live-00 + strategy: + type: Recreate + revisionHistoryLimit: 5 + template: + metadata: + labels: + app: nginx + type: acme-challenge + tier: hack + worker: lw-live-00 + spec: + nodeName: lw-live-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/ |