add infra app couchdb
This commit is contained in:
12
infrastructures/couchdb/env/k3s-cluster/config.json
vendored
Normal file
12
infrastructures/couchdb/env/k3s-cluster/config.json
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"appName": "couchdb",
|
||||
"userGivenName": "couchdb",
|
||||
"namespace": "couchdb",
|
||||
"destNamespace": "couchdb",
|
||||
"destServer": "https://kubernetes.default.svc",
|
||||
"srcPath": "infrastructures/couchdb/env/k3s-cluster",
|
||||
"srcRepoURL": "https://github.com/3dwardch3ng/home-cluster-ops.git",
|
||||
"srcTargetRevision": "",
|
||||
"labels": null,
|
||||
"annotations": null
|
||||
}
|
||||
55
infrastructures/couchdb/env/k3s-cluster/deployment.yaml
vendored
Normal file
55
infrastructures/couchdb/env/k3s-cluster/deployment.yaml
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
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
|
||||
5
infrastructures/couchdb/env/k3s-cluster/kustomization.yaml
vendored
Normal file
5
infrastructures/couchdb/env/k3s-cluster/kustomization.yaml
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ./service.yaml
|
||||
- ./deployment.yaml
|
||||
17
infrastructures/couchdb/env/k3s-cluster/service.yaml
vendored
Normal file
17
infrastructures/couchdb/env/k3s-cluster/service.yaml
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
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: couchdb_port
|
||||
name: couchdb_port
|
||||
Reference in New Issue
Block a user