Initial commit
This commit is contained in:
commit
7724a7614e
24 changed files with 1653 additions and 0 deletions
4
app/helm/Chart.yaml
Normal file
4
app/helm/Chart.yaml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
apiVersion: v2
|
||||
name: ad-auth
|
||||
type: application
|
||||
version: 0.1.0
|
||||
1
app/helm/templates/NOTES.txt
Normal file
1
app/helm/templates/NOTES.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
[Public endpoint] NGINX Ingress auth URL: https://{{ .Values.host }}
|
||||
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
|
||||
16
app/helm/templates/ingress.yml
Normal file
16
app/helm/templates/ingress.yml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: sentry-demo-app
|
||||
spec:
|
||||
rules:
|
||||
- host: {{ .Values.host }}
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: sentry-demo-app
|
||||
port:
|
||||
number: 3000
|
||||
11
app/helm/templates/secret-docker.yml
Normal file
11
app/helm/templates/secret-docker.yml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{{- if and (.Values.dockerRegistry) (.Values.dockerRegistryAuth) }}
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
type: kubernetes.io/dockerconfigjson
|
||||
metadata:
|
||||
name: sentry-demo-app-docker
|
||||
labels:
|
||||
release: {{ .Release.Name }}
|
||||
stringData:
|
||||
.dockerconfigjson: '{"auths": {"{{ .Values.dockerRegistry }}": {"auth": "{{ .Values.dockerRegistryAuth }}"}}}'
|
||||
{{ end }}
|
||||
13
app/helm/templates/service.yml
Normal file
13
app/helm/templates/service.yml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
kind: Service
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: sentry-demo-app
|
||||
labels:
|
||||
app: sentry-demo-app
|
||||
spec:
|
||||
ports:
|
||||
- name: http
|
||||
port: 3000
|
||||
targetPort: 3000
|
||||
selector:
|
||||
app: sentry-demo-app
|
||||
6
app/helm/values.yaml
Normal file
6
app/helm/values.yaml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
image:
|
||||
host:
|
||||
sentry:
|
||||
dsn:
|
||||
dockerRegistry:
|
||||
dockerRegistryAuth:
|
||||
Reference in a new issue