This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# A simplifed CLI command to scale all deployments to 0 | |
# | |
# source: https://gist.github.com/dudash/10699ecba6c56e126bd6071f3c187f13/ | |
# docs: https://docs.openshift.com/container-platform/4.7/cli_reference/openshift_cli/extending-cli-plugins.html | |
# | |
# To install/use this: | |
# put this script in /usr/local/bin | |
# chmod a+x oc-scale0 |
[![OpenShift Version][openshift311-redimage]][openshift311-url] [![OpenShift Version][openshift311-heximage1]][openshift311-url] [![OpenShift Version][openshift311-heximage2]][openshift311-url] [![OpenShift Version][openshift311-heximage3]][openshift311-url] [![OpenShift Version][openshift311-heximage4]][openshift311-url]
[![OpenShift Version][openshift39-heximage]][openshift39-url] [![OpenShift Version][openshift310-heximage]][openshift310-url]
[![OpenShift Version][openshift311-logo]][openshift311-url]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#setting up | |
PROJECT = "user10" | |
oc project $PROJECT | |
git clone https://github.com/RedHatGov/service-mesh-workshop-code.git | |
cd service-mesh-workshop-code && git checkout workshop-stable | |
oc get pods -n $PROJECT-istio | |
#LAB 1 - deploying the microservice application Version1 | |
oc new-app -f ./config/app/boards-fromsource.yaml \ | |
-p APPLICATION_NAME=boards \ |