-
Notifications
You must be signed in to change notification settings - Fork 0
/
51-oc-patches-2.sh
34 lines (31 loc) · 1.18 KB
/
51-oc-patches-2.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
oc patch networks.operator.openshift.io/cluster --type='merge' -p "$(cat <<- EOF
spec:
additionalNetworks:
- name: bigip-mgmt
namespace: f5-lb
rawCNIConfig: '{ "cniVersion": "0.3.1", "type": "bridge", "bridge": "bigip-mgmt",
"ipMasq": false, "isGateway": false, "isDefaultGateway": false, "forceAddress":
false, "hairpinMode": false,"promiscMode":false }'
type: Raw
- name: bigip-ha
namespace: f5-lb
rawCNIConfig: '{ "cniVersion": "0.3.1", "type": "bridge", "bridge": "bigip-ha",
"ipMasq": false, "isGateway": false, "isDefaultGateway": false, "forceAddress":
false, "hairpinMode": false,"promiscMode":false }'
type: Raw
EOF
)"
oc patch dns.operator/default --type='merge' -p "$(cat <<- EOF
spec:
servers:
- forwardPlugin:
upstreams:
- 192.168.222.161
name: f5nat64dns
zones:
- nat64.murali722.myocp4.com
EOF
)"
oc create secret generic bigip-login -n kube-system --from-literal=username=admin --from-literal=password=changepwd
oc create serviceaccount k8s-bigip-ctlr -n kube-system
oc create clusterrolebinding k8s-bigip-ctlr-clusteradmin --clusterrole=cluster-admin --serviceaccount=kube-system:k8s-bigip-ctlr