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

@@ -1,55 +0,0 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: couchdb
namespace: couchdb
labels:
app.kubernetes.io/name: couchdb
spec:
selector:
matchLabels:
app.kubernetes.io/name: couchdb
template:
metadata:
labels:
app.kubernetes.io/name: couchdb
spec:
securityContext:
runAsUser: 1000
runAsGroup: 1000
containers:
- name: couchdb
image: bitnami/couchdb:3.3.3
securityContext:
allowPrivilegeEscalation: false
env:
- name: COUCHDB_PORT_NUMBER
value: "7777"
- name: COUCHDB_PASSWORD
valueFrom:
secretKeyRef:
name: couchdb-secrets
key: password
- name: COUCHDB_SECRET
valueFrom:
secretKeyRef:
name: couchdb-secrets
key: secrets
ports:
- protocol: TCP
containerPort: 7777
name: couchdb-port
volumeMounts:
- name: couchdb-data
mountPath: /bitnami/couchdb
- name: couchdb-config
mountPath: /opt/bitnami/couchdb/etc/
volumes:
- name: couchdb-data
hostPath:
path: /mnt/nfs/AppData/couchdb
type: Directory
- name: couchdb-config
hostPath:
path: /mnt/nfs/AppData/couchdb/etc
type: Directory

View File

@@ -1,21 +0,0 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: couchdb-ingress
namespace: couchdb
annotations:
nginx.ingress.kubernetes.io/ssl-redirect: "false"
nginx.ingress.kubernetes.io/use-regex: "true"
spec:
ingressClassName: nginx
rules:
- host: "couchdb.cluster.edward.sydney"
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: couchdb
port:
number: 7777

View File

@@ -1,6 +0,0 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./service.yaml
- ./deployment.yaml
- ./ingress.yaml

View File

@@ -1,17 +0,0 @@
apiVersion: v1
kind: Service
metadata:
name: couchdb
namespace: couchdb
labels:
app.kubernetes.io/name: couchdb
spec:
selector:
app.kubernetes.io/name: couchdb
type: ClusterIP
internalTrafficPolicy: Cluster
ports:
- protocol: TCP
port: 7777
targetPort: 7777
name: couchdb-port

View File

@@ -1,12 +0,0 @@
{
"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

@@ -1,8 +0,0 @@
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

@@ -1,27 +0,0 @@
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

@@ -1,12 +0,0 @@
{
"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

@@ -1,8 +0,0 @@
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

@@ -1,31 +0,0 @@
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

@@ -1,12 +0,0 @@
{
"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

@@ -1,8 +0,0 @@
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

@@ -1,50 +0,0 @@
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

@@ -1,12 +0,0 @@
{
"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

@@ -1,8 +0,0 @@
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

@@ -1,23 +0,0 @@
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