Skip to content

Commit c27c1be

Browse files
authored
Merge pull request #2 from InformaticsMatters/scw-tweaks
Tweaks made during Scaleway deployment
2 parents ca8f6cf + 8fb98b4 commit c27c1be

5 files changed

Lines changed: 45 additions & 11 deletions

File tree

parameters-scw-im-main.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
3+
# A set of parameters for our im-main Scaleway cluster.
4+
5+
k8s_kubeconfig: "{{ lookup('env', 'KUBECONFIG') }}"
6+
7+
core_deploy_cluster_issuer: yes
8+
core_cluster_issuer_letsencrypt_email: tdudgeon@informaticsmatters.com
9+
10+
infra_priority_class: im-application-critical
11+
12+
ingress_class: nginx
13+
14+
ic_state: absent
15+
efs_state: absent
16+
cinder_state: absent
17+
ax_state: absent
18+
19+
pg_state: present
20+
pg_bu_state: absent
21+
pg_image: informaticsmatters/rdkit-cartridge-debian
22+
pg_version: Release_2024_03_3
23+
pg_vol_size_g: 1
24+
pg_cpu_request: 100m
25+
pg_mem_request: 250Mi
26+
27+
kc_state: present
28+
kc_hostname: keycloak-scw.informaticsmatters.com
29+
30+
rabbitmq_state: present
31+
rabbitmq_hostname: rabbitmq-scw.informaticsmatters.com
32+
rabbitmq_version: "4.2.2"

roles/core/tasks/deploy.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88

99
- name: Install CertManager ClusterIssuer for Let's Encrypt
1010
kubernetes.core.k8s:
11-
definition: "{{ lookup('template', '{{ item }}.yaml.j2') }}"
11+
definition: "{{ lookup('template', item) }}"
1212
wait: yes
1313
loop:
14-
- clusterissuer-production
15-
- clusterissuer-staging
14+
- clusterissuer-production.yaml.j2
15+
- clusterissuer-staging.yaml.j2
1616
when: core_deploy_cluster_issuer|bool

roles/core/tasks/undeploy.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
- name: Remove PodSecurityPolicies
44
kubernetes.core.k8s:
55
state: absent
6-
definition: "{{ lookup('template', '{{ item }}.yaml.j2') }}"
6+
definition: "{{ lookup('template', item) }}"
77
wait: yes
88
loop:
9-
- psp-im-core-unrestricted
9+
- psp-im-core-unrestricted.yaml.j2
1010

1111
- name: Remove PriorityClasses
1212
kubernetes.core.k8s:
1313
state: absent
14-
definition: "{{ lookup('template', '{{ item }}.yaml.j2') }}"
14+
definition: "{{ lookup('template', item) }}"
1515
wait: yes
1616
loop:
17-
- pc-im
17+
- pc-im.yaml.j2

roles/infrastructure/tasks/deploy.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,13 +236,13 @@
236236

237237
- name: Keycloak
238238
kubernetes.core.k8s:
239-
definition: "{{ lookup('template', '{{ item }}.yaml.j2') }}"
239+
definition: "{{ lookup('template', item) }}"
240240
wait: yes
241241
wait_timeout: "{{ wait_timeout }}"
242242
loop:
243-
- service-keycloak
244-
- ingress-keycloak
245-
- statefulset-keycloak
243+
- service-keycloak.yaml.j2
244+
- ingress-keycloak.yaml.j2
245+
- statefulset-keycloak.yaml.j2
246246

247247
- name: Wait for keycloak to become Ready ({{ wait_timeout }} seconds)
248248
kubernetes.core.k8s_info:

roles/infrastructure/templates/rabbitmqcluster.yaml.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ spec:
3636
{% endif %}
3737
{% endif %}
3838
persistence:
39+
{% if rabbitmq_vol_storageclass != ' ' %}
3940
storageClassName: {{ rabbitmq_vol_storageclass }}
41+
{% endif %}
4042
storage: {{ rabbitmq_vol_size_g }}Gi
4143
override:
4244
statefulSet:

0 commit comments

Comments
 (0)