refactor(couchdb): move raw manifests to templates/ subdir
Per Tony's recommendation — eliminates the explicit include filter. New manifests go in templates/ and are picked up automatically by ArgoCD. No filter to update when adding future resources. Moved: namespace.yaml, externalsecret.yaml, ingress-public.yaml -> templates/
This commit is contained in:
36
cluster/applications/couchdb/templates/externalsecret.yaml
Normal file
36
cluster/applications/couchdb/templates/externalsecret.yaml
Normal file
@@ -0,0 +1,36 @@
|
||||
apiVersion: external-secrets.io/v1beta1
|
||||
kind: ExternalSecret
|
||||
metadata:
|
||||
name: couchdb-credentials
|
||||
namespace: couchdb
|
||||
labels:
|
||||
app.kubernetes.io/name: couchdb
|
||||
app.kubernetes.io/part-of: mk-labs
|
||||
spec:
|
||||
refreshInterval: 1h
|
||||
secretStoreRef:
|
||||
kind: ClusterSecretStore
|
||||
name: onepassword-connect
|
||||
target:
|
||||
name: couchdb-admin
|
||||
creationPolicy: Owner
|
||||
template:
|
||||
engineVersion: v2
|
||||
data:
|
||||
adminUsername: "admin"
|
||||
adminPassword: "{{ .adminPassword }}"
|
||||
cookieAuthSecret: "{{ .cookieAuthSecret }}"
|
||||
erlangCookie: "{{ .erlangCookie }}"
|
||||
data:
|
||||
- secretKey: adminPassword
|
||||
remoteRef:
|
||||
key: couchdb
|
||||
property: admin-password
|
||||
- secretKey: cookieAuthSecret
|
||||
remoteRef:
|
||||
key: couchdb
|
||||
property: cookie-auth-secret
|
||||
- secretKey: erlangCookie
|
||||
remoteRef:
|
||||
key: couchdb
|
||||
property: erlang-cookie
|
||||
34
cluster/applications/couchdb/templates/ingress-public.yaml
Normal file
34
cluster/applications/couchdb/templates/ingress-public.yaml
Normal file
@@ -0,0 +1,34 @@
|
||||
# ------------------------------------------------------------------------------
|
||||
# FILE: cluster/applications/couchdb/ingress-public.yaml
|
||||
# DESCRIPTION: External ingress for CouchDB — communicore.mk-labs.cloud only.
|
||||
# Separate from the Helm-managed internal ingress so each cert
|
||||
# has the correct CN for its hostname. CN validation in Obsidian
|
||||
# Sync requires CN=communicore.mk-labs.cloud on the public cert.
|
||||
# ------------------------------------------------------------------------------
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: couchdb-public
|
||||
namespace: couchdb
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
||||
external-dns.alpha.kubernetes.io/hostname: "communicore.mk-labs.cloud"
|
||||
external-dns.alpha.kubernetes.io/target: "ingress.mk-labs.cloud"
|
||||
external-dns.alpha.kubernetes.io/public: "true"
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: communicore.mk-labs.cloud
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: couchdb-svc-couchdb
|
||||
port:
|
||||
number: 5984
|
||||
tls:
|
||||
- secretName: couchdb-tls-public
|
||||
hosts:
|
||||
- communicore.mk-labs.cloud
|
||||
7
cluster/applications/couchdb/templates/namespace.yaml
Normal file
7
cluster/applications/couchdb/templates/namespace.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: couchdb
|
||||
labels:
|
||||
app.kubernetes.io/name: couchdb
|
||||
app.kubernetes.io/part-of: mk-labs
|
||||
Reference in New Issue
Block a user