temp remove apps for PV fixes

This commit is contained in:
2024-07-26 01:41:13 +10:00
parent 36e9c2af90
commit 21c57dc6fe
29 changed files with 0 additions and 99 deletions

View File

@@ -0,0 +1,12 @@
{
"appName": "coder",
"userGivenName": "coder",
"namespace": "coder",
"destNamespace": "coder",
"destServer": "https://kubernetes.default.svc",
"srcPath": "apps/coder/env/k3s-cluster",
"srcRepoURL": "https://github.com/3dwardch3ng/home-cluster-ops.git",
"srcTargetRevision": "",
"labels": null,
"annotations": null
}

View File

@@ -0,0 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
helmCharts:
- name: coder
repo: https://helm.coder.com/v2
version: 2.13.1
releaseName: coder
valuesFile: values.yaml

View File

@@ -0,0 +1,22 @@
coder:
env:
- name: CODER_ACCESS_URL
value: "https://coder.cluster.edward.sydney"
- 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-secrets
key: db_url
volumes:
- name: coder-data
persistentVolumeClaim:
claimName: coder-pvc
volumeMounts:
- name: coder-data
mountPath: /config
service:
type: NodePort
httpNodePort: 31180

View File

@@ -0,0 +1,12 @@
{
"appName": "gitea",
"userGivenName": "gitea",
"namespace": "gitea",
"destNamespace": "gitea",
"destServer": "https://kubernetes.default.svc",
"srcPath": "apps/gitea/env/k3s-cluster",
"srcRepoURL": "https://github.com/3dwardch3ng/home-cluster-ops.git",
"srcTargetRevision": "",
"labels": null,
"annotations": null
}

View File

@@ -0,0 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
helmCharts:
- name: gitea
repo: oci://registry-1.docker.io/bitnamicharts
version: 2.3.14
releaseName: gitea
valuesFile: values.yaml

View File

@@ -0,0 +1,30 @@
namespaceOverride: "gitea"
podAntiAffinityPreset: ""
adminUsername: "gitea_admin"
adminEmail: "edward@cheng.sydney"
appName: "gitea"
existingSecret: "gitea-secrets"
existingSecretKey: "admin-password"
smtpHost: "smtp.gmail.com"
smtpPort: "587"
smtpUser: "me@edward.sydney"
smtpExistingSecret: "gitea-secrets"
persistence:
existingClaim: "gitea-pvc"
service:
ports:
http: 10080
ssh: 10022
ingress:
enabled: true
ingressClassName: "nginx"
hostname: "gitea.cluster.edward.sydney"
serviceAccount:
create: false
postgresql:
enabled: false
externalDatabase:
host: "postgresql-primary.argocd.svc.cluster.local"
user: "gitea_user"
existingSecret: "gitea-secrets"
existingSecretPasswordKey: "db-password"

View File

@@ -0,0 +1,12 @@
{
"appName": "minio",
"userGivenName": "minio",
"namespace": "minio",
"destNamespace": "minio",
"destServer": "https://kubernetes.default.svc",
"srcPath": "infrastructures/minio/env/k3s-cluster",
"srcRepoURL": "https://github.com/3dwardch3ng/home-cluster-ops.git",
"srcTargetRevision": "",
"labels": null,
"annotations": null
}

View File

@@ -0,0 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
helmCharts:
- name: minio
repo: oci://registry-1.docker.io/bitnamicharts
version: 14.6.24
releaseName: minio
valuesFile: values.yaml

View File

@@ -0,0 +1,27 @@
namespaceOverride: "minio"
clusterDomain: minio.cluster.edward.sydney
auth:
existingSecret: "minio-secrets"
rootUserSecretKey: "root_user"
rootPasswordSecretKey: "root_password"
nodeSelector:
kubernetes.io/hostname: k3s-cluster-node-2
service:
ports:
api: 19000
console: 19001
ingress:
enabled: true
ingressClassName: "nginx"
hostname: "minio.cluster.edward.sydney"
apiIngress:
enabled: true
ingressClassName: "nginx"
hostname: "api.minio.cluster.edward.sydney"
persistence:
existingClaim: "minio-pvc"
containerSecurityContext:
runAsUser: 1000
runAsGroup: 1000
podSecurityContext:
fsGroup: 1000

View File

@@ -0,0 +1,12 @@
{
"appName": "mongodb",
"userGivenName": "mongodb",
"namespace": "mongodb",
"destNamespace": "mongodb",
"destServer": "https://kubernetes.default.svc",
"srcPath": "infrastructures/mongodb/env/k3s-cluster",
"srcRepoURL": "https://github.com/3dwardch3ng/home-cluster-ops.git",
"srcTargetRevision": "",
"labels": null,
"annotations": null
}

View File

@@ -0,0 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
helmCharts:
- name: mongodb
repo: oci://registry-1.docker.io/bitnamicharts
version: 15.6.14
releaseName: mongodb
valuesFile: values.yaml

View File

@@ -0,0 +1,31 @@
global:
namespaceOverride: "mongodb"
auth:
usernames:
- edward
- anysync
databases:
- edward
- anysync
existingSecret: "mongodb-secrets"
automountServiceAccountToken: true
nodeSelector:
kubernetes.io/arch: amd64
containerSecurityContext:
runAsUser: 1000
runAsGroup: 1000
podSecurityContext:
fsGroup: 1000
startupProbe:
enabled: true
service:
type: LoadBalancer
persistence:
existingClaim: "mongodb-pvc"
persistentVolumeClaimRetentionPolicy:
enabled: true
serviceAccount:
create: true
name: mongodb
rbac:
create: true

View File

@@ -0,0 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
helmCharts:
- name: plex-media-server
repo: https://raw.githubusercontent.com/plexinc/pms-docker/gh-pages
version: 0.4.0
releaseName: plex-media-server
valuesFile: values.yaml

View File

@@ -0,0 +1,36 @@
pms:
configExistingClaim: plex-config-pvc
nodeSelector:
kubernetes.io/arch: amd64
extraEnv:
PLEX_CLAIM: "claim-EHVggvEm_aaX_E_szfyc"
TZ: "Australia/Sydney"
PLEX_UID: 1000
PLEX_GID: 1000
ALLOWED_NETWORKS: "0.0.0.0/0"
extraVolumeMounts:
- name: plex-tv
mountPath: /tv
- name: plex-movie
mountPath: /movie
- name: plex-music
mountPath: /music
- name: plex-gv
mountPath: /gv
extraVolumes:
- name: plex-tv
hostPath:
path: /mnt/nfs/AppData/plex/tv
type: Directory
- name: plex-movie
hostPath:
path: /mnt/nfs/AppData/plex/movie
type: Directory
- name: plex-music
hostPath:
path: /mnt/nfs/AppData/plex/music
type: Directory
- name: plex-gv
hostPath:
path: /mnt/nfs/AppData/plex/gv
type: Directory

View File

@@ -0,0 +1,12 @@
{
"appName": "plex",
"userGivenName": "plex",
"namespace": "plex",
"destNamespace": "plex",
"destServer": "https://kubernetes.default.svc",
"srcPath": "apps/plex/env/k3s-cluster",
"srcRepoURL": "https://github.com/3dwardch3ng/home-cluster-ops.git",
"srcTargetRevision": "",
"labels": null,
"annotations": null
}

View File

@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../base

View File

@@ -0,0 +1,12 @@
{
"appName": "postgresql",
"userGivenName": "postgresql",
"namespace": "postgresql",
"destNamespace": "postgresql",
"destServer": "https://kubernetes.default.svc",
"srcPath": "infrastructures/postgresql/env/k3s-cluster",
"srcRepoURL": "https://github.com/3dwardch3ng/home-cluster-ops.git",
"srcTargetRevision": "",
"labels": null,
"annotations": null
}

View File

@@ -0,0 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
helmCharts:
- name: postgresql
repo: oci://registry-1.docker.io/bitnamicharts
version: 15.5.17
releaseName: postgresql
valuesFile: values.yaml

View File

@@ -0,0 +1,50 @@
auth:
username: edward
database: edwarddb
existingSecret: "postgresql-secrets"
secretKeys:
adminPasswordKey: postgres_password
userPasswordKey: password
replicationPasswordKey: replication_password
architecture: "replication"
replication:
synchronousCommit: "on"
numSynchronousReplicas: 1
applicationName: "postgres_repl"
primary:
podSecurityContext:
fsGroup: 1000
containerSecurityContext:
runAsUser: 1000
runAsGroup: 1000
podLabels:
name: "postgresql-primary"
service:
type: "LoadBalancer"
persistence:
existingClaim: postgresql-primary-pvc
selector:
matchLabels:
name: postgresql-primary-pvc
persistentVolumeClaimRetentionPolicy:
enabled: true
readReplicas:
name: "replica"
podSecurityContext:
fsGroup: 1000
containerSecurityContext:
runAsUser: 1000
runAsGroup: 1000
podLabels:
name: "postgresql-replica"
service:
type: "LoadBalancer"
ports:
postgresql: 5433
persistence:
existingClaim: postgresql-replica-pvc
selector:
matchLabels:
name: postgresql-replica-pvc
persistentVolumeClaimRetentionPolicy:
enabled: true

View File

@@ -0,0 +1,12 @@
{
"appName": "redis",
"userGivenName": "redis",
"namespace": "redis",
"destNamespace": "redis",
"destServer": "https://kubernetes.default.svc",
"srcPath": "infrastructures/redis/env/k3s-cluster",
"srcRepoURL": "https://github.com/3dwardch3ng/home-cluster-ops.git",
"srcTargetRevision": "",
"labels": null,
"annotations": null
}

View File

@@ -0,0 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
helmCharts:
- name: redis
repo: oci://registry-1.docker.io/bitnamicharts
version: 19.6.2
releaseName: redis
valuesFile: values.yaml

View File

@@ -0,0 +1,23 @@
namespaceOverride: "redis"
auth:
existingSecret: "redis-secrets"
existingSecretPasswordKey: "password"
master:
persistence:
storageClass: local-path
existingClaim: redis-master-pvc
selector:
matchLabels:
name: redis-master-pvc
persistentVolumeClaimRetentionPolicy:
enabled: true
replica:
replicaCount: 1
persistence:
storageClass: local-path
existingClaim: redis-replica-pvc
selector:
matchLabels:
name: redis-replica-pvc
persistentVolumeClaimRetentionPolicy:
enabled: true

View File

@@ -0,0 +1,12 @@
{
"appName": "sonarqube",
"userGivenName": "sonarqube",
"namespace": "sonarqube",
"destNamespace": "sonarqube",
"destServer": "https://kubernetes.default.svc",
"srcPath": "apps/sonarqube/env/k3s-cluster",
"srcRepoURL": "https://github.com/3dwardch3ng/home-cluster-ops.git",
"srcTargetRevision": "",
"labels": null,
"annotations": null
}

View File

@@ -0,0 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
helmCharts:
- name: sonarqube
repo: oci://registry-1.docker.io/bitnamicharts
version: 5.2.10
releaseName: sonarqube
valuesFile: values.yaml

View File

@@ -0,0 +1,41 @@
priorityClassName: system-cluster-critical
podAntiAffinityPreset: ""
namespaceOverride: "sonarqube"
clusterDomain: sonarqube.cluster.edward.sydney
sonarqubeUsername: sonarqube
existingSecret: "sonarqube-secrets"
sonarqubeEmail: "me@edward.sydney"
smtpHost: "smtp.gmail.com"
smtpPort: "587"
smtpUser: "me@edward.sydney"
smtpProtocol: "TLS"
smtpExistingSecret: "sonarqube-secrets"
podSecurityContext:
fsGroup: 1000
containerSecurityContext:
runAsUser: 1000
runAsGroup: 1000
service:
ports:
http: 8090
elastic: 9091
nodePorts:
http: 30089
elastic: 30091
ingress:
enabled: true
ingressClassName: "nginx"
hostname: "sonarqube.cluster.edward.sydney"
persistence:
enabled: true
storageClass: local-path
size: "32Gi"
existingClaim: "sonarqube-pvc"
serviceAccount:
name: "sonarqube"
postgresql:
enabled: false
externalDatabase:
host: "postgresql-primary.argocd.svc.cluster.local"
user: "sonarqube_user"
existingSecret: "sonarqube-secrets"