2022-09-11 16:49:31 +00:00
|
|
|
---
|
|
|
|
- name: Create Agola namespace
|
|
|
|
kubernetes.core.k8s:
|
|
|
|
name: agola
|
|
|
|
api_version: v1
|
|
|
|
kind: Namespace
|
|
|
|
state: present
|
|
|
|
|
|
|
|
- name: Create Agola manifests
|
|
|
|
kubernetes.core.k8s:
|
|
|
|
state: present
|
2022-09-14 19:42:28 +00:00
|
|
|
namespace: "{{ item.namespace | default('agola') }}"
|
|
|
|
definition: "{{ lookup('template', item.file) | from_yaml }}"
|
2022-09-11 16:49:31 +00:00
|
|
|
with_items:
|
2022-09-14 19:42:28 +00:00
|
|
|
- file: config.yml.j2
|
|
|
|
- file: pvc.yml.j2
|
|
|
|
- file: all-deployment.yml.j2
|
|
|
|
- file: all-internal-svc.yml.j2
|
|
|
|
- file: all-svc.yml.j2
|
|
|
|
- file: ingress.yml.j2
|
|
|
|
- file: rbac/role.yml.j2
|
|
|
|
- file: rbac/rolebinding.yml.j2
|
|
|
|
- file: rbac/serviceaccount.yml.j2
|
|
|
|
- file: rbac/clusterrole.yml.j2
|
|
|
|
- file: rbac/clusterrolebinding.yml.j2
|
|
|
|
- file: rbac/agola-deploy-role.yml.j2
|
|
|
|
- file: rbac/agola-deploy-rolebinding.yml.j2
|
|
|
|
namespace: blog
|
2022-09-11 16:49:31 +00:00
|
|
|
# - gateway-deployment.yml.j2
|
|
|
|
# - gateway-svc.yml.j2
|
|
|
|
# - gitserver-deployment.yml.j2
|
|
|
|
# - gitserver-svc.yml.j2
|
|
|
|
# - runservice-deployment.yml.j2
|
|
|
|
# - runservice-svc.yml.j2
|
|
|
|
# - configstore-deployment.yml.j2
|
|
|
|
# - configstore-svc.yml.j2
|
|
|
|
# - executor-deployment.yml.j2
|