-
Notifications
You must be signed in to change notification settings - Fork 0
Migrate to GitOps #24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
5d67213
Remove unnecessary Kubernetes resources and Helm releases for GitOps …
clofour c5e9f38
Add Application manifests
clofour cd09991
Add values.yaml for ArgoCD
clofour 0e0f504
Revert to before ArgoCD implementation, as Flux CD is more appropriat…
clofour 427731d
Create Flux CD release and repository files
clofour 9e0e792
Set up Flux CD bootstrap
clofour 184aeca
Add values and deps for charts
clofour 6e716df
Readd namespaces
clofour 5105e1c
Remove artifacts
clofour 55202b1
Ditto
clofour cd8553e
Various (too many) bug fixes
clofour 65bbc2c
Various bug fixes
clofour 00d1c2d
Finishing touches
clofour File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| apiVersion: kustomize.toolkit.fluxcd.io/v1 | ||
| kind: Kustomization | ||
| metadata: | ||
| name: cluster | ||
| namespace: flux-system | ||
| spec: | ||
| interval: 10m | ||
| prune: true | ||
| sourceRef: | ||
| kind: GitRepository | ||
| name: flux-system | ||
| path: ./flux | ||
| postBuild: | ||
| substituteFrom: | ||
| - kind: ConfigMap | ||
| name: shared-values | ||
| - kind: ConfigMap | ||
| name: runtime-values | ||
|
clofour marked this conversation as resolved.
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| apiVersion: v1 | ||
| kind: ConfigMap | ||
| metadata: | ||
| name: shared-values | ||
| namespace: flux-system | ||
| data: | ||
| key: value | ||
|
clofour marked this conversation as resolved.
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| apiVersion: kustomize.config.k8s.io/v1beta1 | ||
| kind: Kustomization | ||
| resources: | ||
| - bootstrap/cluster-kustomization.yaml | ||
| - bootstrap/shared-values.yaml | ||
| - repositories/emberstack.yaml | ||
| - repositories/envoy-proxy.yaml | ||
| - repositories/external-dns.yaml | ||
| - repositories/gitlab.yaml | ||
| - repositories/jetstack.yaml | ||
| - releases/cert-manager.yaml | ||
| - releases/cluster-issuer.yaml | ||
| - releases/dns01-certificate.yaml | ||
| - releases/envoy-gateway.yaml | ||
| - releases/external-dns.yaml | ||
| - releases/gateway-config.yaml | ||
| - releases/gitlab.yaml | ||
| - releases/reflector.yaml | ||
|
clofour marked this conversation as resolved.
clofour marked this conversation as resolved.
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| apiVersion: helm.toolkit.fluxcd.io/v2 | ||
| kind: HelmRelease | ||
| metadata: | ||
| name: cert-manager | ||
| namespace: flux-system | ||
| spec: | ||
| interval: 1m | ||
| chartRef: | ||
| kind: OCIRepository | ||
| name: cert-manager | ||
| namespace: flux-system | ||
| targetNamespace: cert-manager | ||
| install: | ||
| createNamespace: true | ||
| values: | ||
| crds: | ||
| enabled: true | ||
| keep: true | ||
|
|
||
| replicaCount: 1 | ||
|
|
||
| prometheus: | ||
| enabled: true | ||
|
|
||
| webhook: | ||
| timeoutSeconds: 25 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| apiVersion: helm.toolkit.fluxcd.io/v2 | ||
| kind: HelmRelease | ||
| metadata: | ||
| name: cluster-issuer | ||
| namespace: flux-system | ||
| spec: | ||
| interval: 1m | ||
| dependsOn: | ||
| - name: cert-manager | ||
| chart: | ||
| spec: | ||
| chart: ./helm/cluster-issuer | ||
| sourceRef: | ||
| kind: GitRepository | ||
| name: flux-system | ||
| namespace: flux-system | ||
| targetNamespace: cert-manager | ||
| install: | ||
| createNamespace: true | ||
| values: | ||
| email: ${email} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| apiVersion: helm.toolkit.fluxcd.io/v2 | ||
| kind: HelmRelease | ||
| metadata: | ||
| name: dns01-certificate | ||
| namespace: flux-system | ||
| spec: | ||
| interval: 1m | ||
| dependsOn: | ||
| - name: cert-manager | ||
| - name: cluster-issuer | ||
| chart: | ||
| spec: | ||
| chart: ./helm/dns01-certificate | ||
| sourceRef: | ||
| kind: GitRepository | ||
| name: flux-system | ||
| namespace: flux-system | ||
| targetNamespace: cert-manager | ||
| install: | ||
| createNamespace: true | ||
| values: | ||
| name: wildcard-certificate | ||
| secretName: wildcard-certificate | ||
| issuer: letsencrypt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| apiVersion: helm.toolkit.fluxcd.io/v2 | ||
| kind: HelmRelease | ||
| metadata: | ||
| name: envoy-gateway | ||
| namespace: flux-system | ||
| spec: | ||
| interval: 1m | ||
| dependsOn: | ||
| - name: cert-manager | ||
| - name: dns01-certificate | ||
| chartRef: | ||
| kind: OCIRepository | ||
| name: envoy-proxy | ||
| namespace: flux-system | ||
| targetNamespace: envoy-gateway-system | ||
| install: | ||
| createNamespace: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| apiVersion: helm.toolkit.fluxcd.io/v2 | ||
| kind: HelmRelease | ||
| metadata: | ||
| name: external-dns | ||
| namespace: flux-system | ||
| spec: | ||
| interval: 1m | ||
| dependsOn: | ||
| - name: reflector | ||
| chart: | ||
| spec: | ||
| chart: external-dns | ||
| version: 1.20.0 | ||
| sourceRef: | ||
| kind: HelmRepository | ||
| name: external-dns | ||
| namespace: flux-system | ||
| targetNamespace: external-dns | ||
| install: | ||
| createNamespace: true | ||
| values: | ||
| provider: | ||
| name: digitalocean | ||
| env: | ||
| - name: DO_TOKEN | ||
| valueFrom: | ||
| secretKeyRef: | ||
| name: do-dns-secret | ||
| key: password | ||
| domainFilters: | ||
| - ${domain} | ||
| txtOwnerId: ${cluster_name} | ||
| sources: | ||
| - service | ||
| - gateway-httproute | ||
| policy: sync |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| apiVersion: helm.toolkit.fluxcd.io/v2 | ||
| kind: HelmRelease | ||
| metadata: | ||
| name: gateway-config | ||
| namespace: flux-system | ||
| spec: | ||
| interval: 1m | ||
| dependsOn: | ||
| - name: envoy-gateway | ||
| chart: | ||
| spec: | ||
| chart: ./helm/gateway-config | ||
| sourceRef: | ||
| kind: GitRepository | ||
| name: flux-system | ||
| namespace: flux-system | ||
| targetNamespace: envoy-gateway-system | ||
| install: | ||
| createNamespace: true | ||
| values: | ||
| name: gateway | ||
| certificateName: wildcard-certificate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,175 @@ | ||
| apiVersion: helm.toolkit.fluxcd.io/v2 | ||
| kind: HelmRelease | ||
| metadata: | ||
| name: gitlab | ||
| namespace: flux-system | ||
| spec: | ||
| interval: 1m | ||
| dependsOn: | ||
| - name: cert-manager | ||
| - name: dns01-certificate | ||
| - name: reflector | ||
| - name: cluster-issuer | ||
| - name: envoy-gateway | ||
| - name: gateway-config | ||
| chart: | ||
| spec: | ||
| chart: gitlab | ||
| version: 9.10.3 | ||
| sourceRef: | ||
| kind: HelmRepository | ||
| name: gitlab | ||
| namespace: flux-system | ||
| targetNamespace: gitlab | ||
| install: | ||
| createNamespace: true | ||
| values: | ||
| global: | ||
| edition: ce | ||
|
|
||
| initialRootPassword: | ||
| secret: gitlab-initial-root-password | ||
| key: password | ||
|
|
||
| hosts: | ||
| domain: ${domain} | ||
| https: true | ||
| gitlab: | ||
| name: ${gitlab_host}.${domain} | ||
| registry: | ||
| name: ${registry_host}.${domain} | ||
| pages: | ||
| name: ${pages_host}.${domain} | ||
|
|
||
| gatewayApi: | ||
| enabled: true | ||
| installEnvoy: false | ||
| configureCertmanager: false | ||
| gatewayRef: | ||
| name: gateway | ||
| namespace: envoy-gateway-system | ||
|
|
||
| ingress: | ||
| enabled: false | ||
| configureCertmanager: false | ||
|
|
||
| psql: | ||
| host: ${postgres_host} | ||
| port: ${postgres_port} | ||
| database: ${postgres_database} | ||
| username: ${postgres_username} | ||
| password: | ||
| secret: gitlab-postgres-secret | ||
| key: password | ||
|
|
||
| redis: | ||
| scheme: rediss | ||
| host: ${redis_host} | ||
| port: ${redis_port} | ||
| auth: | ||
| enabled: true | ||
| secret: gitlab-redis-secret | ||
| key: password | ||
|
|
||
| pages: | ||
| enabled: true | ||
|
|
||
| appConfig: | ||
| object_store: | ||
| enabled: true | ||
| proxy_download: true | ||
| connection: | ||
| secret: gitlab-s3-main-secret | ||
| key: connection | ||
|
|
||
| artifacts: | ||
| bucket: ${buckets_artifacts} | ||
| connection: {} | ||
| uploads: | ||
| bucket: ${buckets_uploads} | ||
| connection: {} | ||
| packages: | ||
| bucket: ${buckets_packages} | ||
| connection: {} | ||
| lfs: | ||
| bucket: ${buckets_lfs} | ||
| connection: {} | ||
| registry: | ||
| bucket: ${buckets_registry} | ||
| connection: {} | ||
| pages: | ||
| bucket: ${buckets_pages} | ||
| connection: {} | ||
|
|
||
| minio: | ||
| enabled: false | ||
|
|
||
| email: | ||
| display_name: GitLab | ||
| from: gitlab@${domain} | ||
| reply_to: noreply@${domain} | ||
|
|
||
| smtp: | ||
| enabled: true | ||
| domain: smtp.sendgrid.net | ||
| address: smtp.sendgrid.net | ||
| port: 2525 | ||
| user_name: apikey | ||
| password: | ||
| secret: gitlab-sendgrid-secret | ||
| key: password | ||
| tls: false | ||
| starttls_auto: true | ||
| openssl_verify_mode: peer | ||
|
|
||
| time_zone: UTC | ||
|
|
||
| extraEnv: | ||
| PGSSLMODE: require | ||
|
|
||
|
|
||
| postgresql: | ||
| install: false | ||
| redis: | ||
| install: false | ||
| gitlab: | ||
| webservice: | ||
| gatewayRoute: | ||
| sectionName: https | ||
| metrics: | ||
| enabled: true | ||
| serviceMonitor: | ||
| enabled: true | ||
| workhorse: | ||
| metrics: | ||
| enabled: true | ||
| serviceMonitor: | ||
| enabled: true | ||
| sidekiq: | ||
| metrics: | ||
| enabled: true | ||
| podMonitor: | ||
| enabled: true | ||
| gitlab-exporter: | ||
| metrics: | ||
| enabled: true | ||
| serviceMonitor: | ||
| enabled: true | ||
| gitlab-shell: | ||
| sshDaemon: gitlab-sshd | ||
| metrics: | ||
| enabled: true | ||
| serviceMonitor: | ||
| enabled: true | ||
| gitlab-runner: | ||
| install: false | ||
| registry: | ||
| metrics: | ||
| enabled: true | ||
| serviceMonitor: | ||
| enabled: true | ||
| prometheus: | ||
| install: false | ||
| nginx-ingress: | ||
| enabled: false | ||
| installCertmanager: false |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.