summaryrefslogtreecommitdiff
path: root/contrib/k8s-emc/stream-site-placeholdder-deploy.yml
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2018-03-18 22:38:34 +0100
committerChristian Pointner <equinox@spreadspace.org>2018-03-18 22:38:34 +0100
commit454c985ab2b60e0de9de07ed6ab2ee2289f8a364 (patch)
treeb1170fec76aa676cc4e3a928faf5b5cbc20672ef /contrib/k8s-emc/stream-site-placeholdder-deploy.yml
parentfix grafana init container (diff)
added placeholder site
Diffstat (limited to 'contrib/k8s-emc/stream-site-placeholdder-deploy.yml')
-rw-r--r--contrib/k8s-emc/stream-site-placeholdder-deploy.yml66
1 files changed, 66 insertions, 0 deletions
diff --git a/contrib/k8s-emc/stream-site-placeholdder-deploy.yml b/contrib/k8s-emc/stream-site-placeholdder-deploy.yml
new file mode 100644
index 0000000..9620c95
--- /dev/null
+++ b/contrib/k8s-emc/stream-site-placeholdder-deploy.yml
@@ -0,0 +1,66 @@
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ namespace: emc
+ name: stream-site-public
+ labels:
+ app: nginx
+ type: stream-site
+ tier: placeholder
+ stream: public
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: nginx
+ type: stream-site
+ tier: placeholder
+ stream: public
+ strategy:
+ type: Recreate
+ revisionHistoryLimit: 5
+ template:
+ metadata:
+ labels:
+ app: nginx
+ type: stream-site
+ tier: placeholder
+ stream: public
+ spec:
+ nodeName: emc-00
+ securityContext:
+ runAsUser: 998
+ fsGroup: 998
+ containers:
+ - name: nginx
+ image: spreadspace/nginx-streaming: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: www
+ mountPath: /srv/www
+ volumes:
+ - name: home
+ emptyDir:
+ medium: Memory
+ - name: nginx-lib
+ emptyDir:
+ medium: Memory
+ - name: nginx-config
+ configMap:
+ name: stream-site-public
+ - name: www
+ hostPath:
+ type: Directory
+ path: /srv/www/emc