Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 997 echo ########EX280 DAY 2 #############
- 998 oc whoami
- 999 crc oc-env
- 1000 eval $(crc oc-env)
- 1001 source <(oc completion bash)
- 1002 oc whoami
- 1003 oc get co
- 1004 oc get oauth cluster -o yaml | less
- 1005 oc login -u developer
- 1006 oc new-project bitroot
- 1007 oc new-app --image=bitnami/nginx --name=bginx
- 1008 oc get pods -o wide
- 1009 oc describe pod bginx-79ffc6d875-dgp68
- 1010 oc get svc
- 1011 oc get all
- 1012 curl 10.217.4.7:8080
- 1013 oc describe svc bginx
- 1014 oc scale deploy bginx --replicas=3
- 1015 oc describe svc bginx
- 1016 oc edit svc bginx
- 1017 oc describe svc bginx
- 1018 oc edit svc bginx
- 1019 oc describe svc bginx
- 1020 oc get svc
- 1021 oc expose service --help | less
- 1022 oc create --help | less
- 1023 oc create route --help | less
- 1024 oc create route edge --help | less
- 1025 oc expose svc bginx
- 1026 oc get all
- 1027 curl bginx-bitroot.apps-crc.testing
- 1028 oc describe routes.route.openshift.io bginx
- 1029 rm -rf openssl
- 1030 mkdir openssl
- 1031 cd openssl/
- 1032 ls
- 1033 openssl genrsa -des3 -out myCA.key 2048
- 1034 openssl req -x509 -new -nodes -key -myCA.key -sha256 -days3650 -out myCA.pem
- 1035 openssl req -x509 -new -nodes -key -myCA.key -sha256 -days 3650 -out myCA.pem
- 1036 openssl req -x509 -new -nodes -key myCA.key -sha256 -days 3650 -out myCA.pem
- 1037 openssl genrsa -out tls.key 2048
- 1038 openssl req -new -key tls.key -out tls.csr
- 1039 openssl x509 -req -in tls.csr -CA myCA.pem -CAkey myCA.key -CAcreateserial -out tls.crt -days 1650 -sha256
- 1040 ls -l
- 1041 man openssl-req
- 1042 man openssl-x509
- 1043 cd
- 1044 ex180/countdown 16
- 1045 oc whoami
- 1046 oc new-project myproject
- 1047 oc get all
- 1048 cd ex280/
- 1049 ls
- 1050 vim linginx1.conf
- 1051 oc create cm linginx1 --from-file linginx1.conf
- 1052 oc get cm linginx1 -o yaml
- 1053 oc login -u admin -p password
- 1054 oc create sa linginx-sa
- 1055 oc adm policy add-scc-to-user anyuid -z linginx-sa
- 1056 oc login -u developer
- 1057 vim linginx-v1.yaml
- 1058 oc create -f linginx-v1.yaml
- 1059 oc get pods
- 1060 oc get svc
- 1061 oc describe svc linginx1
- 1062 oc create route edge -h | less
- 1063 oc create route edge linginx1 --service linginx1 --cert=../openssl/tls.crt --key=../openssl/tls.key --ca-cert=../openssl/myCA.pem
- 1064 curl -svv https://linginx1-myproject.apps-crc.testing
- 1065 curl -skvv https://linginx1-myproject.apps-crc.testing
- 1066 cd
- 1067 mkdir opentls
- 1068 cd opentls/
- 1069 openssl genrsa -des3 -out myCA.key 2048
- 1070 openssl req -x509 -new -nodes -key myCA.key -sha256 -days 3650 -out myCA.pem
- 1071 openssl genrsa -out tls.key 2048
- 1072 openssl req -new -key tls.key -out tls.csr
- 1073 oc create secret tls linginx-certs --cert tls.crt --key tls.key
- 1074 ls
- 1075 openssl x509 -req -in tls.csr -CA myCA.pem -CAkey myCA.key -CAcreateserial -out tls.crt -days 1650 -sha256
- 1076 oc create secret tls linginx-certs --cert tls.crt --key tls.key
- 1077 oc create secret -h
- 1078 oc create secret tls -h | less
- 1079 oc get secret linginx-certs -o yaml
- 1080 cd ../ex280/
- 1081 ls
- 1082 cat default.conf
- 1083 oc create cm nginxconfigmap --from-file default.conf
- 1084 oc create sa linginx-sa
- 1085 oc projects
- 1086 vim linginx-v2.yaml
- 1087 oc create -f linginx-v2.yaml
- 1088 oc create route passtrough -h | less
- 1089 oc create route passthrough -h | less
- 1090 oc create route passthrough linginx --service linginx2 --port 8443 --hostname=linginx-default.apps-crc.testing
- 1091 oc get all
- 1092 oc get svc
- 1093 oc debug -t deployment/linginx2 --image registry.access.redhat.com/ubi8/ubi
- 1094 curl -k https://linginx-default.apps-crc.testing
- 1095 ls
- 1096 ../ex180/countdown 15
- 1097 oc whoami
- 1098 cd
- 1099 oc new-project simple
- 1100 oc create deploy simple --image=bitnami/nginx
- 1101 oc get all
- 1102 oc scale --replicas=4 deploy/simple
- 1103 oc get pods -o wide
- 1104 oc login -u admin -p password
- 1105 oc get nodes -L env
- 1106 oc label nodes crc-8rwmc-master-0 env=dev
- 1107 oc get nodes -L env
- 1108 oc login -u developer
- 1109 oc edit deploy simple
- 1110 oc get pods -o wide
- 1111 oc get all
- 1112 oc describe pod simple-8fc8c86b6-l2vh9
- 1113 oc whoami
- 1114 oc login -u admin -p password
- 1115 oc label node crc-8rwmc-master-0 env=blah
- 1116 oc label node crc-8rwmc-master-0 env=blah --overwrite
- 1117 oc get all
- 1118 free -m
- 1119 ls -a
- 1120 cd .crc
- 1121 ls
- 1122 cd machines/
- 1123 ls
- 1124 cd crc
- 1125 ls
- 1126 ssh -i id_ecdsa core@$(crc ip)
- 1127 rm ~/.ssh/known_hosts
- 1128 ssh -i id_ecdsa core@$(crc ip)
- 1129 history
- 1130 oc autoscale -h | less
- 1131 oc new-app --name simple php~https://github.com/sandervanvugt/simpleapp
- 1132 oc new-app --name toosimple php~https://github.com/sandervanvugt/simpleapp
- 1133 oc get deploy
- 1134 oc get all
- 1135 oc autoscale deployment toosimple --min 5 --max 10 --cpu-percent 1
- 1136 oc get hpa
- 1137 oc get pods
- 1138 oc set resources -h | less
- 1139 oc new-project limited
- 1140 oc create deploy nee --image=bitnami/nginx --replicas=3
- 1141 oc get pods
- 1142 oc get all
- 1143 oc set resources deploy nee --requests=10m,memory=1Mi --limits cpu=20m,memory=5Mi
- 1144 oc set resources deploy nee --requests cpu=10m,memory=1Mi --limits cpu=20m,memory=5Mi
- 1145 oc get all
- 1146 oc describe pods nee-84cbcb6569-hzccc
- 1147 oc set resources deploy nee --requests cpu=10m,memory=10Mi --limits cpu=20m,memory=50Mi
- 1148 oc get all
- 1149 oc set resources deploy nee --requests cpu=10m,memory=1Mi --limits cpu=20m,memory=5Mi
- 1150 oc get all
- 1151 oc get pods nee-84cbcb6569-sxw6h -o yaml | less
- 1152 oc set resources deploy nee --requests cpu=0m,memory=0Mi --limits cpu=0m,memory=0Mi
- 1153 oc get all
- 1154 cd
- 1155 ex180/countdown 18
- 1156 oc describe node crc-8rwmc-master-0
- 1157 oc adm top
- 1158 oc adm top node
- 1159 oc create quota -h | less
- 1160 oc get resourcequota -A
- 1161 oc whoami
- 1162 oc login -u developer
- 1163 oc new-project quota-test
- 1164 oc login -u admin -p password
- 1165 oc createa quota qtest --hard pods=3,cpu=100m,memory=500Mi
- 1166 oc create quota qtest --hard pods=3,cpu=100m,memory=500Mi
- 1167 oc describe quota
- 1168 oc login -u developer
- 1169 oc create deploy bitginx --image=bitnami/nginx --replicas=3
- 1170 oc get all
- 1171 oc describe rs bitginx-cd4645bb4
- 1172 oc create deploy -h | less
- 1173 oc new-app | less
- 1174 oc new-app -h | less
- 1175 oc set resources deploy bitginx --requests cpu=100m,memory=5Mi --limits cpu=200m,memory=20Mi
- 1176 oc get all
- 1177 oc get resourcequota
- 1178 oc describe quota
- 1179 oc describe quota -n default
- 1180 oc projects
- 1181 oc projects -n simple
- 1182 oc describe quota -n simple
- 1183 oc whoami
- 1184 oc new-project limits
- 1185 oc login -u admin -p password
- 1186 oc explain limitrange
- 1187 oc explain limitrange.spec
- 1188 oc explain limitrange.spec.limits
- 1189 oc explain --recursive limitrange.spec.limits
- 1190 oc explain --recursive limitrange.spec.limits.default
- 1191 cd ex280/
- 1192 vim limits.yaml
- 1193 oc create --save-config -f limits.yaml
- 1194 oc get limitranges
- 1195 oc describe limitranges
- 1196 oc create deploy failginx --image=bitnami/nginx --replicas=10
- 1197 oc get all
- 1198 oc describe rs failginx-56b7b67f85
- 1199 echo $(( 2 * 1024 * 1024 ))
- 1200 oc projects
- 1201 oc project
- 1202 oc delete ns limits
- 1203 ../ex180/countdown 12
- 1204 oc login -u admin -p password
- 1205 oc edit nodes crc-8rwmc-master-0
- 1206 oc adm taint -h | less
- 1207 oc adm taint node crc-8rwmc-master-0 key1=value1:NoSchedule
- 1208 oc run newpod --image=bitnami/nginx
- 1209 oc get pods
- 1210 oc describe pods newpod
- 1211 oc edit pod newpod
- 1212 oc get pods
- 1213 oc adm taint nodes crc-8rwmc-master-0 key1-
- 1214 oc adm --help
- 1215 oc adm cordon crc-8rwmc-master-0
- 1216 oc describe nodes crc-8rwmc-master-0
- 1217 oc describe nodes crc-8rwmc-master-0 | less
- 1218 oc adm uncordon crc-8rwmc-master-0
- 1219 history
Advertisement
Add Comment
Please, Sign In to add comment