infrastructure/k8s/roles/agola/tasks/main.yml
2022-09-14 21:42:28 +02:00

37 lines
1.1 KiB
YAML

---
- 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
namespace: "{{ item.namespace | default('agola') }}"
definition: "{{ lookup('template', item.file) | from_yaml }}"
with_items:
- 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
# - 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