68 lines
1.6 KiB
YAML
68 lines
1.6 KiB
YAML
|
|
# puppeteer:
|
|
# platform: linux/amd64
|
|
# image: registry.dev.k8s.transcity/sds/puppeteer:latest
|
|
# ports:
|
|
# - "13004:3000"
|
|
# extra_hosts:
|
|
# - "host.docker.internal:host-gateway"
|
|
# environment:
|
|
# LOG_FORMAT: "text"
|
|
# SERVER_PORT: 3000
|
|
# healthcheck:
|
|
# test: ["CMD", "wget", "--spider", "http://127.0.0.1:3000/health"]
|
|
# interval: 5s
|
|
# timeout: 2s
|
|
# retries: 10
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: sds-puppeteer
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/instance: puppeteer
|
|
app.kubernetes.io/name: puppeteer
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/instance: puppeteer
|
|
app.kubernetes.io/name: puppeteer
|
|
spec:
|
|
containers:
|
|
- name: puppeteer
|
|
image: registry.dev.k8s.transcity/sds/puppeteer:latest
|
|
imagePullPolicy: Always
|
|
env:
|
|
- name: LOG_FORMAT
|
|
value: text
|
|
- name: SERVER_PORT
|
|
value: "3000"
|
|
ports:
|
|
- name: http
|
|
containerPort: 3000
|
|
readinessProbe:
|
|
exec:
|
|
command: [ "wget", "-O", "/dev/null", "-q", "http://127.0.0.1:3000/health" ]
|
|
failureThreshold: 3
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 5
|
|
successThreshold: 1
|
|
timeoutSeconds: 2
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: sds-puppeteer
|
|
spec:
|
|
ports:
|
|
- name: http
|
|
port: 3000
|
|
targetPort: http
|
|
selector:
|
|
app.kubernetes.io/instance: puppeteer
|
|
app.kubernetes.io/name: puppeteer
|
|
type: ClusterIP
|