added terralist
This commit is contained in:
parent
115e8f27f6
commit
94c51a4d77
4 changed files with 124 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
apiVersion: argoproj.io/v1alpha1
|
apiVersion: argoproj.io/v1alpha1
|
||||||
kind: Application
|
kind: Application
|
||||||
metadata:
|
metadata:
|
||||||
name: coder
|
name: coder-reg
|
||||||
namespace: argocd
|
namespace: argocd
|
||||||
labels:
|
labels:
|
||||||
env: dev
|
env: dev
|
||||||
|
|
|
||||||
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
|
||||||
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
|
||||||
69
template/stacks/terralist/terralist/values.yaml
Normal file
69
template/stacks/terralist/terralist/values.yaml
Normal file
|
|
@ -0,0 +1,69 @@
|
||||||
|
controllers:
|
||||||
|
main:
|
||||||
|
strategy: Recreate
|
||||||
|
containers:
|
||||||
|
app:
|
||||||
|
env:
|
||||||
|
- name: TERRALIST_OAUTH_PROVIDER
|
||||||
|
value: github
|
||||||
|
- name: TERRALIST_GH_CLIENT_ID
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: github-app-credentials
|
||||||
|
key: client-id
|
||||||
|
- name: TERRALIST_GH_CLIENT_SECRET
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: github-app-credentials
|
||||||
|
key: client-secret
|
||||||
|
- 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_GH_ORGANIZATION
|
||||||
|
value: think-ahead-technologies
|
||||||
|
- 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