44 lines
923 B
YAML
44 lines
923 B
YAML
bases:
|
|
- ../mariadb
|
|
|
|
resources:
|
|
- namespace.yaml
|
|
- gitea-deployment.yaml
|
|
- drone-server-deployment.yaml
|
|
- drone-runner-deployment.yaml
|
|
|
|
secretGenerator:
|
|
- name: mariadb-credentials-secret
|
|
type: Opaque
|
|
behavior: replace
|
|
literals:
|
|
- database=gitea
|
|
- username=gitea
|
|
- password=replaceme
|
|
- name: drone-secret
|
|
type: Opaque
|
|
literals:
|
|
- rpc_secret=replaceme
|
|
- name: drone-gitea-oauth-secret
|
|
type: Opaque
|
|
literals:
|
|
- client_id=replaceme
|
|
- client_secret=replaceme
|
|
|
|
namespace: gitea
|
|
|
|
vars:
|
|
- name: GITEA_EXTERNAL_HOST
|
|
objref:
|
|
apiVersion: networking.k8s.io/v1beta1
|
|
kind: Ingress
|
|
name: gitea-ingress
|
|
fieldref:
|
|
fieldpath: spec.rules[0].host
|
|
- name: DRONE_EXTERNAL_HOST
|
|
objref:
|
|
apiVersion: networking.k8s.io/v1beta1
|
|
kind: Ingress
|
|
name: drone-ingress
|
|
fieldref:
|
|
fieldpath: spec.rules[0].host |