7610682b6f
Add the gitea k8s cluster to root's .kube/config file on bridge. The default context does not exist in order to force us to explicitly specify a context for all commands (so that we do not inadvertently deploy something on the wrong k8s cluster). Change-Id: I53368c76e6f5b3ab45b1982e9a977f9ce9f08581
56 lines
1.7 KiB
YAML
56 lines
1.7 KiB
YAML
- hosts: localhost
|
|
tasks:
|
|
- name: Set up cinder storage class
|
|
k8s:
|
|
context: gitea
|
|
state: present
|
|
definition: "{{ lookup('file', 'storage-class.yaml') | from_yaml }}"
|
|
|
|
- name: Set up gitea-db namespace
|
|
k8s:
|
|
context: gitea
|
|
state: present
|
|
definition: "{{ lookup('template', 'gitea-db-namespace.yaml') | from_yaml }}"
|
|
|
|
- name: Set up gitea-db secrets
|
|
k8s:
|
|
context: gitea
|
|
state: present
|
|
definition: "{{ lookup('template', 'secrets.yaml') | from_yaml }}"
|
|
|
|
- name: Set up gitea-db mysql config configmap
|
|
k8s:
|
|
context: gitea
|
|
state: present
|
|
definition: "{{ lookup('file', 'config-map_mysql-config.yaml') | from_yaml }}"
|
|
|
|
- name: Set up gitea-db startup scripts configmap
|
|
k8s:
|
|
context: gitea
|
|
state: present
|
|
definition: "{{ lookup('file', 'config-map_startup-scripts.yaml') | from_yaml }}"
|
|
|
|
- name: Set up gitea-db xtradb cluster statefulset
|
|
k8s:
|
|
context: gitea
|
|
state: present
|
|
definition: "{{ lookup('file', 'statefulset.yaml') | from_yaml }}"
|
|
|
|
- name: Set up gitea-db metrics service
|
|
k8s:
|
|
context: gitea
|
|
state: present
|
|
definition: "{{ lookup('file', 'service-metrics.yaml') | from_yaml }}"
|
|
|
|
- name: Set up gitea-db database service
|
|
k8s:
|
|
context: gitea
|
|
state: present
|
|
definition: "{{ lookup('file', 'service-percona.yaml') | from_yaml }}"
|
|
|
|
- name: Set up gitea-db galera replication service
|
|
k8s:
|
|
context: gitea
|
|
state: present
|
|
definition: "{{ lookup('file', 'service-repl.yaml') | from_yaml }}"
|