1
0
Fork 0
home-stack-kustomize/kustomize/bases/gitea/kustomization.yaml

38 lines
812 B
YAML

resources:
- gitea-deployment.yaml
- gitea-ingress.yaml
namePrefix: gitea-
commonLabels:
app.kubernetes.io/name: gitea
app.kubernetes.io/component: server
# secretGenerator:
# - name: postgres-credentials
# type: Opaque
# behavior: create
# literals:
# - host=172.18.1.2:5432
# - database=gitea
# - username=gitea
# - password=changeme
configMapGenerator:
- name: kustomize-generated-config
literals:
- GITEA_EXTERNAL_HOST=code.badjware.dev
- GITEA_EXTERNAL_URL=https://code.badjware.dev
replacements:
- source:
kind: ConfigMap
name: kustomize-generated-config
fieldPath: data.GITEA_EXTERNAL_HOST
targets:
- select:
kind: Ingress
name: server
fieldPaths:
- spec.rules.0.host