
The gitea service needs an HA shared filesystem, which is provided by cephfs and managed by rook.io. It also needs a database service, which is provided by percona-xtradb-cluster. Change-Id: Ie019c2e24c3780cec2468a00987dba4ac34ed570
47 lines
1.4 KiB
YAML
47 lines
1.4 KiB
YAML
- hosts: localhost
|
|
tasks:
|
|
- name: Set up cinder storage class
|
|
k8s:
|
|
state: present
|
|
definition: "{{ lookup('file', 'storage-class.yaml') | from_yaml }}"
|
|
|
|
- name: Set up gitea-db namespace
|
|
k8s:
|
|
state: present
|
|
definition: "{{ lookup('template', 'gitea-db-namespace.yaml') | from_yaml }}"
|
|
|
|
- name: Set up gitea-db secrets
|
|
k8s:
|
|
state: present
|
|
definition: "{{ lookup('template', 'secrets.yaml') | from_yaml }}"
|
|
|
|
- name: Set up gitea-db mysql config configmap
|
|
k8s:
|
|
state: present
|
|
definition: "{{ lookup('file', 'config-map_mysql-config.yaml') | from_yaml }}"
|
|
|
|
- name: Set up gitea-db startup scripts configmap
|
|
k8s:
|
|
state: present
|
|
definition: "{{ lookup('file', 'config-map_startup-scripts.yaml') | from_yaml }}"
|
|
|
|
- name: Set up gitea-db xtradb cluster statefulset
|
|
k8s:
|
|
state: present
|
|
definition: "{{ lookup('file', 'statefulset.yaml') | from_yaml }}"
|
|
|
|
- name: Set up gitea-db metrics service
|
|
k8s:
|
|
state: present
|
|
definition: "{{ lookup('file', 'service-metrics.yaml') | from_yaml }}"
|
|
|
|
- name: Set up gitea-db database service
|
|
k8s:
|
|
state: present
|
|
definition: "{{ lookup('file', 'service-percona.yaml') | from_yaml }}"
|
|
|
|
- name: Set up gitea-db galera replication service
|
|
k8s:
|
|
state: present
|
|
definition: "{{ lookup('file', 'service-repl.yaml') | from_yaml }}"
|