Skip to content

Commit 749658f

Browse files
authored
Merge pull request #3 from code-tool/publish-charts
publish-charts
2 parents 10035f0 + 1178a83 commit 749658f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+2118
-0
lines changed

charts/coturn/Chart.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
name: coturn
3+
version: 0.0.1
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
apiVersion: v1
3+
kind: ConfigMap
4+
metadata:
5+
name: coturn-config
6+
labels:
7+
app: coturn
8+
data:
9+
turnserver.conf: |
10+
server-name={{ .Values.server_name }}
11+
realm={{ .Values.server_name }}
12+
static-auth-secret={{ .Values.coturn.sharedSecret }}
13+
use-auth-secret
14+
cli-password={{ .Values.coturn.cliPassword }}
15+
psql-userdb="host=coturn-pgbouncer dbname={{ .Values.coturn.postgres.dbname }} user={{ .Values.coturn.postgres.user }} password={{ .Values.coturn.postgres.password }} connect_timeout=30"
16+
cert=/etc/tls/tls.crt
17+
pkey=/etc/tls/tls.key
18+
no-loopback-peers
19+
no-multicast-peers
20+
verbose
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
---
2+
apiVersion: apps/v1
3+
kind: Deployment
4+
metadata:
5+
name: coturn
6+
labels:
7+
app: coturn
8+
spec:
9+
replicas: 1
10+
selector:
11+
matchLabels:
12+
app: coturn
13+
template:
14+
metadata:
15+
annotations:
16+
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") $ | sha256sum }}
17+
labels:
18+
app: coturn
19+
spec:
20+
containers:
21+
- name: coturn
22+
image: {{ .Values.coturn.image.repository }}:{{ .Values.coturn.image.tag }}
23+
imagePullPolicy: {{ .Values.coturn.image.pullPolicy }}
24+
resources:
25+
{{ toYaml .Values.coturn.resources | nindent 10 }}
26+
args:
27+
- --external-ip='$(detect-external-ip)'
28+
ports:
29+
- containerPort: 3478
30+
name: tcp
31+
protocol: TCP
32+
- containerPort: 5349
33+
name: tls
34+
protocol: TCP
35+
volumeMounts:
36+
- name: coturn-config
37+
mountPath: /etc/turnserver.conf
38+
subPath: turnserver.conf
39+
- name: coturn-tls
40+
mountPath: /etc/tls
41+
terminationGracePeriodSeconds: 10
42+
{{- if .Values.coturn.nodeSelector }}
43+
nodeSelector:
44+
{{ toYaml .Values.coturn.nodeSelector | nindent 8 }}
45+
{{- end }}
46+
{{- if .Values.coturn.tolerations }}
47+
tolerations:
48+
{{ toYaml .Values.coturn.tolerations | nindent 8 }}
49+
{{- end }}
50+
{{- if .Values.coturn.affinity }}
51+
affinity:
52+
{{ toYaml .Values.coturn.affinity | nindent 8 }}
53+
{{- end }}
54+
volumes:
55+
- name: coturn-config
56+
configMap:
57+
name: coturn-config
58+
- name: coturn-tls
59+
secret:
60+
secretName: tls
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
---
2+
apiVersion: apps/v1
3+
kind: Deployment
4+
metadata:
5+
name: coturn-pgbouncer
6+
labels:
7+
app: coturn-pgbouncer
8+
spec:
9+
replicas: {{ .Values.coturn.pgbouncer.replicas }}
10+
selector:
11+
matchLabels:
12+
app: coturn-pgbouncer
13+
template:
14+
metadata:
15+
labels:
16+
app: coturn-pgbouncer
17+
spec:
18+
containers:
19+
- name: pgbouncer
20+
mage: {{ .Values.coturn.pgbouncer.image.repository }}:{{ .Values.coturn.pgbouncer.image.tag }}
21+
imagePullPolicy: {{ .Values.coturn.pgbouncer.image.pullPolicy }}
22+
resources:
23+
{{ toYaml .Values.coturn.pgbouncer.resources | nindent 10 }}
24+
env:
25+
- name: PGBOUNCER_PORT
26+
value: "5432"
27+
- name: POSTGRESQL_HOST
28+
value: {{ .Values.coturn.postgres.host | quote }}
29+
- name: PGBOUNCER_DATABASE
30+
value: {{ .Values.coturn.postgres.dbname | quote }}
31+
- name: POSTGRESQL_USERNAME
32+
value: {{ .Values.coturn.postgres.user | quote }}
33+
- name: POSTGRESQL_PASSWORD
34+
value: {{ .Values.coturn.postgres.password | quote }}
35+
- name: PGBOUNCER_AUTH_TYPE
36+
value: {{ .Values.coturn.pgbouncer.authType | quote }}
37+
- name: PGBOUNCER_MAX_CLIENT_CONN
38+
value: {{ .Values.coturn.pgbouncer.maxClientConn | quote }}
39+
- name: PGBOUNCER_DEFAULT_POOL_SIZE
40+
value: {{ .Values.coturn.pgbouncer.poolSize | quote }}
41+
- name: PGBOUNCER_POOL_MODE
42+
value: {{ .Values.coturn.pgbouncer.poolMode | quote }}
43+
ports:
44+
- containerPort: 5432
45+
name: pgbouncer
46+
protocol: TCP
47+
{{- if .Values.coturn.pgbouncer.nodeSelector }}
48+
nodeSelector:
49+
{{ toYaml .Values.coturn.pgbouncer.nodeSelector | nindent 8 }}
50+
{{- end }}
51+
{{- if .Values.coturn.pgbouncer.tolerations }}
52+
tolerations:
53+
{{ toYaml .Values.coturn.pgbouncer.tolerations | nindent 8 }}
54+
{{- end }}
55+
{{- if .Values.coturn.pgbouncer.affinity }}
56+
affinity:
57+
{{ toYaml .Values.coturn.pgbouncer.affinity | nindent 8 }}
58+
{{- end }}
59+
terminationGracePeriodSeconds: 10
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
apiVersion: v1
3+
kind: Service
4+
metadata:
5+
name: coturn-pgbouncer
6+
annotations:
7+
cloud.google.com/neg: '{"ingress":false}'
8+
spec:
9+
selector:
10+
app: coturn-pgbouncer
11+
ports:
12+
- name: pgbouncer
13+
port: 5432
14+
targetPort: 5432
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
apiVersion: v1
3+
kind: Service
4+
metadata:
5+
name: coturn
6+
annotations:
7+
cloud.google.com/neg: '{"ingress":false}'
8+
spec:
9+
selector:
10+
app: coturn
11+
ports:
12+
- name: tcp
13+
port: 3478
14+
targetPort: 3478
15+
- name: tls
16+
port: 5349
17+
targetPort: 5349
18+
type: LoadBalancer

charts/ldap/Chart.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
name: ldap
3+
version: 0.0.1
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
apiVersion: v1
3+
kind: ConfigMap
4+
metadata:
5+
name: ldap-config
6+
labels:
7+
app: ldap
8+
data:
9+
haproxy.cfg: |
10+
global
11+
#debug
12+
13+
listen ipa
14+
bind 0.0.0.0:389
15+
mode tcp
16+
balance roundrobin
17+
{{- if .Values.ldap_servers }}
18+
{{ .Values.ldap_servers | nindent 6 }}
19+
{{- end }}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
apiVersion: apps/v1
3+
kind: Deployment
4+
metadata:
5+
name: ldap
6+
labels:
7+
app: ldap
8+
spec:
9+
replicas: {{ .Values.ldap.replicas }}
10+
selector:
11+
matchLabels:
12+
app: ldap
13+
template:
14+
metadata:
15+
annotations:
16+
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") $ | sha256sum }}
17+
labels:
18+
app: ldap
19+
spec:
20+
containers:
21+
- name: ldap
22+
image: {{ .Values.ldap.image.repository }}:{{ .Values.ldap.image.tag }}
23+
imagePullPolicy: {{ .Values.ldap.image.pullPolicy }}
24+
resources:
25+
{{ toYaml .Values.ldap.resources | nindent 10 }}
26+
ports:
27+
- containerPort: 389
28+
name: tcp
29+
protocol: TCP
30+
volumeMounts:
31+
- name: ldap-config
32+
mountPath: /usr/local/etc/haproxy/haproxy.cfg
33+
subPath: haproxy.cfg
34+
terminationGracePeriodSeconds: 10
35+
{{- if .Values.ldap.nodeSelector }}
36+
nodeSelector:
37+
{{ toYaml .Values.ldap.nodeSelector | nindent 8 }}
38+
{{- end }}
39+
{{- if .Values.ldap.tolerations }}
40+
tolerations:
41+
{{ toYaml .Values.ldap.tolerations | nindent 8 }}
42+
{{- end }}
43+
{{- if .Values.ldap.affinity }}
44+
affinity:
45+
{{ toYaml .Values.ldap.affinity | nindent 8 }}
46+
{{- end }}
47+
volumes:
48+
- name: ldap-config
49+
configMap:
50+
name: ldap-config

charts/ldap/templates/service.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
apiVersion: v1
3+
kind: Service
4+
metadata:
5+
name: ldap
6+
annotations:
7+
cloud.google.com/neg: '{"ingress":false}'
8+
spec:
9+
selector:
10+
app: ldap
11+
ports:
12+
- name: tcp
13+
port: 389
14+
targetPort: 389

0 commit comments

Comments
 (0)