Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1001 oc whoami
- 1002 crc oc-env
- 1003 eval $(crc oc-env)
- 1004 oc whoami
- 1005 oc get all
- 1006 oc get scc
- 1007 oc describe scc nonroot
- 1008 oc get pods
- 1009 source <(oc completion bash)
- 1010 oc describe pod mysql-65f5c45bf-72x42 | grep scc
- 1011 oc run failginx --image=nginx
- 1012 oc get all
- 1013 oc login -u linda
- 1014 oc new-project sccs
- 1015 oc new-app --name sccnginx --image=nginx:latest
- 1016 oc get pods
- 1017 oc logs sccnginx-c74bbb996-k84f6
- 1018 oc get pod sccnginx-c74bbb996-k84f6 -o yaml | oc adm policy scc-subject-review -f -
- 1019 oc login -u admin -p password
- 1020 oc get pod sccnginx-c74bbb996-k84f6 -o yaml | oc adm policy scc-subject-review -f -
- 1021 oc create sa nginx-sa
- 1022 oc adm policy add-scc-to-user anyuid -z nginx-sa
- 1023 oc login -u linda
- 1024 oc get all
- 1025 oc set serviceaccount deployment sccnginx nginx-sa
- 1026 oc get all
- 1027 oc get pods sccnginx-77d89b854d-8dvj2 -o yaml | grep ervice
- 1028 oc get pods
- 1029 oc new-app --image=bitnami/nginx --name=bginx
- 1030 oc get all
- 1031 oc get pods -o wide
- 1032 oc describe pod bginx-6f57bb547f-mw4fb | less
- 1033 oc get svc
- 1034 oc describe svc sccnginx
- 1035 oc scale deployment sccnginx --replicas=3
- 1036 oc describe svc sccnginx
- 1037 oc edit svc sccnginx
- 1038 oc describe svc sccnginx
- 1039 oc get svc
- 1040 oc expose service sccnginx
- 1041 oc get routes
- 1042 oc describe routes.route.openshift.io sccnginx
- 1043 oc edit sccnginx
- 1044 oc edit svc sccnginx
- 1045 oc describe routes.route.openshift.io sccnginx
- 1046 curl sccnginx-sccs.apps-crc.testing
- 1047 ex180/countdown 13
- 1048 rm -rf openssl/
- 1049 mkdir openssl
- 1050 cd openssl/
- 1051 openssl genrsa -des3 -out myCA.key 2048
- 1052 ls -l
- 1053 openssl req -x509 -new -nodes -key myCA.key -sha256 -days 3650 -out myCA.pem
- 1054 openssl genrsa -out tls.key 2048
- 1055 openssl req -new -key tls.key -out tls.csr
- 1056 openssl x509 -req -in tls.csr -CA myCA.pem -CAkey myCA.key -CAcreateserial -out tls.crt -days 1650 -sha256
- 1057 ls -l
- 1058 openssl req -text -verify -noout -in tls.csr
- 1059 man openssl-req
- 1060 man openssl-x509
- 1061 oc whoami
- 1062 oc new-project myproject
- 1063 oc project myproject
- 1064 oc login -u admin -p password
- 1065 oc delete ns myproject
- 1066 oc login -u linda
- 1067 oc new-project myproject
- 1068 cd ../ex280/
- 1069 #git clone https://github.com/sandervanvugt/ex280
- 1070 ls
- 1071 vim linginx1.conf
- 1072 oc create cm linginx1 --from-file linginx1.conf
- 1073 oc get cm linginx1 -o yaml
- 1074 oc login -u admin -p password
- 1075 oc create sa linginx-sa
- 1076 oc adm policy add-scc-to-user anyuid -z linginx-sa
- 1077 vim linginx-v1.yaml
- 1078 oc create -f linginx-v1.yaml
- 1079 oc get pods
- 1080 oc get svc
- 1081 oc create route edge linginx1 --service linginx1 --cert=../openssl/tls.crt --key=../openssl/tls.key --ca-cert=../openssl/myCA.pem
- 1082 oc create route edge -h | less
- 1083 curl -svv https://linginx1-myproject.apps-crc.testing
- 1084 curl -skvv https://linginx1-myproject.apps-crc.testing
- 1085 history
- 1086 ../ex180/countdown 15
- 1087 oc get svc
- 1088 oc get route
- 1089 oc create route edge -h
- 1090 mkdir openssl
- 1091 mkdir newssl
- 1092 cd newssl/
- 1093 openssl genrsa -des3 -out myCA.key 2048
- 1094 openssl req -x509 -new -nodes -key myCA.key -sha256 -days 3650 -out myCA.pem
- 1095 openssl genrsa -out tls.key 2048
- 1096 openssl req -new -key tls.key -out tls.csr
- 1097 openssl x509 -req -in tls.csr -CA myCA.pem -CAkey myCA.key -CAcreateserial -out tls.crt -days 30 -sha256
- 1098 oc create secret tls -h | less
- 1099 oc create secret tls --cert tls.crt --key tls.key
- 1100 oc create secret tls linginx-cert --cert tls.crt --key tls.key
- 1101 oc create secret tls linginx-certs --cert tls.crt --key tls.key
- 1102 oc get secrets linginx-certs -o yaml
- 1103 cd ..
- 1104 ls
- 1105 cat default.conf
- 1106 oc create cm nginxconfigmap --from-file default.conf
- 1107 oc create sa linginx-sa
- 1108 oc project
- 1109 oc new-project default
- 1110 cd project default
- 1111 oc project default
- 1112 history
- 1113 oc create secret tls linginx-certs --cert tls.crt --key tls.key
- 1114 ls
- 1115 oc create secret tls linginx-certs --cert newssl/tls.crt --key newssl/tls.key
- 1116 oc create cm nginxconfigmap --from-file default.conf
- 1117 oc create sa linginx-sa
- 1118 oc adm policy add-scc-to-user anyuid -z linginx-sa
- 1119 vim linginx-v2.yaml
- 1120 oc create -f linginx-v2.yaml
- 1121 oc create route passthrough -h | less
- 1122 oc create route passthrough linginx --service linginx2 --port 8443 --hostname=linginx-default.apps-crc.testing
- 1123 oc get routes
- 1124 oc edit routes linginx
- 1125 oc get routes
- 1126 oc get svc
- 1127 oc debug -t deployment/linginx2 --image registry.access.redhat.com/ubi8/ubi:8.0
- 1128 oc whoami
- 1129 oc login -u linda -p password
- 1130 oc create deploy simple --image=bitnami/nginx
- 1131 oc get all --selector app=simple
- 1132 oc scale --replicas 4 deployment/simple
- 1133 oc get pods -o wide
- 1134 oc login -u admin -p password
- 1135 oc get nodes -L env
- 1136 oc label node crc-jw57j-master-0 env=dev
- 1137 oc get nodes -L env
- 1138 oc login -u linda
- 1139 oc edit deploy/simple
- 1140 oc get all --selector app=simple
- 1141 oc describe pods simple-5b4cf6ffd4-zcrzv
- 1142 oc edit deploy/simple
- 1143 oc get all --selector app=simple
- 1144 ../ex180/countdown 20
- 1145 oc whoami
- 1146 oc new-project hpa
- 1147 oc new-app --name simple php~https://github.com/sandervanvugt/simpleapp
- 1148 oc get deploy
- 1149 oc get all
- 1150 oc login -u admin -p password
- 1151 crc status
- 1152 crc stop
- 1153 crc start
- 1154 crc oc-env
- 1155 eval $(crc oc-env)
- 1156 source <(oc completion)
- 1157 source <(oc completion bash)
- 1158 oc login -u admin -p password
- 1159 oc get deploy -A
- 1160 oc project yeah
- 1161 oc get all
- 1162 oc delete deploy mysql
- 1163 oc project sunnytuesday
- 1164 oc get all
- 1165 oc delete deploy myfirstapp
- 1166 oc projects
- 1167 oc delete ns yeah
- 1168 for i in rbac s2i sccs trouble; do oc delete ns $i; done
- 1169 oc login -u linda
- 1170 oc new-project quota-test
- 1171 oc login -u admin -p password
- 1172 oc create quota -h
- 1173 history
- 1174 oc create quota qtest --hard pods=3,cpu=100m,memory=500Mi
- 1175 oc describe quota
- 1176 oc login -u linda
- 1177 oc create deploy nitginx --image=bitnami/nginx --replicas=3
- 1178 oc get all
- 1179 oc describe rs nitginx-6d4866566b
- 1180 oc get all
- 1181 oc set resources -h
- 1182 oc set resources deploy nitnginx --requests cpu=100m,memory=5Mi --limits cpu=200m,memory=20Mi
- 1183 oc get all
- 1184 oc set resources deploy nitginx --requests cpu=100m,memory=5Mi --limits cpu=200m,memory=20Mi
- 1185 oc get all
- 1186 oc describe quota
- 1187 oc edit quota qtest
- 1188 oc login -u admin -p password
- 1189 oc edit quota qtest
- 1190 oc login -u linda
- 1191 oc get all
- 1192 oc describe quota
- 1193 oc get all
- 1194 oc new-project np
- 1195 oc whoami
- 1196 oc create deploy nee --image=bitnami/nginx --replicas=3
- 1197 oc get pods
- 1198 oc set resources deploy nee --requests cpu=10m,memory=1Mi --limits cpu=20m,memory=5Mi
- 1199 oc get pods
- 1200 oc get all
- 1201 oc describe pods nee-55b99ffbbc-prxdm
- 1202 oc set resources deploy nee --requests cpu=0m,memory=0Mi --limits cpu=0m,memory=0Mi
- 1203 oc get pods
- 1204 oc new-app --name simple php~https://github.com/sandervanvugt/simpleapp
- 1205 oc get all
- 1206 oc autoscale -h
- 1207 oc autoscale deployment simple --min 5 --max 10 --cpu-percent 1
- 1208 oc get hpa
- 1209 oc get pods
- 1210 oc project
- 1211 oc login -u admin -p password
- 1212 oc delete ns np
- 1213 ../ex180/countdown 12
- 1214 oc new-project limits
- 1215 oc whoami
- 1216 oc explain limitragen.spec.limits
- 1217 oc explain limitrange.spec.limits
- 1218 oc explain limitrange.spec.limits.max
- 1219 vim limits.yaml
- 1220 oc create --save-config -f limits.yaml
- 1221 oc get limitrange
- 1222 oc describe limitranges limit-limits
- 1223 oc login -u admin -p password
- 1224 oc adm taint -h
- 1225 oc adm taint node crc-jw57j-master-0 key1=value1:NoSchedule
- 1226 oc run newpod --image=bitnami/ngin
- 1227 oc new-project tainted
- 1228 oc run newpod --image=bitnami/ngin
- 1229 oc get pods
- 1230 oc describe pods newpod
- 1231 oc edit pod newpod
- 1232 oc get pods
- 1233 oc describe pod newpod
- 1234 oc get pods
- 1235 oc delete pod newpod
- 1236 oc run newpod --image=bitnami/nginx
- 1237 oc edit pod newpod
- 1238 oc get pods
- 1239 history
Advertisement
Add Comment
Please, Sign In to add comment