Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions parameters-scw-im-main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---

# A set of parameters for our im-main Scaleway cluster.

k8s_kubeconfig: "{{ lookup('env', 'KUBECONFIG') }}"

core_deploy_cluster_issuer: yes
core_cluster_issuer_letsencrypt_email: tdudgeon@informaticsmatters.com

infra_priority_class: im-application-critical

ingress_class: nginx

ic_state: absent
efs_state: absent
cinder_state: absent
ax_state: absent

pg_state: present
pg_bu_state: absent
pg_image: informaticsmatters/rdkit-cartridge-debian
pg_version: Release_2024_03_3
pg_vol_size_g: 1
pg_cpu_request: 100m
pg_mem_request: 250Mi

kc_state: present
kc_hostname: keycloak-scw.informaticsmatters.com

rabbitmq_state: present
rabbitmq_hostname: rabbitmq-scw.informaticsmatters.com
rabbitmq_version: "4.2.2"
6 changes: 3 additions & 3 deletions roles/core/tasks/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@

- name: Install CertManager ClusterIssuer for Let's Encrypt
kubernetes.core.k8s:
definition: "{{ lookup('template', '{{ item }}.yaml.j2') }}"
definition: "{{ lookup('template', item) }}"
wait: yes
loop:
- clusterissuer-production
- clusterissuer-staging
- clusterissuer-production.yaml.j2
- clusterissuer-staging.yaml.j2
when: core_deploy_cluster_issuer|bool
8 changes: 4 additions & 4 deletions roles/core/tasks/undeploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
- name: Remove PodSecurityPolicies
kubernetes.core.k8s:
state: absent
definition: "{{ lookup('template', '{{ item }}.yaml.j2') }}"
definition: "{{ lookup('template', item) }}"
wait: yes
loop:
- psp-im-core-unrestricted
- psp-im-core-unrestricted.yaml.j2

- name: Remove PriorityClasses
kubernetes.core.k8s:
state: absent
definition: "{{ lookup('template', '{{ item }}.yaml.j2') }}"
definition: "{{ lookup('template', item) }}"
wait: yes
loop:
- pc-im
- pc-im.yaml.j2
8 changes: 4 additions & 4 deletions roles/infrastructure/tasks/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -236,13 +236,13 @@

- name: Keycloak
kubernetes.core.k8s:
definition: "{{ lookup('template', '{{ item }}.yaml.j2') }}"
definition: "{{ lookup('template', item) }}"
wait: yes
wait_timeout: "{{ wait_timeout }}"
loop:
- service-keycloak
- ingress-keycloak
- statefulset-keycloak
- service-keycloak.yaml.j2
- ingress-keycloak.yaml.j2
- statefulset-keycloak.yaml.j2

- name: Wait for keycloak to become Ready ({{ wait_timeout }} seconds)
kubernetes.core.k8s_info:
Expand Down
2 changes: 2 additions & 0 deletions roles/infrastructure/templates/rabbitmqcluster.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ spec:
{% endif %}
{% endif %}
persistence:
{% if rabbitmq_vol_storageclass != ' ' %}
storageClassName: {{ rabbitmq_vol_storageclass }}
{% endif %}
storage: {{ rabbitmq_vol_size_g }}Gi
override:
statefulSet:
Expand Down