infrastructure/k8s/roles/agola/tasks/main.yml
2022-09-11 18:49:31 +02:00

34 lines
865 B
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: agola
definition: "{{ lookup('template', item) | from_yaml }}"
with_items:
- config.yml.j2
- pvc.yml.j2
- all-deployment.yml.j2
- all-internal-svc.yml.j2
- all-svc.yml.j2
- role.yml.j2
- rolebinding.yml.j2
- serviceaccount.yml.j2
- clusterrole.yml.j2
- clusterrolebinding.yml.j2
- ingress.yml.j2
# - 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