apiVersion: apps/v1 kind: Deployment metadata: name: webui namespace: gooseek labels: app: webui app.kubernetes.io/name: webui app.kubernetes.io/part-of: gooseek spec: replicas: 2 selector: matchLabels: app: webui template: metadata: labels: app: webui spec: containers: - name: webui image: gooseek/webui:latest ports: - containerPort: 3000 name: http envFrom: - configMapRef: name: gooseek-config - secretRef: name: gooseek-secrets livenessProbe: httpGet: path: / port: 3000 initialDelaySeconds: 15 periodSeconds: 20 readinessProbe: httpGet: path: / port: 3000 initialDelaySeconds: 5 periodSeconds: 10 resources: requests: cpu: 100m memory: 256Mi limits: cpu: 1000m memory: 512Mi --- apiVersion: v1 kind: Service metadata: name: webui namespace: gooseek spec: type: ClusterIP selector: app: webui ports: - port: 3000 targetPort: 3000 name: http