-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelmfile.yaml
207 lines (177 loc) · 5.27 KB
/
helmfile.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
repositories:
- name: concourse
url: https://raw.githubusercontent.com/concourse/charts/gh-pages
- name: harbor
url: https://helm.goharbor.io
- name: confluentinc
url: https://confluentinc.github.io/cp-helm-charts/
- name: gitlab
url: https://charts.gitlab.io/
- name: loki
url: https://grafana.github.io/loki/charts
helmDefaults:
timeout: 600
recreatePods: true
# tillerless: true
kubeContext: {{ requiredEnv "CLUSTER_NAME" }}
releases:
# - name: deluge
# chart: ./deluge/deluge
# namespace: deluge
# Nginx Ingress and MetalLB
- name: nginx-ingress
chart: stable/nginx-ingress
namespace: ingress-nginx
values:
- controller:
extraArgs:
default-ssl-certificate: "ingress-nginx/default-ssl-certificate"
service:
loadBalancerIP: {{ requiredEnv "INGRESS_STATIC_IP" }}
publishService:
enabled: true
metrics:
enabled: true
# Specifically for the Prometheus Operator
serviceMonitor:
enabled: true
namespace: "monitoring"
additionalLabels:
prometheus: monitoring
# honorLabels: true
podSecurityPolicy:
enabled: true
tcp:
22: "gitlab-system/gitlab-gitlab-shell:22" # Git SSH
6514: "monitoring/fluentd:6514" # syslog forwarding
# udp:
# 514: "monitoring/fluentd:514" # syslog forwarding
- name: metallb
chart: stable/metallb
namespace: metallb-system
values:
- configInline:
address-pools:
- name: default
protocol: layer2
addresses:
- {{ requiredEnv "LOAD_BALANCER_IP_RANGE" }}
psp:
create: true
- name: harbor-postgres
chart: stable/postgresql
namespace: harbor-system
values:
- databases/postgres-base.yaml.gotmpl
- global:
postgresql:
existingSecret: harbor-postgres-postgresql-admin
postgresqlDatabase: registry
persistence:
existingClaim: data-harbor-postgres-postgresql-0
initdbScripts:
db-init.sql: |
CREATE DATABASE notary_server;
CREATE DATABASE notary_signer;
CREATE DATABASE clair;
#! Harbor
- name: harbor
chart: ../harbor-helm
namespace: harbor-system
values:
- harbor/values.yaml.gotmpl
#! Concourse and Concourse Postgres Database.
- name: postgres
chart: stable/postgresql
namespace: concourse-system
values:
- databases/postgres-base.yaml.gotmpl
- global:
postgresql:
existingSecret: concourse-postgres-postgresql-admin
persistence:
existingClaim: data-postgres-postgresql-0
postgresqlDatabase: atc
- name: concourse
chart: ../charts/stable/concourse
namespace: concourse-system
values:
- concourse/values.yaml.gotmpl
#! GitLab, GitLab Postgres Database, and GitLab Runner.
#! See https://docs.gitlab.com/charts/installation/version_mappings.html
- name: gitlab
chart: gitlab/gitlab
namespace: gitlab-system
recreatePods: false
values:
- gitlab/values.yaml.gotmpl
- name: gitlab-postgres
chart: stable/postgresql
namespace: gitlab-system
values:
- databases/postgres-base.yaml.gotmpl
- gitlab/postgres-values.yml.gotmpl
- name: gitlab-runner
chart: gitlab/gitlab-runner
namespace: gitlab-runner
values:
- gitlab/gitlab-runner-values.yaml.gotmpl
# Minio
- name: minio
chart: stable/minio
namespace: minio-system
values:
- image:
repository: minio/minio
tag: edge
nasgateway:
enabled: true
replicas: 1
pv: {{ requiredEnv "MINIO_PVC_LABEL" }}
ingress:
enabled: true
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/backend-protocol: "HTTP"
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
nginx.ingress.kubernetes.io/proxy-body-size: "0"
hosts:
- {{ requiredEnv "MINIO_DNS" }}
tls:
- hosts:
- {{ requiredEnv "MINIO_DNS" }}
persistence:
accessMode: ReadWriteOnce
size: 100Gi
# environment:
# MINIO_HTTP_TRACE: /dev/stdout
accessKey: {{ requiredEnv "MINIO_ACCESS_KEY" }}
secretKey: {{ requiredEnv "MINIO_SECRET_KEY" }}
# Observability
- name: monitoring
chart: stable/prometheus-operator
namespace: monitoring
values:
- monitoring/prometheus-operator-values.yaml.gotmpl
- name: snmp
chart: stable/prometheus-snmp-exporter
namespace: monitoring
values:
- monitoring/snmp-config.yaml.gotmpl
- monitoring/snmp-values.yaml.gotmpl
- name: loki
chart: loki/loki
namespace: monitoring
values:
- persistence:
enabled: true
accessModes:
- ReadWriteOnce
size: 300Gi
storageClassName: {{ requiredEnv "STORAGE_CLASS_NAME" }}
- name: fluentd
chart: stable/fluentd
namespace: monitoring
recreatePods: false
values:
- monitoring/fluentd-values.yaml.gotmpl