-
Notifications
You must be signed in to change notification settings - Fork 3
/
deploy.sh
executable file
·33 lines (23 loc) · 1.24 KB
/
deploy.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
#!/bin/bash
if [[ ! -n "${KUBECONFIG}" ]]; then
echo "error: KUBECONFIG must be set or '-k <kubeconfig>' must be given"
exit 1
fi
# sets network operator deployment unmanaged from clusterversion
oc patch --type=json -p "$(cat manifests/override-cno-control-patch.yaml)" clusterversion version
# overrides network operator deployment image
oc patch -p "$(cat manifests/override-cno-image-patch.yaml)" deploy network-operator -n openshift-network-operator
# overrides ovn-kubernetes image
oc patch -p "$(cat manifests/override-ovn-kubernetes-image-patch.yaml)" deploy network-operator -n openshift-network-operator
# set external-openvswitch label to nodes with bluefield cards
oc label node sriov-worker-1 network.operator.openshift.io/external-openvswitch=true --overwrite
# deploy sriov-network-operator
git clone https://github.com/zshi-redhat/sriov-network-operator.git
cd sriov-network-operator
git checkout bluefield
# access api via node ip
export KUBERNETES_SERVICE_HOST_CONFIG_DAEMON=api-int.sriov.ovn.testing
export KUBERNETES_SERVICE_PORT_CONFIG_DAEMON=6443
export SRIOV_NETWORK_OPERATOR_IMAGE=quay.io/zshi/sriov-network-operator:bluefield
export SRIOV_NETWORK_CONFIG_DAEMON_IMAGE=quay.io/zshi/sriov-network-config-daemon:bluefield
make deploy-setup