apiVersion: apps/v1 kind: Deployment metadata: name: florale-emotion-frontend labels: app: florale-emotion-frontend spec: replicas: 2 selector: matchLabels: app: florale-emotion-frontend template: metadata: labels: app: florale-emotion-frontend spec: # Temporary workaround: ktown can't reach Harbor (ImagePullBackOff). # Pin to nuc until node networking to registry is fixed. nodeSelector: kubernetes.io/hostname: nuc imagePullSecrets: - name: harbor-registry-secret containers: - name: florale-emotion-frontend image: registry.julianvollmer.de/florale-emotion/florale-emotion-frontend:__IMAGE_TAG__ ports: - containerPort: 80 resources: requests: memory: "128Mi" cpu: "100m" limits: memory: "256Mi" cpu: "200m" livenessProbe: httpGet: path: /health port: 80 initialDelaySeconds: 30 periodSeconds: 10 readinessProbe: httpGet: path: /health port: 80 initialDelaySeconds: 5 periodSeconds: 5 --- apiVersion: v1 kind: Service metadata: name: florale-emotion-frontend-service spec: selector: app: florale-emotion-frontend ports: - protocol: TCP port: 80 targetPort: 80 type: ClusterIP