@@ -21,10 +21,10 @@ ssh cirros@api.crc.testing -p ${nodePort}
2121
2222# Deploy k8s+kubevirt noVNC demo deployment:
2323make deploy
24- kubectl get ingress -n oc-gate
24+ kubectl get ingress -n kube-gateway
2525
2626# Wait for oc gate noVNC web application to deploy
27- kubectl get pods -n oc-gate
27+ kubectl get pods -n kube-gateway
2828
2929# Get administarator token
3030bt=$( make admin-token -s)
@@ -35,10 +35,10 @@ vm=testvm
3535ns=default
3636apigroup=subresources.kubevirt.io
3737resource=virtualmachineinstances
38- proxyurl=https://oc-gate .apps.example.com
38+ proxyurl=https://kube-gateway .apps.example.com
3939
4040# Use admin token to request a temporary JWT access key
41- data=' {"metadata":{"namespace":"oc-gate "},"spec":{"namespace":"' ${ns} ' ","apiGroups":["' ${apigroup} ' "],resources":["' ${resource} ' "],"resourceNames":"' ${vm} ' "}}'
41+ data=' {"metadata":{"namespace":"kube-gateway "},"spec":{"namespace":"' ${ns} ' ","apiGroups":["' ${apigroup} ' "],resources":["' ${resource} ' "],"resourceNames":"' ${vm} ' "}}'
4242
4343# Use the admin token to create a temporary JWT access key for the testvm
4444jwt=$( curl -k -H ' Accept: application/json' -H " Authorization: Bearer ${bt} " -H " Content-Type: application/json" --request POST --data " ${data} " " ${proxyurl} /auth/gettoken" | jq .status.token)
@@ -65,10 +65,10 @@ oc get pods --all-namespaces
6565
6666# Deploy the OAuth2 demo web application
6767make deploy-ouath2
68- oc get routes -n oc-gate
68+ oc get routes -n kube-gateway
6969
70- # Start the web application, oc-gate proxy automatically start oauth2 login
71- google-chrome https://oc-gate .apps-crc.testing
70+ # Start the web application, kube-gateway proxy automatically start oauth2 login
71+ google-chrome https://kube-gateway .apps-crc.testing
7272```
7373
7474### noVNC
@@ -94,10 +94,10 @@ vm=testvm
9494ns=default
9595apigroup=subresources.kubevirt.io
9696resource=virtualmachineinstances
97- proxyurl=https://oc-gate .apps-crc.testing
97+ proxyurl=https://kube-gateway .apps-crc.testing
9898
9999# Use admin token to request a temporary JWT access key
100- data=' {"metadata":{"namespace":"oc-gate "},"spec":{"namespace":"' ${ns} ' ","apiGroups":["' ${apigroup} ' "],resources":["' ${resource} ' "],"resourceNames":"' ${vm} ' "}}'
100+ data=' {"metadata":{"namespace":"kube-gateway "},"spec":{"namespace":"' ${ns} ' ","apiGroups":["' ${apigroup} ' "],resources":["' ${resource} ' "],"resourceNames":"' ${vm} ' "}}'
101101jwt=$( curl -k -H ' Accept: application/json' -H " Authorization: Bearer ${bt} " -H " Content-Type: application/json" --request POST --data " ${data} " " ${proxyurl} /auth/gettoken" | jq .status.token)
102102
103103# Open the noVNC web application using google-chrome
0 commit comments