diff --git a/k8s/platform-gateway.yaml b/k8s/platform-gateway.yaml new file mode 100644 index 0000000..05cea4b --- /dev/null +++ b/k8s/platform-gateway.yaml @@ -0,0 +1,54 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: platform-gateway + namespace: studio-system + labels: + app: platform-gateway +spec: + replicas: 1 + selector: + matchLabels: + app: platform-gateway + template: + metadata: + labels: + app: platform-gateway + spec: + containers: + - name: platform-gateway + image: localhost:5000/platform-gateway:0.1.0 + imagePullPolicy: Always + ports: + - name: http + containerPort: 4500 + envFrom: + - secretRef: + name: platform-gateway-env + readinessProbe: + httpGet: + path: /health + port: 4500 + initialDelaySeconds: 5 + periodSeconds: 10 + livenessProbe: + httpGet: + path: /health + port: 4500 + initialDelaySeconds: 15 + periodSeconds: 20 +--- +apiVersion: v1 +kind: Service +metadata: + name: platform-gateway + namespace: studio-system + labels: + app: platform-gateway +spec: + selector: + app: platform-gateway + ports: + - name: http + port: 4500 + targetPort: 4500