gcloud-lab/apps/base/customer1/paaas-landing/deployment.yaml

69 lines
1.5 KiB
YAML
Raw Normal View History

apiVersion: apps/v1
kind: Deployment
metadata:
name: paaas-landing
namespace: customer1
spec:
replicas: 1
selector:
matchLabels:
app: paaas-landing
template:
metadata:
labels:
app: paaas-landing
spec:
containers:
- name: web
2026-05-04 22:50:09 +00:00
image: ghcr.io/sirius0xdev/hermes_workspace:paaas-landing
imagePullPolicy: Always
ports:
2026-05-04 22:50:09 +00:00
- containerPort: 8080
resources:
requests:
cpu: 10m
2026-05-04 22:56:39 +00:00
memory: 100Mi
limits:
cpu: 50m
2026-05-04 22:56:39 +00:00
memory: 150Mi
2026-05-04 23:07:13 +00:00
startupProbe:
httpGet:
path: /
port: 8080
scheme: HTTP
initialDelaySeconds: 5
periodSeconds: 5
timeoutSeconds: 5
failureThreshold: 30
successThreshold: 1
2026-04-28 04:44:20 +00:00
readinessProbe:
httpGet:
path: / # or /index.html if needed
2026-05-04 22:24:50 +00:00
port: 8080
2026-05-04 22:56:39 +00:00
initialDelaySeconds: 30
periodSeconds: 30
2026-05-04 23:07:13 +00:00
2026-04-28 04:44:20 +00:00
livenessProbe:
httpGet:
path: /
2026-05-04 22:24:50 +00:00
port: 8080
2026-05-04 22:56:39 +00:00
initialDelaySeconds: 30
periodSeconds: 30
---
apiVersion: v1
kind: Service
metadata:
name: paaas-landing-svc
namespace: customer1
2026-04-28 04:42:42 +00:00
annotations:
networking.gke.io/healthcheck-policy: paaas-healthcheck
spec:
selector:
app: paaas-landing
ports:
- protocol: TCP
2026-05-04 22:24:50 +00:00
port: 8080
targetPort: 8080
2026-04-28 03:31:52 +00:00
type: ClusterIP