Initial commit
This commit is contained in:
commit
7724a7614e
24 changed files with 1653 additions and 0 deletions
44
app/helm/templates/deployment.yml
Normal file
44
app/helm/templates/deployment.yml
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
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
|
||||
Reference in a new issue