Compare commits
54 commits
WIP-s3-bac
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| fb7c64ab2f | |||
|
|
1de5edd974 | ||
|
|
426b8cd5b2 | ||
| d522461bc1 | |||
| aa8ab8c63f | |||
|
|
b36613ae87 | ||
|
|
9bff9bd628 | ||
|
|
cd49aadaa5 | ||
|
|
ceca7d4e82 | ||
|
|
f7bab3b2c6 | ||
|
|
19b1c120e2 | ||
|
|
fa93ba9163 | ||
|
|
7eb0cdff9d | ||
|
|
0effbce5cf | ||
|
|
95e86b2711 | ||
|
|
ce8865007c | ||
|
|
5b438097bb | ||
|
|
89f92fdabc | ||
|
|
97709eff30 | ||
|
|
44fecf67c2 | ||
|
|
45da6fc210 | ||
|
|
94c51a4d77 | ||
|
|
115e8f27f6 | ||
|
|
4d1621b783 | ||
| 47c16eeafd | |||
| 2eab9bd80b | |||
| 699b6cedcb | |||
| c8d5195dc7 | |||
|
|
b3f77644e9 | ||
|
|
d677b4b0e7 | ||
|
|
67c513d1a5 | ||
| 3a666e718f | |||
|
|
b3582b9929 | ||
|
|
3277d6d854 | ||
| a92ed86c4d | |||
| fb64314fb2 | |||
| 975bb6b982 | |||
| e0f6cc77dd | |||
| dbda3d4ab5 | |||
| 28c23b9f08 | |||
|
|
f19b294b26 | ||
|
|
643176228e | ||
|
|
ea6b18b7ea | ||
| c9d14d451f | |||
| 6af5ce71cd | |||
| 55d9a06dc7 | |||
|
|
491be80842 | ||
|
|
e7d14a89cd | ||
|
|
51a55b5ed4 | ||
|
|
30c2ec054b | ||
|
|
fb03ded960 | ||
|
|
278c832cb4 | ||
|
|
a2324a16b7 | ||
|
|
d79653cc64 |
31 changed files with 920 additions and 166 deletions
24
template/registry/coder.yaml
Normal file
24
template/registry/coder.yaml
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: coder-reg
|
||||||
|
namespace: argocd
|
||||||
|
labels:
|
||||||
|
env: dev
|
||||||
|
finalizers:
|
||||||
|
- resources-finalizer.argocd.argoproj.io
|
||||||
|
spec:
|
||||||
|
destination:
|
||||||
|
name: in-cluster
|
||||||
|
namespace: argocd
|
||||||
|
source:
|
||||||
|
path: "{{{ .Env.CLIENT_REPO_ID }}}/{{{ .Env.DOMAIN }}}/stacks/coder"
|
||||||
|
repoURL: "https://{{{ .Env.CLIENT_REPO_DOMAIN }}}/{{{ .Env.CLIENT_REPO_ORG_NAME }}}"
|
||||||
|
targetRevision: HEAD
|
||||||
|
project: default
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
24
template/registry/docs.yaml
Normal file
24
template/registry/docs.yaml
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: docs-reg
|
||||||
|
namespace: argocd
|
||||||
|
labels:
|
||||||
|
env: dev
|
||||||
|
finalizers:
|
||||||
|
- resources-finalizer.argocd.argoproj.io
|
||||||
|
spec:
|
||||||
|
destination:
|
||||||
|
name: in-cluster
|
||||||
|
namespace: argocd
|
||||||
|
source:
|
||||||
|
path: argocd-stack
|
||||||
|
repoURL: "https://edp.buildth.ing/DevFW-CICD/website-and-documentation"
|
||||||
|
targetRevision: HEAD
|
||||||
|
project: default
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
24
template/registry/garm.yaml
Normal file
24
template/registry/garm.yaml
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: garm-reg
|
||||||
|
namespace: argocd
|
||||||
|
labels:
|
||||||
|
env: dev
|
||||||
|
finalizers:
|
||||||
|
- resources-finalizer.argocd.argoproj.io
|
||||||
|
spec:
|
||||||
|
destination:
|
||||||
|
name: in-cluster
|
||||||
|
namespace: argocd
|
||||||
|
source:
|
||||||
|
path: "{{{ .Env.CLIENT_REPO_ID }}}/{{{ .Env.DOMAIN }}}/stacks/garm"
|
||||||
|
repoURL: "https://{{{ .Env.CLIENT_REPO_DOMAIN }}}/{{{ .Env.CLIENT_REPO_ORG_NAME }}}"
|
||||||
|
targetRevision: HEAD
|
||||||
|
project: default
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
24
template/registry/terralist.yaml
Normal file
24
template/registry/terralist.yaml
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: terralist-reg
|
||||||
|
namespace: argocd
|
||||||
|
labels:
|
||||||
|
env: dev
|
||||||
|
finalizers:
|
||||||
|
- resources-finalizer.argocd.argoproj.io
|
||||||
|
spec:
|
||||||
|
destination:
|
||||||
|
name: in-cluster
|
||||||
|
namespace: argocd
|
||||||
|
source:
|
||||||
|
path: "{{{ .Env.CLIENT_REPO_ID }}}/{{{ .Env.DOMAIN }}}/stacks/terralist"
|
||||||
|
repoURL: "https://{{{ .Env.CLIENT_REPO_DOMAIN }}}/{{{ .Env.CLIENT_REPO_ORG_NAME }}}"
|
||||||
|
targetRevision: HEAD
|
||||||
|
project: default
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
32
template/stacks/coder/coder.yaml
Normal file
32
template/stacks/coder/coder.yaml
Normal file
|
|
@ -0,0 +1,32 @@
|
||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: coder
|
||||||
|
namespace: argocd
|
||||||
|
labels:
|
||||||
|
env: dev
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
retry:
|
||||||
|
limit: -1
|
||||||
|
destination:
|
||||||
|
name: in-cluster
|
||||||
|
namespace: coder
|
||||||
|
sources:
|
||||||
|
- repoURL: https://helm.coder.com/v2
|
||||||
|
chart: coder
|
||||||
|
targetRevision: 2.28.3
|
||||||
|
helm:
|
||||||
|
valueFiles:
|
||||||
|
- $values/{{{ .Env.CLIENT_REPO_ID }}}/{{{ .Env.DOMAIN }}}/stacks/coder/coder/values.yaml
|
||||||
|
- repoURL: https://{{{ .Env.CLIENT_REPO_DOMAIN }}}/{{{ .Env.CLIENT_REPO_ORG_NAME }}}
|
||||||
|
targetRevision: HEAD
|
||||||
|
ref: values
|
||||||
|
- repoURL: https://{{{ .Env.CLIENT_REPO_DOMAIN }}}/{{{ .Env.CLIENT_REPO_ORG_NAME }}}
|
||||||
|
targetRevision: HEAD
|
||||||
|
path: "{{{ .Env.CLIENT_REPO_ID }}}/{{{ .Env.DOMAIN }}}/stacks/coder/coder/manifests"
|
||||||
38
template/stacks/coder/coder/manifests/postgres.yaml
Normal file
38
template/stacks/coder/coder/manifests/postgres.yaml
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
---
|
||||||
|
apiVersion: postgresql.cnpg.io/v1
|
||||||
|
kind: Cluster
|
||||||
|
metadata:
|
||||||
|
name: coder-db
|
||||||
|
namespace: coder
|
||||||
|
spec:
|
||||||
|
instances: 1
|
||||||
|
primaryUpdateStrategy: unsupervised
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
memory: "1Gi"
|
||||||
|
cpu: "1"
|
||||||
|
limits:
|
||||||
|
memory: "1Gi"
|
||||||
|
cpu: "1"
|
||||||
|
managed:
|
||||||
|
roles:
|
||||||
|
- name: coder
|
||||||
|
createdb: true
|
||||||
|
login: true
|
||||||
|
passwordSecret:
|
||||||
|
name: coder-db-user
|
||||||
|
storage:
|
||||||
|
size: 10Gi
|
||||||
|
storageClass: csi-disk
|
||||||
|
---
|
||||||
|
apiVersion: postgresql.cnpg.io/v1
|
||||||
|
kind: Database
|
||||||
|
metadata:
|
||||||
|
name: coder
|
||||||
|
namespace: coder
|
||||||
|
spec:
|
||||||
|
cluster:
|
||||||
|
name: coder-db
|
||||||
|
name: coder
|
||||||
|
owner: coder
|
||||||
|
---
|
||||||
61
template/stacks/coder/coder/values.yaml
Normal file
61
template/stacks/coder/coder/values.yaml
Normal file
|
|
@ -0,0 +1,61 @@
|
||||||
|
coder:
|
||||||
|
# You can specify any environment variables you'd like to pass to Coder
|
||||||
|
# here. Coder consumes environment variables listed in
|
||||||
|
# `coder server --help`, and these environment variables are also passed
|
||||||
|
# to the workspace provisioner (so you can consume them in your Terraform
|
||||||
|
# templates for auth keys etc.).
|
||||||
|
#
|
||||||
|
# Please keep in mind that you should not set `CODER_HTTP_ADDRESS`,
|
||||||
|
# `CODER_TLS_ENABLE`, `CODER_TLS_CERT_FILE` or `CODER_TLS_KEY_FILE` as
|
||||||
|
# they are already set by the Helm chart and will cause conflicts.
|
||||||
|
env:
|
||||||
|
- name: CODER_ACCESS_URL
|
||||||
|
value: https://coder.{{{ .Env.DOMAIN_GITEA }}}
|
||||||
|
- name: CODER_PG_CONNECTION_URL
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
# You'll need to create a secret called coder-db-url with your
|
||||||
|
# Postgres connection URL like:
|
||||||
|
# postgres://coder:password@postgres:5432/coder?sslmode=disable
|
||||||
|
name: coder-db-user
|
||||||
|
key: url
|
||||||
|
# For production deployments, we recommend configuring your own GitHub
|
||||||
|
# OAuth2 provider and disabling the default one.
|
||||||
|
- name: CODER_OAUTH2_GITHUB_DEFAULT_PROVIDER_ENABLE
|
||||||
|
value: "false"
|
||||||
|
- name: EDGE_CONNECT_ENDPOINT
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: edge-credential
|
||||||
|
key: endpoint
|
||||||
|
- name: EDGE_CONNECT_USERNAME
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: edge-credential
|
||||||
|
key: username
|
||||||
|
- name: EDGE_CONNECT_PASSWORD
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: edge-credential
|
||||||
|
key: password
|
||||||
|
|
||||||
|
# (Optional) For production deployments the access URL should be set.
|
||||||
|
# If you're just trying Coder, access the dashboard via the service IP.
|
||||||
|
# - name: CODER_ACCESS_URL
|
||||||
|
# value: "https://coder.example.com"
|
||||||
|
|
||||||
|
#tls:
|
||||||
|
# secretNames:
|
||||||
|
# - my-tls-secret-name
|
||||||
|
service:
|
||||||
|
type: ClusterIP
|
||||||
|
|
||||||
|
ingress:
|
||||||
|
enable: true
|
||||||
|
className: nginx
|
||||||
|
host: coder.{{{ .Env.DOMAIN_GITEA }}}
|
||||||
|
annotations:
|
||||||
|
cert-manager.io/cluster-issuer: main
|
||||||
|
tls:
|
||||||
|
enable: true
|
||||||
|
secretName: coder-tls-secret
|
||||||
|
|
@ -18,12 +18,12 @@ spec:
|
||||||
name: in-cluster
|
name: in-cluster
|
||||||
namespace: argocd
|
namespace: argocd
|
||||||
sources:
|
sources:
|
||||||
- repoURL: https://{{{ .Env.CLIENT_REPO_DOMAIN }}}/DevFW-CICD/argocd-helm.git
|
- repoURL: https://github.com/argoproj/argo-helm.git
|
||||||
path: charts/argo-cd
|
path: charts/argo-cd
|
||||||
# TODO: RIRE Can be updated when https://github.com/argoproj/argo-cd/issues/20790 is fixed and merged
|
# TODO: RIRE Can be updated when https://github.com/argoproj/argo-cd/issues/20790 is fixed and merged
|
||||||
# As logout make problems, it is suggested to switch from path based routing to an own argocd domain,
|
# As logout make problems, it is suggested to switch from path based routing to an own argocd domain,
|
||||||
# similar to the CNOE amazon reference implementation and in our case, Forgejo
|
# similar to the CNOE amazon reference implementation and in our case, Forgejo
|
||||||
targetRevision: argo-cd-7.8.28-depends
|
targetRevision: argo-cd-9.4.6
|
||||||
helm:
|
helm:
|
||||||
valueFiles:
|
valueFiles:
|
||||||
- $values/{{{ .Env.CLIENT_REPO_ID }}}/{{{ .Env.DOMAIN }}}/stacks/core/argocd/values.yaml
|
- $values/{{{ .Env.CLIENT_REPO_ID }}}/{{{ .Env.DOMAIN }}}/stacks/core/argocd/values.yaml
|
||||||
|
|
@ -32,4 +32,4 @@ spec:
|
||||||
ref: values
|
ref: values
|
||||||
- repoURL: https://{{{ .Env.CLIENT_REPO_DOMAIN }}}/{{{ .Env.CLIENT_REPO_ORG_NAME }}}
|
- repoURL: https://{{{ .Env.CLIENT_REPO_DOMAIN }}}/{{{ .Env.CLIENT_REPO_ORG_NAME }}}
|
||||||
targetRevision: HEAD
|
targetRevision: HEAD
|
||||||
path: "{{{ .Env.CLIENT_REPO_ID }}}/{{{ .Env.DOMAIN }}}/stacks/core/argocd/manifests"
|
path: "{{{ .Env.CLIENT_REPO_ID }}}/{{{ .Env.DOMAIN }}}/stacks/core/argocd/manifests"
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,16 @@ configs:
|
||||||
params:
|
params:
|
||||||
server.insecure: true
|
server.insecure: true
|
||||||
cm:
|
cm:
|
||||||
|
oidc.config: |
|
||||||
|
name: FORGEJO
|
||||||
|
issuer: https://{{{ .Env.DOMAIN_DEX }}}
|
||||||
|
clientID: controller-argocd-dex
|
||||||
|
clientSecret: $dex-argo-client:clientSecret
|
||||||
|
requestedScopes:
|
||||||
|
- openid
|
||||||
|
- profile
|
||||||
|
- email
|
||||||
|
- groups
|
||||||
application.resourceTrackingMethod: annotation
|
application.resourceTrackingMethod: annotation
|
||||||
timeout.reconciliation: 60s
|
timeout.reconciliation: 60s
|
||||||
resource.exclusions: |
|
resource.exclusions: |
|
||||||
|
|
@ -18,10 +28,9 @@ configs:
|
||||||
- CiliumIdentity
|
- CiliumIdentity
|
||||||
clusters:
|
clusters:
|
||||||
- "*"
|
- "*"
|
||||||
accounts.provider-argocd: apiKey
|
|
||||||
url: https://{{{ .Env.DOMAIN_ARGOCD }}}
|
url: https://{{{ .Env.DOMAIN_ARGOCD }}}
|
||||||
rbac:
|
rbac:
|
||||||
policy.csv: 'g, provider-argocd, role:admin'
|
policy.csv: 'g, DevFW, role:admin'
|
||||||
|
|
||||||
tls:
|
tls:
|
||||||
certificates:
|
certificates:
|
||||||
|
|
|
||||||
30
template/stacks/core/cloudnative-pg.yaml
Normal file
30
template/stacks/core/cloudnative-pg.yaml
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: cloudnative-pg
|
||||||
|
namespace: argocd
|
||||||
|
labels:
|
||||||
|
env: dev
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
- ServerSideApply=true
|
||||||
|
retry:
|
||||||
|
limit: -1
|
||||||
|
destination:
|
||||||
|
name: in-cluster
|
||||||
|
namespace: cloudnative-pg
|
||||||
|
sources:
|
||||||
|
- repoURL: https://cloudnative-pg.github.io/charts
|
||||||
|
chart: cloudnative-pg
|
||||||
|
targetRevision: 0.26.1
|
||||||
|
helm:
|
||||||
|
valueFiles:
|
||||||
|
- $values/{{{ .Env.CLIENT_REPO_ID }}}/{{{ .Env.DOMAIN }}}/stacks/core/cloudnative-pg/values.yaml
|
||||||
|
- repoURL: https://{{{ .Env.CLIENT_REPO_DOMAIN }}}/{{{ .Env.CLIENT_REPO_ORG_NAME }}}
|
||||||
|
targetRevision: HEAD
|
||||||
|
ref: values
|
||||||
1
template/stacks/core/cloudnative-pg/values.yaml
Normal file
1
template/stacks/core/cloudnative-pg/values.yaml
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
# No need for values here.
|
||||||
29
template/stacks/core/dex.yaml
Normal file
29
template/stacks/core/dex.yaml
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: dex
|
||||||
|
namespace: argocd
|
||||||
|
labels:
|
||||||
|
env: dev
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
retry:
|
||||||
|
limit: -1
|
||||||
|
destination:
|
||||||
|
name: in-cluster
|
||||||
|
namespace: dex
|
||||||
|
sources:
|
||||||
|
- repoURL: https://charts.dexidp.io
|
||||||
|
chart: dex
|
||||||
|
targetRevision: 0.23.0
|
||||||
|
helm:
|
||||||
|
valueFiles:
|
||||||
|
- $values/{{{ .Env.CLIENT_REPO_ID }}}/{{{ .Env.DOMAIN }}}/stacks/core/dex/values.yaml
|
||||||
|
- repoURL: https://{{{ .Env.CLIENT_REPO_DOMAIN }}}/{{{ .Env.CLIENT_REPO_ORG_NAME }}}
|
||||||
|
targetRevision: HEAD
|
||||||
|
ref: values
|
||||||
76
template/stacks/core/dex/values.yaml
Normal file
76
template/stacks/core/dex/values.yaml
Normal file
|
|
@ -0,0 +1,76 @@
|
||||||
|
ingress:
|
||||||
|
enabled: true
|
||||||
|
className: nginx
|
||||||
|
annotations:
|
||||||
|
cert-manager.io/cluster-issuer: main
|
||||||
|
hosts:
|
||||||
|
- host: {{{ .Env.DOMAIN_DEX }}}
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- {{{ .Env.DOMAIN_DEX }}}
|
||||||
|
secretName: dex-cert
|
||||||
|
|
||||||
|
envVars:
|
||||||
|
- name: FORGEJO_CLIENT_SECRET
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: dex-forgejo-client
|
||||||
|
key: clientSecret
|
||||||
|
- name: FORGEJO_CLIENT_ID
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: dex-forgejo-client
|
||||||
|
key: clientID
|
||||||
|
- name: OIDC_DEX_GRAFANA_CLIENT_SECRET
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: dex-grafana-client
|
||||||
|
key: clientSecret
|
||||||
|
- name: OIDC_DEX_ARGO_CLIENT_SECRET
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: dex-argo-client
|
||||||
|
key: clientSecret
|
||||||
|
- name: LOG_LEVEL
|
||||||
|
value: debug
|
||||||
|
|
||||||
|
config:
|
||||||
|
# Set it to a valid URL
|
||||||
|
issuer: https://{{{ .Env.DOMAIN_DEX }}}
|
||||||
|
|
||||||
|
# See https://dexidp.io/docs/storage/ for more options
|
||||||
|
storage:
|
||||||
|
type: memory
|
||||||
|
|
||||||
|
oauth2:
|
||||||
|
skipApprovalScreen: true
|
||||||
|
alwaysShowLoginScreen: false
|
||||||
|
|
||||||
|
connectors:
|
||||||
|
- type: gitea
|
||||||
|
id: gitea
|
||||||
|
name: Forgejo
|
||||||
|
config:
|
||||||
|
clientID: "$FORGEJO_CLIENT_ID"
|
||||||
|
clientSecret: "$FORGEJO_CLIENT_SECRET"
|
||||||
|
redirectURI: https://{{{ .Env.DOMAIN_DEX }}}/callback
|
||||||
|
baseURL: https://edp.buildth.ing
|
||||||
|
# loadAllGroups: true
|
||||||
|
orgs:
|
||||||
|
- name: DevFW
|
||||||
|
enablePasswordDB: false
|
||||||
|
|
||||||
|
staticClients:
|
||||||
|
- id: controller-argocd-dex
|
||||||
|
name: ArgoCD Client
|
||||||
|
redirectURIs:
|
||||||
|
- "https://{{{ .Env.DOMAIN_ARGOCD }}}/auth/callback"
|
||||||
|
secretEnv: "OIDC_DEX_ARGO_CLIENT_SECRET"
|
||||||
|
- id: grafana
|
||||||
|
redirectURIs:
|
||||||
|
- "https://{{{ .Env.DOMAIN_GRAFANA }}}/login/generic_oauth"
|
||||||
|
name: "Grafana"
|
||||||
|
secretEnv: "OIDC_DEX_GRAFANA_CLIENT_SECRET"
|
||||||
|
|
@ -28,7 +28,7 @@ spec:
|
||||||
# https://forgejo.org/docs/v1.21/admin/actions/#offline-registration
|
# https://forgejo.org/docs/v1.21/admin/actions/#offline-registration
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: runner-register
|
- name: runner-register
|
||||||
image: code.forgejo.org/forgejo/runner:6.4.0
|
image: code.forgejo.org/forgejo/runner:12.6.4
|
||||||
command:
|
command:
|
||||||
- "sh"
|
- "sh"
|
||||||
- "-c"
|
- "-c"
|
||||||
|
|
@ -39,7 +39,7 @@ spec:
|
||||||
--token ${RUNNER_SECRET} \
|
--token ${RUNNER_SECRET} \
|
||||||
--name ${RUNNER_NAME} \
|
--name ${RUNNER_NAME} \
|
||||||
--instance ${FORGEJO_INSTANCE_URL} \
|
--instance ${FORGEJO_INSTANCE_URL} \
|
||||||
--labels docker:docker://node:20-bookworm,ubuntu-22.04:docker://ghcr.io/catthehacker/ubuntu:act-22.04,ubuntu-latest:docker://ghcr.io/catthehacker/ubuntu:act-22.04
|
--labels docker:docker://node:24-bookworm,ubuntu-22.04:docker://ghcr.io/catthehacker/ubuntu:act-22.04,ubuntu-latest:docker://ghcr.io/catthehacker/ubuntu:act-24.04,ubuntu-24.04:docker://ghcr.io/catthehacker/ubuntu:act-24.04
|
||||||
env:
|
env:
|
||||||
- name: RUNNER_NAME
|
- name: RUNNER_NAME
|
||||||
valueFrom:
|
valueFrom:
|
||||||
|
|
@ -57,8 +57,8 @@ spec:
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
containers:
|
containers:
|
||||||
- name: runner
|
- name: runner
|
||||||
image: code.forgejo.org/forgejo/runner:6.4.0
|
image: code.forgejo.org/forgejo/runner:12.6.4
|
||||||
command:
|
command:
|
||||||
- "sh"
|
- "sh"
|
||||||
- "-c"
|
- "-c"
|
||||||
- |
|
- |
|
||||||
|
|
|
||||||
|
|
@ -18,15 +18,9 @@ spec:
|
||||||
name: in-cluster
|
name: in-cluster
|
||||||
namespace: gitea
|
namespace: gitea
|
||||||
sources:
|
sources:
|
||||||
- repoURL: https://{{{ .Env.CLIENT_REPO_DOMAIN }}}/DevFW-CICD/forgejo-helm.git
|
- repoURL: https://code.forgejo.org/forgejo-helm/forgejo-helm.git
|
||||||
path: .
|
path: .
|
||||||
# first check out the desired version (example v9.0.0): https://code.forgejo.org/forgejo-helm/forgejo-helm/src/tag/v9.0.0/Chart.yaml
|
targetRevision: v16.2.0
|
||||||
# (note that the chart version is not the same as the forgejo application version, which is specified in the above Chart.yaml file)
|
|
||||||
# then use the devops pipeline and select development, forgejo and the desired version (example v9.0.0):
|
|
||||||
# https://{{{ .Env.CLIENT_REPO_DOMAIN }}}/DevFW-CICD/devops-pipelines/actions?workflow=update-helm-depends.yaml&actor=0&status=0
|
|
||||||
# finally update the desired version here and include "-depends", it is created by the devops pipeline.
|
|
||||||
# why do we have an added "-depends" tag? it resolves rate limitings when downloading helm OCI dependencies
|
|
||||||
targetRevision: v12.0.0-depends
|
|
||||||
helm:
|
helm:
|
||||||
valueFiles:
|
valueFiles:
|
||||||
- $values/{{{ .Env.CLIENT_REPO_ID }}}/{{{ .Env.DOMAIN }}}/stacks/forgejo/forgejo-server/values.yaml
|
- $values/{{{ .Env.CLIENT_REPO_ID }}}/{{{ .Env.DOMAIN }}}/stacks/forgejo/forgejo-server/values.yaml
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,91 @@
|
||||||
|
apiVersion: batch/v1
|
||||||
|
kind: CronJob
|
||||||
|
metadata:
|
||||||
|
name: forgejo-s3-backup
|
||||||
|
namespace: gitea
|
||||||
|
spec:
|
||||||
|
schedule: "0 1 * * *"
|
||||||
|
concurrencyPolicy: "Forbid"
|
||||||
|
successfulJobsHistoryLimit: 5
|
||||||
|
failedJobsHistoryLimit: 5
|
||||||
|
startingDeadlineSeconds: 600 # 10 minutes
|
||||||
|
jobTemplate:
|
||||||
|
spec:
|
||||||
|
# 60 min until backup - 10 min start - (backoffLimit * activeDeadlineSeconds) - some time sync buffer
|
||||||
|
activeDeadlineSeconds: 1350
|
||||||
|
backoffLimit: 2
|
||||||
|
ttlSecondsAfterFinished: 259200 #
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: rclone
|
||||||
|
image: rclone/rclone:1.70
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
env:
|
||||||
|
- name: SOURCE_BUCKET
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: forgejo-cloud-credentials
|
||||||
|
key: bucket-name
|
||||||
|
- name: AWS_ACCESS_KEY_ID
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: forgejo-cloud-credentials
|
||||||
|
key: access-key
|
||||||
|
- name: AWS_SECRET_ACCESS_KEY
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: forgejo-cloud-credentials
|
||||||
|
key: secret-key
|
||||||
|
volumeMounts:
|
||||||
|
- name: rclone-config
|
||||||
|
mountPath: /config/rclone
|
||||||
|
readOnly: true
|
||||||
|
- name: backup-dir
|
||||||
|
mountPath: /backup
|
||||||
|
readOnly: false
|
||||||
|
command:
|
||||||
|
- /bin/sh
|
||||||
|
- -c
|
||||||
|
- |
|
||||||
|
rclone sync source:/${SOURCE_BUCKET} /backup -v --ignore-checksum
|
||||||
|
restartPolicy: OnFailure
|
||||||
|
volumes:
|
||||||
|
- name: rclone-config
|
||||||
|
secret:
|
||||||
|
secretName: forgejo-s3-backup
|
||||||
|
- name: backup-dir
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: s3-backup
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: s3-backup
|
||||||
|
namespace: gitea
|
||||||
|
annotations:
|
||||||
|
everest.io/disk-volume-type: GPSSD
|
||||||
|
everest.io/crypt-key-id: {{{ .Env.PVC_KMS_KEY_ID }}}
|
||||||
|
spec:
|
||||||
|
storageClassName: csi-disk
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 100Gi
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: forgejo-s3-backup
|
||||||
|
namespace: gitea
|
||||||
|
type: Opaque
|
||||||
|
stringData:
|
||||||
|
rclone.conf: |
|
||||||
|
[source]
|
||||||
|
type = s3
|
||||||
|
provider = HuaweiOBS
|
||||||
|
env_auth = true
|
||||||
|
endpoint = obs.eu-de.otc.t-systems.com
|
||||||
|
region = eu-de
|
||||||
|
acl = private
|
||||||
|
|
@ -1,14 +1,5 @@
|
||||||
{{{- define "BUCKET_NAME" -}}}
|
|
||||||
{{{- if (getenv "FORGEJO_BUCKET_NAME") -}}}
|
|
||||||
{{{ getenv "FORGEJO_BUCKET_NAME" }}}
|
|
||||||
{{{- else -}}}
|
|
||||||
edp-forgejo-{{{ getenv "CLUSTER_ENVIRONMENT" }}}
|
|
||||||
{{{- end -}}}
|
|
||||||
{{{- end -}}}
|
|
||||||
|
|
||||||
|
# We use recreate to make sure only one instance with one version is running, because Forgejo might break or data gets inconsistant.
|
||||||
|
|
||||||
# We use recreate to make sure only one instance with one version is running, because Forgejo might break or data gets inconsistant.
|
|
||||||
strategy:
|
strategy:
|
||||||
type: Recreate
|
type: Recreate
|
||||||
|
|
||||||
|
|
@ -27,8 +18,10 @@ postgresql-ha:
|
||||||
persistence:
|
persistence:
|
||||||
enabled: true
|
enabled: true
|
||||||
size: 200Gi
|
size: 200Gi
|
||||||
|
storageClass: csi-disk
|
||||||
annotations:
|
annotations:
|
||||||
everest.io/crypt-key-id: {{{ .Env.PVC_KMS_KEY_ID }}}
|
everest.io/crypt-key-id: {{{ .Env.PVC_KMS_KEY_ID }}}
|
||||||
|
everest.io/disk-volume-type: GPSSD
|
||||||
|
|
||||||
test:
|
test:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|
@ -131,7 +124,7 @@ gitea:
|
||||||
MINIO_ENDPOINT: obs.eu-de.otc.t-systems.com:443
|
MINIO_ENDPOINT: obs.eu-de.otc.t-systems.com:443
|
||||||
STORAGE_TYPE: minio
|
STORAGE_TYPE: minio
|
||||||
MINIO_LOCATION: eu-de
|
MINIO_LOCATION: eu-de
|
||||||
MINIO_BUCKET: "{{{ template "BUCKET_NAME" }}}"
|
MINIO_BUCKET: "{{{ getenv "FORGEJO_BUCKET_NAME" }}}"
|
||||||
MINIO_USE_SSL: true
|
MINIO_USE_SSL: true
|
||||||
|
|
||||||
queue:
|
queue:
|
||||||
|
|
@ -146,6 +139,7 @@ gitea:
|
||||||
|
|
||||||
service:
|
service:
|
||||||
DISABLE_REGISTRATION: true
|
DISABLE_REGISTRATION: true
|
||||||
|
ENABLE_NOTIFY_MAIL: true
|
||||||
|
|
||||||
other:
|
other:
|
||||||
SHOW_FOOTER_VERSION: false
|
SHOW_FOOTER_VERSION: false
|
||||||
|
|
@ -173,7 +167,7 @@ service:
|
||||||
nodePort: 32222
|
nodePort: 32222
|
||||||
externalTrafficPolicy: Cluster
|
externalTrafficPolicy: Cluster
|
||||||
annotations:
|
annotations:
|
||||||
kubernetes.io/elb.id: {{{ .Env.LOADBALANCER_ID }}}
|
kubernetes.io/elb.id: {{{ .Env.LOADBALANCER_ID }}}
|
||||||
|
|
||||||
image:
|
image:
|
||||||
pullPolicy: "IfNotPresent"
|
pullPolicy: "IfNotPresent"
|
||||||
|
|
@ -181,19 +175,6 @@ image:
|
||||||
#tag: "8.0.3"
|
#tag: "8.0.3"
|
||||||
# Adds -rootless suffix to image name
|
# Adds -rootless suffix to image name
|
||||||
# rootless: true
|
# rootless: true
|
||||||
#fullOverride: {{{ getenv "CLIENT_REPO_DOMAIN" }}}/devfw-cicd/edp-forgejo:v1.1.0-edp-v11.0.3
|
fullOverride: {{{ getenv "CLIENT_REPO_DOMAIN" }}}/devfw-cicd/edp-forgejo:{{{ .Env.FORGEJO_IMAGE_TAG }}}
|
||||||
fullOverride: {{{ getenv "CLIENT_REPO_DOMAIN" }}}/devfw-cicd/edp-forgejo:osctest
|
|
||||||
|
|
||||||
forgejo:
|
forgejo: {}
|
||||||
runner:
|
|
||||||
enabled: true
|
|
||||||
image:
|
|
||||||
tag: latest
|
|
||||||
# replicas: 3
|
|
||||||
config:
|
|
||||||
runner:
|
|
||||||
labels:
|
|
||||||
- docker:docker://node:16-bullseye
|
|
||||||
- self-hosted:docker://ghcr.io/catthehacker/ubuntu:act-22.04
|
|
||||||
- ubuntu-22.04:docker://ghcr.io/catthehacker/ubuntu:act-22.04
|
|
||||||
- ubuntu-latest:docker://ghcr.io/catthehacker/ubuntu:act-22.04
|
|
||||||
29
template/stacks/garm/garm.yaml
Normal file
29
template/stacks/garm/garm.yaml
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: garm
|
||||||
|
namespace: argocd
|
||||||
|
labels:
|
||||||
|
env: dev
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
retry:
|
||||||
|
limit: -1
|
||||||
|
destination:
|
||||||
|
name: in-cluster
|
||||||
|
namespace: garm
|
||||||
|
sources:
|
||||||
|
- repoURL: https://edp.buildth.ing/DevFW-CICD/garm-helm
|
||||||
|
path: charts/garm
|
||||||
|
targetRevision: v0.0.7
|
||||||
|
helm:
|
||||||
|
valueFiles:
|
||||||
|
- $values/{{{ .Env.CLIENT_REPO_ID }}}/{{{ .Env.DOMAIN }}}/stacks/garm/garm/values.yaml
|
||||||
|
- repoURL: https://{{{ .Env.CLIENT_REPO_DOMAIN }}}/{{{ .Env.CLIENT_REPO_ORG_NAME }}}
|
||||||
|
targetRevision: HEAD
|
||||||
|
ref: values
|
||||||
42
template/stacks/garm/garm/values.yaml
Normal file
42
template/stacks/garm/garm/values.yaml
Normal file
|
|
@ -0,0 +1,42 @@
|
||||||
|
ingress:
|
||||||
|
enabled: true
|
||||||
|
className: nginx
|
||||||
|
annotations:
|
||||||
|
cert-manager.io/cluster-issuer: main
|
||||||
|
nginx.ingress.kubernetes.io/backend-protocol: HTTP
|
||||||
|
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
|
||||||
|
hosts:
|
||||||
|
- host: garm.{{{ .Env.DOMAIN_GITEA }}}
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
tls:
|
||||||
|
- secretName: garm-net-tls
|
||||||
|
hosts:
|
||||||
|
- garm.{{{ .Env.DOMAIN_GITEA }}}
|
||||||
|
|
||||||
|
# Credentials and Secrets
|
||||||
|
credentials:
|
||||||
|
edgeConnect:
|
||||||
|
existingSecretName: "edge-credential"
|
||||||
|
gitea:
|
||||||
|
url: "https://{{{ .Env.DOMAIN_GITEA }}}" # Required
|
||||||
|
db:
|
||||||
|
existingSecretName: garm-fixed-credentials
|
||||||
|
|
||||||
|
image:
|
||||||
|
repository: {{{ .Env.CLIENT_REPO_DOMAIN }}}/devfw-cicd/garm-forgejo
|
||||||
|
tag: v0.1.7-forgejo-1
|
||||||
|
|
||||||
|
providerConfig:
|
||||||
|
edgeConnect:
|
||||||
|
organization: edp2
|
||||||
|
region: EU
|
||||||
|
edgeConnectUrl: "https://hub.apps.edge.platform.mg3.mdb.osc.live"
|
||||||
|
cloudlet:
|
||||||
|
name: Hamburg
|
||||||
|
organization: TelekomOP
|
||||||
|
|
||||||
|
garm:
|
||||||
|
logging:
|
||||||
|
logLevel: info
|
||||||
25
template/stacks/garm/optimiser-receiver.yaml
Normal file
25
template/stacks/garm/optimiser-receiver.yaml
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: optimiser-receiver
|
||||||
|
namespace: argocd
|
||||||
|
labels:
|
||||||
|
env: dev
|
||||||
|
finalizers:
|
||||||
|
- resources-finalizer.argocd.argoproj.io
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
retry:
|
||||||
|
limit: -1
|
||||||
|
destination:
|
||||||
|
name: in-cluster
|
||||||
|
namespace: garm
|
||||||
|
source:
|
||||||
|
repoURL: https://{{{ .Env.CLIENT_REPO_DOMAIN }}}/{{{ .Env.CLIENT_REPO_ORG_NAME }}}
|
||||||
|
targetRevision: HEAD
|
||||||
|
path: "{{{ .Env.CLIENT_REPO_ID }}}/{{{ .Env.DOMAIN }}}/stacks/garm/optimiser-receiver"
|
||||||
93
template/stacks/garm/optimiser-receiver/deployment.yaml
Normal file
93
template/stacks/garm/optimiser-receiver/deployment.yaml
Normal file
|
|
@ -0,0 +1,93 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: sizer-receiver
|
||||||
|
labels:
|
||||||
|
app: sizer-receiver
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: sizer-receiver
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: sizer-receiver
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: receiver
|
||||||
|
image: edp.buildth.ing/devfw-cicd/forgejo-runner-sizer-receiver:0.0.4
|
||||||
|
args:
|
||||||
|
- --db=/data/metrics.db
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
containerPort: 8080
|
||||||
|
protocol: TCP
|
||||||
|
env:
|
||||||
|
- name: RECEIVER_READ_TOKEN
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: sizer-tokens
|
||||||
|
key: read-token
|
||||||
|
- name: RECEIVER_HMAC_KEY
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: sizer-tokens
|
||||||
|
key: hmac-key
|
||||||
|
volumeMounts:
|
||||||
|
- name: data
|
||||||
|
mountPath: /data
|
||||||
|
livenessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /health
|
||||||
|
port: http
|
||||||
|
initialDelaySeconds: 5
|
||||||
|
periodSeconds: 30
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /health
|
||||||
|
port: http
|
||||||
|
initialDelaySeconds: 2
|
||||||
|
periodSeconds: 10
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 50m
|
||||||
|
memory: 64Mi
|
||||||
|
limits:
|
||||||
|
cpu: 200m
|
||||||
|
memory: 128Mi
|
||||||
|
volumes:
|
||||||
|
- name: data
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: sizer-receiver-data
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: sizer-receiver
|
||||||
|
labels:
|
||||||
|
app: sizer-receiver
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: sizer-receiver
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
port: 8080
|
||||||
|
targetPort: http
|
||||||
|
protocol: TCP
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: sizer-receiver-data
|
||||||
|
labels:
|
||||||
|
app: sizer-receiver
|
||||||
|
annotations:
|
||||||
|
everest.io/disk-volume-type: GPSSD
|
||||||
|
spec:
|
||||||
|
storageClassName: csi-disk
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 1Gi
|
||||||
30
template/stacks/garm/optimiser-receiver/ingress.yaml
Normal file
30
template/stacks/garm/optimiser-receiver/ingress.yaml
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
|
||||||
|
cert-manager.io/cluster-issuer: main
|
||||||
|
{{{ if eq .Env.CLUSTER_TYPE "osc" }}}
|
||||||
|
dns.gardener.cloud/class: garden
|
||||||
|
dns.gardener.cloud/dnsnames: optimiser.{{{ .Env.DOMAIN }}}
|
||||||
|
dns.gardener.cloud/ttl: "600"
|
||||||
|
{{{ end }}}
|
||||||
|
name: optimiser-receiver
|
||||||
|
namespace: garm
|
||||||
|
spec:
|
||||||
|
ingressClassName: nginx
|
||||||
|
rules:
|
||||||
|
- host: optimiser.{{{ .Env.DOMAIN }}}
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- backend:
|
||||||
|
service:
|
||||||
|
name: optimiser-receiver
|
||||||
|
port:
|
||||||
|
number: 8080
|
||||||
|
path: /
|
||||||
|
pathType: Prefix
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- optimiser.{{{ .Env.DOMAIN }}}
|
||||||
|
secretName: optimiser-receiver-tls
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
apiVersion: v1
|
|
||||||
kind: Secret
|
|
||||||
metadata:
|
|
||||||
name: simple-user-secret
|
|
||||||
namespace: observability
|
|
||||||
type: Opaque
|
|
||||||
stringData:
|
|
||||||
username: simple-user
|
|
||||||
password: simple-password
|
|
||||||
|
|
@ -6,12 +6,51 @@ metadata:
|
||||||
dashboards: "grafana"
|
dashboards: "grafana"
|
||||||
spec:
|
spec:
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
everest.io/disk-volume-type: GPSSD
|
||||||
|
everest.io/crypt-key-id: {{{ .Env.PVC_KMS_KEY_ID }}}
|
||||||
spec:
|
spec:
|
||||||
|
storageClassName: csi-disk
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteOnce
|
- ReadWriteOnce
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 10Gi
|
storage: 10Gi
|
||||||
|
deployment:
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: grafana
|
||||||
|
env:
|
||||||
|
- name: OAUTH_CLIENT_SECRET
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
key: clientSecret
|
||||||
|
name: dex-grafana-client
|
||||||
|
config:
|
||||||
|
log.console:
|
||||||
|
level: debug
|
||||||
|
server:
|
||||||
|
root_url: "https://{{{ .Env.DOMAIN_GRAFANA }}}"
|
||||||
|
auth:
|
||||||
|
disable_login: "true"
|
||||||
|
disable_login_form: "true"
|
||||||
|
auth.generic_oauth:
|
||||||
|
enabled: "true"
|
||||||
|
name: Forgejo
|
||||||
|
allow_sign_up: "true"
|
||||||
|
use_refresh_token: "true"
|
||||||
|
client_id: grafana
|
||||||
|
client_secret: $__env{OAUTH_CLIENT_SECRET}
|
||||||
|
scopes: openid email profile offline_access groups
|
||||||
|
auth_url: https://{{{ .Env.DOMAIN_DEX }}}/auth
|
||||||
|
token_url: https://{{{ .Env.DOMAIN_DEX }}}/token
|
||||||
|
api_url: https://{{{ .Env.DOMAIN_DEX }}}/userinfo
|
||||||
|
redirect_uri: https://{{{ .Env.DOMAIN_GRAFANA }}}/login/generic_oauth
|
||||||
|
role_attribute_path: "contains(groups[*], 'DevFW') && 'GrafanaAdmin' || 'None'"
|
||||||
|
allow_assign_grafana_admin: "true"
|
||||||
ingress:
|
ingress:
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
|
|
@ -20,7 +59,7 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
ingressClassName: nginx
|
ingressClassName: nginx
|
||||||
rules:
|
rules:
|
||||||
- host: grafana.{{{ .Env.DOMAIN }}}
|
- host: {{{ .Env.DOMAIN_GRAFANA }}}
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- backend:
|
- backend:
|
||||||
|
|
@ -32,5 +71,5 @@ spec:
|
||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
- grafana.{{{ .Env.DOMAIN }}}
|
- {{{ .Env.DOMAIN_GRAFANA }}}
|
||||||
secretName: grafana-net-tls
|
secretName: grafana-net-tls
|
||||||
|
|
|
||||||
|
|
@ -11,8 +11,30 @@ spec:
|
||||||
expr: sum by(cluster_environment) (up{pod=~"forgejo-server-.*"}) < 1
|
expr: sum by(cluster_environment) (up{pod=~"forgejo-server-.*"}) < 1
|
||||||
for: 30s
|
for: 30s
|
||||||
labels:
|
labels:
|
||||||
severity: major
|
severity: critical
|
||||||
job: "{{ $labels.job }}"
|
job: "{{ $labels.job }}"
|
||||||
annotations:
|
annotations:
|
||||||
value: "{{ $value }}"
|
value: "{{ $value }}"
|
||||||
description: 'forgejo is down in cluster environment {{ $labels.cluster_environment }}'
|
description: 'forgejo is down in cluster environment {{ $labels.cluster_environment }}'
|
||||||
|
- name: forgejo-backup
|
||||||
|
rules:
|
||||||
|
- alert: forgejo s3 backup job failed
|
||||||
|
expr: max by(cluster_environment) (kube_job_status_failed{job_name=~"forgejo-s3-backup-.*"}) != 0
|
||||||
|
for: 30s
|
||||||
|
labels:
|
||||||
|
severity: critical
|
||||||
|
job: "{{ $labels.job }}"
|
||||||
|
annotations:
|
||||||
|
value: "{{ $value }}"
|
||||||
|
description: 'forgejo s3 backup job failed in cluster environment {{ $labels.cluster_environment }}'
|
||||||
|
- name: disk-consumption-high
|
||||||
|
rules:
|
||||||
|
- alert: disk consumption high
|
||||||
|
expr: 1-(kubelet_volume_stats_available_bytes / kubelet_volume_stats_capacity_bytes) > 0.6
|
||||||
|
for: 30s
|
||||||
|
labels:
|
||||||
|
severity: major
|
||||||
|
job: "{{ $labels.job }}"
|
||||||
|
annotations:
|
||||||
|
value: "{{ $value }}"
|
||||||
|
description: 'disk consumption of pvc {{ $labels.namespace }}/{{ $labels.persistentvolumeclaim }} is high in cluster environment {{ $labels.cluster_environment }}'
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,9 @@ spec:
|
||||||
storageMetadata:
|
storageMetadata:
|
||||||
annotations:
|
annotations:
|
||||||
everest.io/crypt-key-id: {{{ .Env.PVC_KMS_KEY_ID }}}
|
everest.io/crypt-key-id: {{{ .Env.PVC_KMS_KEY_ID }}}
|
||||||
|
everest.io/disk-volume-type: GPSSD
|
||||||
storage:
|
storage:
|
||||||
|
storageClassName: csi-disk
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteOnce
|
- ReadWriteOnce
|
||||||
resources:
|
resources:
|
||||||
|
|
@ -21,4 +23,4 @@ spec:
|
||||||
cpu: 500m
|
cpu: 500m
|
||||||
limits:
|
limits:
|
||||||
memory: 10Gi
|
memory: 10Gi
|
||||||
cpu: 2
|
cpu: 2
|
||||||
|
|
|
||||||
|
|
@ -5,11 +5,13 @@ metadata:
|
||||||
namespace: observability
|
namespace: observability
|
||||||
spec:
|
spec:
|
||||||
username: simple-user
|
username: simple-user
|
||||||
password: simple-password
|
passwordRef:
|
||||||
|
key: password
|
||||||
|
name: simple-user-secret
|
||||||
targetRefs:
|
targetRefs:
|
||||||
- static:
|
- static:
|
||||||
url: http://vmsingle-o12y:8429
|
url: http://vmsingle-o12y:8429
|
||||||
paths: ["/api/v1/write"]
|
paths: ["/api/v1/write"]
|
||||||
- static:
|
- static:
|
||||||
url: http://vlogs-victorialogs:9428
|
url: http://vlogs-victorialogs:9428
|
||||||
paths: ["/insert/elasticsearch/.*"]
|
paths: ["/insert/elasticsearch/.*"]
|
||||||
|
|
@ -201,13 +201,13 @@ defaultRules:
|
||||||
create: true
|
create: true
|
||||||
rules: {}
|
rules: {}
|
||||||
kubernetesSystemControllerManager:
|
kubernetesSystemControllerManager:
|
||||||
create: true
|
create: false
|
||||||
rules: {}
|
rules: {}
|
||||||
kubeScheduler:
|
kubeScheduler:
|
||||||
create: true
|
create: false
|
||||||
rules: {}
|
rules: {}
|
||||||
kubernetesSystemScheduler:
|
kubernetesSystemScheduler:
|
||||||
create: true
|
create: false
|
||||||
rules: {}
|
rules: {}
|
||||||
kubeStateMetrics:
|
kubeStateMetrics:
|
||||||
create: true
|
create: true
|
||||||
|
|
@ -289,7 +289,9 @@ vmsingle:
|
||||||
storageMetadata:
|
storageMetadata:
|
||||||
annotations:
|
annotations:
|
||||||
everest.io/crypt-key-id: {{{ .Env.PVC_KMS_KEY_ID }}}
|
everest.io/crypt-key-id: {{{ .Env.PVC_KMS_KEY_ID }}}
|
||||||
|
everest.io/disk-volume-type: GPSSD
|
||||||
storage:
|
storage:
|
||||||
|
storageClassName: csi-disk
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteOnce
|
- ReadWriteOnce
|
||||||
resources:
|
resources:
|
||||||
|
|
@ -349,7 +351,7 @@ vmcluster:
|
||||||
spec:
|
spec:
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 10Gi
|
storage: 10Gi
|
||||||
resources:
|
resources:
|
||||||
{}
|
{}
|
||||||
# limits:
|
# limits:
|
||||||
|
|
@ -536,108 +538,30 @@ alertmanager:
|
||||||
# If you're migrating existing config, please make sure that `.Values.alertmanager.config`:
|
# If you're migrating existing config, please make sure that `.Values.alertmanager.config`:
|
||||||
# - with `useManagedConfig: false` has structure described [here](https://prometheus.io/docs/alerting/latest/configuration/).
|
# - with `useManagedConfig: false` has structure described [here](https://prometheus.io/docs/alerting/latest/configuration/).
|
||||||
# - with `useManagedConfig: true` has structure described [here](https://docs.victoriametrics.com/operator/api/#vmalertmanagerconfig).
|
# - with `useManagedConfig: true` has structure described [here](https://docs.victoriametrics.com/operator/api/#vmalertmanagerconfig).
|
||||||
useManagedConfig: false
|
useManagedConfig: true
|
||||||
# -- (object) Alertmanager configuration
|
# -- (object) Alertmanager configuration
|
||||||
config:
|
config:
|
||||||
route:
|
route:
|
||||||
receiver: "blackhole"
|
receiver: "blackhole"
|
||||||
# group_by: ["alertgroup", "job"]
|
routes:
|
||||||
# group_wait: 30s
|
- matchers:
|
||||||
# group_interval: 5m
|
- severity=~"critical|major"
|
||||||
# repeat_interval: 12h
|
receiver: outlook
|
||||||
# routes:
|
|
||||||
#
|
|
||||||
# # Duplicate code_owner routes to teams
|
|
||||||
# # These will send alerts to team channels but continue
|
|
||||||
# # processing through the rest of the tree to handled by on-call
|
|
||||||
# - matchers:
|
|
||||||
# - code_owner_channel!=""
|
|
||||||
# - severity=~"info|warning|critical"
|
|
||||||
# group_by: ["code_owner_channel", "alertgroup", "job"]
|
|
||||||
# receiver: slack-code-owners
|
|
||||||
#
|
|
||||||
# # Standard on-call routes
|
|
||||||
# - matchers:
|
|
||||||
# - severity=~"info|warning|critical"
|
|
||||||
# receiver: slack-monitoring
|
|
||||||
# continue: true
|
|
||||||
#
|
|
||||||
# inhibit_rules:
|
|
||||||
# - target_matchers:
|
|
||||||
# - severity=~"warning|info"
|
|
||||||
# source_matchers:
|
|
||||||
# - severity=critical
|
|
||||||
# equal:
|
|
||||||
# - cluster
|
|
||||||
# - namespace
|
|
||||||
# - alertname
|
|
||||||
# - target_matchers:
|
|
||||||
# - severity=info
|
|
||||||
# source_matchers:
|
|
||||||
# - severity=warning
|
|
||||||
# equal:
|
|
||||||
# - cluster
|
|
||||||
# - namespace
|
|
||||||
# - alertname
|
|
||||||
# - target_matchers:
|
|
||||||
# - severity=info
|
|
||||||
# source_matchers:
|
|
||||||
# - alertname=InfoInhibitor
|
|
||||||
# equal:
|
|
||||||
# - cluster
|
|
||||||
# - namespace
|
|
||||||
|
|
||||||
receivers:
|
receivers:
|
||||||
- name: blackhole
|
- name: blackhole
|
||||||
# - name: "slack-monitoring"
|
- name: outlook
|
||||||
# slack_configs:
|
email_configs:
|
||||||
# - channel: "#channel"
|
- smarthost: 'mail.mms-support.de:465'
|
||||||
# send_resolved: true
|
auth_username: 'ipcei-cis-devfw@mms-support.de'
|
||||||
# title: '{{ template "slack.monzo.title" . }}'
|
auth_password:
|
||||||
# icon_emoji: '{{ template "slack.monzo.icon_emoji" . }}'
|
name: email-user-credentials
|
||||||
# color: '{{ template "slack.monzo.color" . }}'
|
key: connection-string
|
||||||
# text: '{{ template "slack.monzo.text" . }}'
|
from: '"IPCEI CIS DevFW" <ipcei-cis-devfw@mms-support.de>'
|
||||||
# actions:
|
to: 'f9f9953a.mg.telekom.de@de.teams.ms'
|
||||||
# - type: button
|
headers:
|
||||||
# text: "Runbook :green_book:"
|
subject: 'Grafana Mail Alerts'
|
||||||
# url: "{{ (index .Alerts 0).Annotations.runbook_url }}"
|
require_tls: false
|
||||||
# - type: button
|
|
||||||
# text: "Query :mag:"
|
|
||||||
# url: "{{ (index .Alerts 0).GeneratorURL }}"
|
|
||||||
# - type: button
|
|
||||||
# text: "Dashboard :grafana:"
|
|
||||||
# url: "{{ (index .Alerts 0).Annotations.dashboard }}"
|
|
||||||
# - type: button
|
|
||||||
# text: "Silence :no_bell:"
|
|
||||||
# url: '{{ template "__alert_silence_link" . }}'
|
|
||||||
# - type: button
|
|
||||||
# text: '{{ template "slack.monzo.link_button_text" . }}'
|
|
||||||
# url: "{{ .CommonAnnotations.link_url }}"
|
|
||||||
# - name: slack-code-owners
|
|
||||||
# slack_configs:
|
|
||||||
# - channel: "#{{ .CommonLabels.code_owner_channel }}"
|
|
||||||
# send_resolved: true
|
|
||||||
# title: '{{ template "slack.monzo.title" . }}'
|
|
||||||
# icon_emoji: '{{ template "slack.monzo.icon_emoji" . }}'
|
|
||||||
# color: '{{ template "slack.monzo.color" . }}'
|
|
||||||
# text: '{{ template "slack.monzo.text" . }}'
|
|
||||||
# actions:
|
|
||||||
# - type: button
|
|
||||||
# text: "Runbook :green_book:"
|
|
||||||
# url: "{{ (index .Alerts 0).Annotations.runbook }}"
|
|
||||||
# - type: button
|
|
||||||
# text: "Query :mag:"
|
|
||||||
# url: "{{ (index .Alerts 0).GeneratorURL }}"
|
|
||||||
# - type: button
|
|
||||||
# text: "Dashboard :grafana:"
|
|
||||||
# url: "{{ (index .Alerts 0).Annotations.dashboard }}"
|
|
||||||
# - type: button
|
|
||||||
# text: "Silence :no_bell:"
|
|
||||||
# url: '{{ template "__alert_silence_link" . }}'
|
|
||||||
# - type: button
|
|
||||||
# text: '{{ template "slack.monzo.link_button_text" . }}'
|
|
||||||
# url: "{{ .CommonAnnotations.link_url }}"
|
|
||||||
#
|
|
||||||
# -- Better alert templates for [slack source](https://gist.github.com/milesbxf/e2744fc90e9c41b47aa47925f8ff6512)
|
# -- Better alert templates for [slack source](https://gist.github.com/milesbxf/e2744fc90e9c41b47aa47925f8ff6512)
|
||||||
monzoTemplate:
|
monzoTemplate:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
@ -868,7 +792,7 @@ defaultDatasources:
|
||||||
implementation: prometheus
|
implementation: prometheus
|
||||||
# -- Configure additional grafana datasources (passed through tpl).
|
# -- Configure additional grafana datasources (passed through tpl).
|
||||||
# Check [here](http://docs.grafana.org/administration/provisioning/#datasources) for details
|
# Check [here](http://docs.grafana.org/administration/provisioning/#datasources) for details
|
||||||
extra:
|
extra:
|
||||||
- name: VictoriaLogs
|
- name: VictoriaLogs
|
||||||
access: proxy
|
access: proxy
|
||||||
type: victoriametrics-logs-datasource
|
type: victoriametrics-logs-datasource
|
||||||
|
|
@ -880,7 +804,7 @@ grafana:
|
||||||
enabled: false
|
enabled: false
|
||||||
# all values for grafana helm chart can be specified here
|
# all values for grafana helm chart can be specified here
|
||||||
persistence:
|
persistence:
|
||||||
enabled: true
|
enabled: false
|
||||||
type: pvc
|
type: pvc
|
||||||
storageClassName: "default"
|
storageClassName: "default"
|
||||||
grafana.ini:
|
grafana.ini:
|
||||||
|
|
@ -919,7 +843,7 @@ grafana:
|
||||||
|
|
||||||
# Uncomment the block below, if you want to enable VictoriaMetrics Datasource in Grafana:
|
# Uncomment the block below, if you want to enable VictoriaMetrics Datasource in Grafana:
|
||||||
# Note that Grafana will need internet access to install the datasource plugin.
|
# Note that Grafana will need internet access to install the datasource plugin.
|
||||||
|
|
||||||
plugins:
|
plugins:
|
||||||
- victoriametrics-metrics-datasource
|
- victoriametrics-metrics-datasource
|
||||||
- victoriametrics-logs-datasource
|
- victoriametrics-logs-datasource
|
||||||
|
|
@ -1096,7 +1020,7 @@ kubeApiServer:
|
||||||
# Component scraping the kube controller manager
|
# Component scraping the kube controller manager
|
||||||
kubeControllerManager:
|
kubeControllerManager:
|
||||||
# -- Enable kube controller manager metrics scraping
|
# -- Enable kube controller manager metrics scraping
|
||||||
enabled: true
|
enabled: false
|
||||||
|
|
||||||
# -- If your kube controller manager is not deployed as a pod, specify IPs it can be found on
|
# -- If your kube controller manager is not deployed as a pod, specify IPs it can be found on
|
||||||
endpoints: []
|
endpoints: []
|
||||||
|
|
@ -1229,7 +1153,7 @@ kubeEtcd:
|
||||||
# Component scraping kube scheduler
|
# Component scraping kube scheduler
|
||||||
kubeScheduler:
|
kubeScheduler:
|
||||||
# -- Enable KubeScheduler metrics scraping
|
# -- Enable KubeScheduler metrics scraping
|
||||||
enabled: true
|
enabled: false
|
||||||
|
|
||||||
# -- If your kube scheduler is not deployed as a pod, specify IPs it can be found on
|
# -- If your kube scheduler is not deployed as a pod, specify IPs it can be found on
|
||||||
endpoints: []
|
endpoints: []
|
||||||
|
|
|
||||||
|
|
@ -18,9 +18,9 @@ spec:
|
||||||
name: in-cluster
|
name: in-cluster
|
||||||
namespace: ingress-nginx
|
namespace: ingress-nginx
|
||||||
sources:
|
sources:
|
||||||
- repoURL: https://{{{ .Env.CLIENT_REPO_DOMAIN }}}/DevFW-CICD/ingress-nginx-helm.git
|
- repoURL: https://github.com/kubernetes/ingress-nginx.git
|
||||||
path: charts/ingress-nginx
|
path: charts/ingress-nginx
|
||||||
targetRevision: helm-chart-4.12.4-depends
|
targetRevision: helm-chart-4.12.1
|
||||||
helm:
|
helm:
|
||||||
valueFiles:
|
valueFiles:
|
||||||
- $values/{{{ .Env.CLIENT_REPO_ID }}}/{{{ .Env.DOMAIN }}}/stacks/otc/ingress-nginx/values.yaml
|
- $values/{{{ .Env.CLIENT_REPO_ID }}}/{{{ .Env.DOMAIN }}}/stacks/otc/ingress-nginx/values.yaml
|
||||||
|
|
|
||||||
30
template/stacks/terralist/terralist.yaml
Normal file
30
template/stacks/terralist/terralist.yaml
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
# helm upgrade --install --create-namespace --namespace terralist terralist oci://ghcr.io/terralist/helm-charts/terralist -f terralist-values.yaml
|
||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: terralist
|
||||||
|
namespace: argocd
|
||||||
|
labels:
|
||||||
|
env: dev
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
retry:
|
||||||
|
limit: -1
|
||||||
|
destination:
|
||||||
|
name: in-cluster
|
||||||
|
namespace: terralist
|
||||||
|
sources:
|
||||||
|
- repoURL: https://github.com/terralist/helm-charts
|
||||||
|
path: charts/terralist
|
||||||
|
targetRevision: terralist-0.8.1
|
||||||
|
helm:
|
||||||
|
valueFiles:
|
||||||
|
- $values/{{{ .Env.CLIENT_REPO_ID }}}/{{{ .Env.DOMAIN }}}/stacks/terralist/terralist/values.yaml
|
||||||
|
- repoURL: https://{{{ .Env.CLIENT_REPO_DOMAIN }}}/{{{ .Env.CLIENT_REPO_ORG_NAME }}}
|
||||||
|
targetRevision: HEAD
|
||||||
|
ref: values
|
||||||
87
template/stacks/terralist/terralist/values.yaml
Normal file
87
template/stacks/terralist/terralist/values.yaml
Normal file
|
|
@ -0,0 +1,87 @@
|
||||||
|
controllers:
|
||||||
|
main:
|
||||||
|
strategy: Recreate
|
||||||
|
containers:
|
||||||
|
app:
|
||||||
|
env:
|
||||||
|
- name: TERRALIST_OAUTH_PROVIDER
|
||||||
|
value: oidc
|
||||||
|
- name: TERRALIST_OI_CLIENT_ID
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: oidc-credentials
|
||||||
|
key: client-id
|
||||||
|
- name: TERRALIST_OI_CLIENT_SECRET
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: oidc-credentials
|
||||||
|
key: client-secret
|
||||||
|
- name: TERRALIST_OI_AUTHORIZE_URL
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: oidc-credentials
|
||||||
|
key: authorize-url
|
||||||
|
- name: TERRALIST_OI_TOKEN_URL
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: oidc-credentials
|
||||||
|
key: token-url
|
||||||
|
- name: TERRALIST_OI_USERINFO_URL
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: oidc-credentials
|
||||||
|
key: userinfo-url
|
||||||
|
- name: TERRALIST_OI_SCOPE
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: oidc-credentials
|
||||||
|
key: scope
|
||||||
|
- name: TERRALIST_TOKEN_SIGNING_SECRET
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: terralist-secret
|
||||||
|
key: token-signing-secret
|
||||||
|
- name: TERRALIST_COOKIE_SECRET
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: terralist-secret
|
||||||
|
key: cookie-secret
|
||||||
|
- name: TERRALIST_URL
|
||||||
|
value: https://terralist.{{{ .Env.DOMAIN_GITEA }}}
|
||||||
|
- name: TERRALIST_SQLITE_PATH
|
||||||
|
value: /data/db.sqlite
|
||||||
|
- name: TERRALIST_LOCAL_STORE
|
||||||
|
value: /data/modules
|
||||||
|
- name: TERRALIST_PROVIDERS_ANONYMOUS_READ
|
||||||
|
value: "true"
|
||||||
|
|
||||||
|
ingress:
|
||||||
|
main:
|
||||||
|
enabled: true
|
||||||
|
className: nginx
|
||||||
|
annotations:
|
||||||
|
cert-manager.io/cluster-issuer: main
|
||||||
|
hosts:
|
||||||
|
- host: terralist.{{{ .Env.DOMAIN_GITEA }}}
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
service:
|
||||||
|
identifier: main
|
||||||
|
port: http
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- terralist.{{{ .Env.DOMAIN_GITEA }}}
|
||||||
|
secretName: terralist-tls-secret
|
||||||
|
|
||||||
|
persistence:
|
||||||
|
data:
|
||||||
|
enabled: true
|
||||||
|
accessMode: ReadWriteOnce
|
||||||
|
size: 10Gi
|
||||||
|
retain: false
|
||||||
|
storageClass: "csi-disk"
|
||||||
|
annotations:
|
||||||
|
everest.io/disk-volume-type: GPSSD
|
||||||
|
globalMounts:
|
||||||
|
- path: /data
|
||||||
Loading…
Add table
Add a link
Reference in a new issue