apiVersion: apps/v1 kind: Deployment metadata: namespace: {{ deploy.namespace }} name: stream-site-{{ deploy.stream }} labels: app: nginx type: stream-site stream: {{ deploy.stream }} spec: replicas: 1 selector: matchLabels: app: nginx type: stream-site stream: {{ deploy.stream }} strategy: type: Recreate revisionHistoryLimit: 5 template: metadata: labels: app: nginx type: stream-site stream: {{ deploy.stream }} spec: nodeName: {{ desc.streams[deploy.stream]['site-worker'] }} securityContext: runAsUser: 998 fsGroup: 998 containers: - name: nginx image: spreadspace/nginx-streaming:{{ desc.globals.deployment.parameter.nginx_image_version }} 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-{{ deploy.stream }} - name: www hostPath: type: Directory path: /srv/www/{{ desc.globals.name }} readOnly: yes