apiVersion: apps/v1 kind: Deployment metadata: name: travel-svc namespace: gooseek labels: app: travel-svc app.kubernetes.io/name: travel-svc app.kubernetes.io/part-of: gooseek spec: replicas: 2 selector: matchLabels: app: travel-svc template: metadata: labels: app: travel-svc spec: containers: - name: travel-svc image: gooseek/backend:latest env: - name: SERVICE value: "travel-svc" - name: PORT value: "3035" envFrom: - configMapRef: name: gooseek-config - secretRef: name: gooseek-secrets ports: - containerPort: 3035 name: http livenessProbe: httpGet: path: /health port: 3035 initialDelaySeconds: 10 periodSeconds: 20 readinessProbe: httpGet: path: /health port: 3035 initialDelaySeconds: 5 periodSeconds: 15 resources: requests: cpu: 150m memory: 192Mi limits: cpu: 700m memory: 512Mi --- apiVersion: v1 kind: Service metadata: name: travel-svc namespace: gooseek spec: type: ClusterIP selector: app: travel-svc ports: - port: 3035 targetPort: 3035 name: http