Skip to content

Commit

Permalink
Merge branch '16-configure-ingress' into 'gesis'
Browse files Browse the repository at this point in the history
Change service type for ingress-nginx

Closes jupyterhub#16

See merge request methods-hub/interactive-environment!18
  • Loading branch information
rgaiacs committed Sep 24, 2024
2 parents be733a1 + 21b64f5 commit 71b0c5d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions ansible/inventories/gesis-stage
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ svko-k8s-test03 ansible_host=194.95.75.23 ansible_ssh_user=ansible ansible_becom
INVENTORY_NAME=stage
K8S_CONTROL_PLANE_ENDPOINT=194.95.75.21
K8S_CONTROL_PLANE_ALIAS=svko-k8s-test01
; Replace this variable with a filter
; This must match the group ingress
K8S_INGRESS=194.95.75.22

[notebooks_gesis_org]
; svko-css-backup-node
Expand Down
3 changes: 2 additions & 1 deletion ansible/roles/k8s-control-panel/tasks/metallb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
namespace: metallb
spec:
addresses:
- '{{ k8s_control_panel_cidr }}'
# TODO Use Jinja filter to automate this.
- '{{ K8S_INGRESS }}-{{ K8S_INGRESS }}'
- name: Configure L2 Advertisement for MetalLB
kubernetes.core.k8s:
state: present
Expand Down
2 changes: 1 addition & 1 deletion config/gesis-stage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ ingress-nginx:
enabled: true
service:
externalTrafficPolicy: null
type: ClusterIP
type: LoadBalancer
prometheus:
enabled: true
server:
Expand Down

0 comments on commit 71b0c5d

Please sign in to comment.