apiVersion: apps/v1 kind: Deployment metadata: name: linux-app-store namespace: linuxwebapp labels: app: linux-app-store spec: replicas: 2 selector: matchLabels: app: linux-app-store template: metadata: labels: app: linux-app-store spec: containers: - name: linux-app-store image: git.giaco.net/capitano/webapplinux:latest imagePullPolicy: Always ports: - containerPort: 80 resources: requests: memory: "128Mi" cpu: "100m" limits: memory: "256Mi" cpu: "200m" livenessProbe: httpGet: path: / port: 80 initialDelaySeconds: 30 periodSeconds: 10 readinessProbe: httpGet: path: / port: 80 initialDelaySeconds: 5 periodSeconds: 5 env: - name: NGINX_HOST value: "apps.local" - name: NGINX_PORT value: "80" - name: admin-api image: git.giaco.net/capitano/webapplinux-admin:latest imagePullPolicy: Always ports: - containerPort: 3000 resources: requests: memory: "64Mi" cpu: "50m" limits: memory: "128Mi" cpu: "100m" env: - name: ADMIN_TOKEN valueFrom: secretKeyRef: name: admin-secret key: admin-token - name: JWT_SECRET valueFrom: secretKeyRef: name: admin-secret key: jwt-secret livenessProbe: httpGet: path: /health port: 3000 initialDelaySeconds: 10 periodSeconds: 10 readinessProbe: httpGet: path: /health port: 3000 initialDelaySeconds: 5 periodSeconds: 5