Skip to content

Commit

Permalink
use k8s for ingresscontroller
Browse files Browse the repository at this point in the history
  • Loading branch information
jeichler committed Sep 16, 2020
1 parent 6eee308 commit ec777b4
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 19 deletions.
16 changes: 0 additions & 16 deletions upi/openstack/files/cluster_endpoint_strategy.json

This file was deleted.

10 changes: 10 additions & 0 deletions upi/openstack/files/ingresscontroller_internal_loadbalancer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: operator.openshift.io/v1
kind: IngressController
metadata:
namespace: openshift-ingress-operator
name: default
spec:
endpointPublishingStrategy:
type: LoadBalancerService
loadBalancer:
scope: Internal
18 changes: 15 additions & 3 deletions upi/openstack/post-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@
gather_facts: no

tasks:
- name: 'Replace cluster endpoint stratergy to Loadbalancer'
command:
cmd: "oc replace --force --wait -f files/cluster_endpoint_strategy.json"
- name: 'Remove to be replaced default ingress controller'
k8s:
state: absent
kubeconfig: "{{ aci_cni['kubeconfig'] }}"
force: yes
wait: yes
definition: "{{ lookup('file', 'files/ingresscontroller_internal_loadbalancer.yaml') }}"

- name: 'Replace cluster endpoint strategy to Loadbalancer'
k8s:
state: present
kubeconfig: "{{ aci_cni['kubeconfig'] }}"
force: yes
wait: no
definition: "{{ lookup('file', 'files/ingresscontroller_internal_loadbalancer.yaml') }}"

0 comments on commit ec777b4

Please sign in to comment.