44 lines
1.1 KiB
YAML
44 lines
1.1 KiB
YAML
kind: Deployment
|
|
apiVersion: apps/v1
|
|
metadata:
|
|
name: sentry-demo-app
|
|
labels:
|
|
app: sentry-demo-app
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: sentry-demo-app
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: sentry-demo-app
|
|
spec:
|
|
{{- if and (.Values.dockerRegistry) (.Values.dockerRegistryAuth) }}
|
|
imagePullSecrets:
|
|
- name: sentry-demo-app-docker
|
|
{{ end }}
|
|
containers:
|
|
- name: sentry-demo-app
|
|
image: {{ required "Missing required value: image" .Values.image }}
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- containerPort: 3000
|
|
protocol: TCP
|
|
livenessProbe:
|
|
initialDelaySeconds: 5
|
|
timeoutSeconds: 30
|
|
tcpSocket:
|
|
port: 3000
|
|
env:
|
|
- name: PORT
|
|
value: "3000"
|
|
- name: SENTRY_DSN
|
|
value: {{ .Vaslues.sentry.dsn }}
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 256Mi
|
|
limits:
|
|
cpu: 400m
|
|
memory: 1024Mi
|