Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1003 eval $(crc oc-env)
- 1004 oc login -u admin -p password
- 1005 oc get all
- 1006 source <(oc completion bash)
- 1007 oc describe svc bginx
- 1008 oc get all --show-labels
- 1009 oc scale deployment bginx --replicas=3
- 1010 oc describe svc bginx
- 1011 oc edit svc bginx
- 1012 oc describe svc bginx
- 1013 oc edit svc bginx
- 1014 oc describe svc bginx
- 1015 oc get svc
- 1016 oc expose svc bginx
- 1017 oc get routes,svc
- 1018 curl bginx-sccs.apps-crc.testing
- 1019 oc describe route bginx
- 1020 rm -rf openssl/
- 1021 mkdir openssl
- 1022 cd openssl/
- 1023 ls
- 1024 openssl genrsa -des3 -out myCA.key 2048
- 1025 openssl req -x509 -new -nodes -key myCA.key -sha256 -days 3650 -out myCA.pem
- 1026 ls -l
- 1027 pwd
- 1028 openssl genrsa -out tls.key 2048
- 1029 openssl req -new -key tls.key -out tls.csr
- 1030 openssl x509 -req -in tls.csr -CA myCA.pem -CAkey myCA.key -CAcreateserial -out tls.crt -days 1650 -sha256
- 1031 ls -l
- 1032 openssl req -test -verify -noout -in tls.csr
- 1033 openssl req -text -verify -noout -in tls.csr
- 1034 man openssl-req
- 1035 man openssl-x509
- 1036 ls -l
- 1037 ../ex180/countdown 15
- 1038 oc login -u linda -p password
- 1039 oc new-project myproject
- 1040 oc login -u admin -p password
- 1041 oc project myproject
- 1042 oc get all
- 1043 oc delete all
- 1044 oc delete all --all
- 1045 oc get all
- 1046 cd ../ex280/
- 1047 history | grep git
- 1048 ls
- 1049 vim linginx1.conf
- 1050 oc create cm linginx1 --from-file linginx1.conf
- 1051 oc create sa linginx-sa
- 1052 oc adm policy add-scc-to-user anyuid -z linginx-sa
- 1053 vim linginx-v1.yaml
- 1054 oc create -f linginx-v1.yaml
- 1055 oc get all
- 1056 oc create route -h | less
- 1057 oc create route edge -h | less
- 1058 cd
- 1059 oc create route edge linginx1 --service linginx1 --cert openssl/tls.crt --key openssl/tls.key --ca-cert openssl/myCA.pem
- 1060 oc get routes
- 1061 curl -svvk https://linginx1-myproject.apps-crc.testing
- 1062 curl -svv https://linginx1-myproject.apps-crc.testing
- 1063 history
- 1064 ex180/countdown 1
- 1065 oc edit routes.route.openshift.io linginx1
- 1066 oc describe routes linginx1
- 1067 mkdir ssl
- 1068 cd ssl
- 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 op[enssl x509 -req -in tls.csr -CA myCA.pem -CAkey myCA.key -CAcreateserial -out tls.csr -days 1650 -sha256
- 1074 openssl x509 -req -in tls.csr -CA myCA.pem -CAkey myCA.key -CAcreateserial -out tls.csr -days 1650 -sha256
- 1075 oc create secret tls -h | less
- 1076 oc create secret tls linginx-cert --cert tls.crt --keys tls.key
- 1077 oc create secret tls linginx-cert --cert tls.crt --key tls.key
- 1078 ls
- 1079 openssl req -new -key tls.key -out tls.csr
- 1080 openssl x509 -req -in tls.csr -CA myCA.pem -CAkey myCA.key -CAcreateserial -out tls.crt -days 1650 -sha256
- 1081 ls -l
- 1082 oc create secret tls linginx-cert --cert tls.crt --key tls.key
- 1083 oc get secret linginx-certs -o yaml
- 1084 oc get secret linginx-cert -o yaml
- 1085 cd ../ex280/
- 1086 vim default.conf
- 1087 oc create cm nginxconfigmap --from-file default.conf
- 1088 oc create sa linginx-sa
- 1089 oc new-project default
- 1090 oc project default
- 1091 oc get all
- 1092 oc create sa linginx-sa
- 1093 oc create cm nginxconfigmap --from-file default.conf
- 1094 oc create secret tls linginx-cert --cert tls.crt --key tls.key
- 1095 cd ../ssl/
- 1096 oc create secret tls linginx-cert --cert tls.crt --key tls.key
- 1097 cd ../ex280/
- 1098 oc adm policy add-scc-to-user anyuid -z linginx-sa
- 1099 vim linginx-v2.yaml
- 1100 oc create -f linginx-v2.yaml
- 1101 oc create route passtrough -h | less
- 1102 oc create route passthrough -h
- 1103 oc create route passthrough linginx --service linginx2 --port 8443
- 1104 oc describe route linginx
- 1105 oc get svc
- 1106 oc debug -t deployment/linginx2 --image registry.access.redhat.com/ubi8/ubi:8.0
- 1107 oc debug -t deployment/linginx2 --image ubi9/ubi
- 1108 curl https://linginx-default.apps-crc.testing
- 1109 curl -svv https://linginx-default.apps-crc.testing
- 1110 curl -svvk https://linginx-default.apps-crc.testing
- 1111 oc get svc
- 1112 curl -sk https://10.217.5.50:8443
- 1113 oc edit svc linginx2
- 1114 oc get svc
- 1115 crc ip
- 1116 curl -sk https://192.168.130.11:30964
- 1117 curl -svvk https://192.168.130.11:30964
- 1118 echo WE ARE ON BREAK UNTIL HH:15
- 1119 history
- 1120 oc describe route linginx
- 1121 cd ../ssl/
- 1122 rm *csr
- 1123 rm *crt
- 1124 openssl req -new -key tls.key -out tls.csr
- 1125 openssl x509 -req -in tls.csr -CA myCA.pem -CAkey myCA.key -CAcreateserial -out tls.crt -days 1650 -sha256
- 1126 oc projects
- 1127 oc delete secret linginx-certs
- 1128 oc get secrets
- 1129 oc create secret tls linginx-certs --cert tls.crt --key tls.key
- 1130 oc get deploy
- 1131 oc delete deploy linginx2
- 1132 cd ../ssl/
- 1133 cd ../ex280/
- 1134 oc create -f linginx-v2.yaml
- 1135 curl -svvk https://linginx-default.apps-crc.testing
- 1136 vim linginx-v2.yaml
- 1137 history | grep secret
- 1138 curl -svvk https://linginx-default.apps-crc.testing
- 1139 oc login -u developer -p password
- 1140 oc login -u linda -p password
- 1141 oc get users
- 1142 oc create deploy simple --image=bitnami/nginx
- 1143 oc get all
- 1144 oc new-project mnp
- 1145 oc create deploy simple --image=bitnami/nginx
- 1146 oc get all
- 1147 oc scale --replicas 4 deploy simple
- 1148 oc get all
- 1149 oc get pods -o wide
- 1150 oc login -u admin -p password
- 1151 oc get users
- 1152 oc login -u developer
- 1153 oc login -u admin -p password
- 1154 oc get nodes -L
- 1155 oc get nodes
- 1156 oc get nodes --show-labels
- 1157 oc get nodes -L env
- 1158 oc label nodes crc-sjtnl-master-0 env=dev
- 1159 oc get nodes -L env
- 1160 oc login -u developer
- 1161 history
- 1162 oc login -u linda -p password
- 1163 oc get all
- 1164 oc edit deploy simple
- 1165 oc get all
- 1166 oc describe pod simple-5b4cf6ffd4-qpkhv
- 1167 oc edit deploy simple
- 1168 oc get all
- 1169 oc delete all --all
- 1170 oc login -u admin -p password
- 1171 oc label node -l env env-
- 1172 oc describe nodes crc-sjtnl-master-0
- 1173 oc describe nodes crc-sjtnl-master-0 | less
- 1174 oc explain --recursive node.spec | less
- 1175 oc projects
- 1176 oc login -u linda -p password
- 1177 oc get all
- 1178 oc new-app --name simple php~https://github.com/sandervanvugt/simpleapp
- 1179 oc get deploy
- 1180 oc get all
- 1181 oc autoscale -h | less
- 1182 oc autoscale deploy simple --min 5 --max 10 --cpu-percent 1
- 1183 oc get hpa
- 1184 oc get all
- 1185 oc new-project nee
- 1186 oc create deployment nee --image=bitnami/nginx --replicas=3
- 1187 oc get pods
- 1188 oc set resources -h | less
- 1189 oc set resources deploy nee --requests cpu=10m,memory=1Mi --limits cpu=20m,memory=5Mi
- 1190 oc get pods
- 1191 oc get all
- 1192 oc describe pods nee-55b99ffbbc-n7zfb
- 1193 oc set resources deploy nee --requests cpu=0m,memory=0Mi --limits cpu=0m,memory=0Mi
- 1194 oc get all
- 1195 oc set resources deploy nee --requests cpu=10m,memory=15Mi --limits cpu=20m,memory=50Mi
- 1196 oc get all
- 1197 oc describe pod nee-5fc779c684-l7cvf
- 1198 oc get all
- 1199 oc delete all --all
- 1200 oc create deployment nee --image=bitnami/nginx --replicas=3
- 1201 oc set resources deploy nee --requests cpu=10m,memory=15Mi --limits cpu=20m,memory=50Mi
- 1202 oc edit deployment nee
- 1203 oc get nodes
- 1204 oc login -u admin -p password
- 1205 oc describe nodes crc-sjtnl-master-0
- 1206 oc adm top node
- 1207 oc adm top pod
- 1208 ../ex180/countdown 13
- 1209 oc login -u developer
- 1210 oc new-project quota-test
- 1211 oc login -u admin -p password
- 1212 oc create quota -h | less
- 1213 oc create quota qtest --hard pods=3,cpu=100m,memory=500Mi
- 1214 oc describe quota
- 1215 oc describe ns qtest
- 1216 oc describe ns quota-test
- 1217 oc login -u developer
- 1218 oc create deploy nitginx --image=bitnami/nginx --replicas=3
- 1219 oc get all
- 1220 oc describe rs nitginx-6d4866566b
- 1221 oc set resources deploy nitginx --requests cpu=100m,memory=5Mi --limits cpu=200m,memory=20Mi
- 1222 oc get all
- 1223 oc describe ns quota-test
- 1224 oc edit quota qtest
- 1225 oc login -u admin -p password
- 1226 oc edit quota qtest
- 1227 oc login -u developer
- 1228 oc get all
- 1229 oc edit deployment nitginx
- 1230 oc get all
- 1231 oc edit deployment nitginx
- 1232 oc projectws
- 1233 oc project
- 1234 oc projects
- 1235 oc new-project limits
- 1236 oc login -u admin -p password
- 1237 oc explain limitrange.spec.limits | less
- 1238 oc explain --recursive limitrange.spec.limits | less
- 1239 vim limits.yaml
- 1240 oc apply -f limits.yaml
- 1241 oc get limitrange
- 1242 oc describe limitrange limit-limits
- 1243 oc describe limits
- 1244 oc describe ns limits
- 1245 oc set resource -h | less
- 1246 oc set resources -h | less
- 1247 oc login -u admin -p password
- 1248 oc adm taint -h
- 1249 oc adm taint nodes crc-sjtnl-master-0 key1=value1:NoSchedule
- 1250 oc run newpod --image=bitnami/nginx
- 1251 oc projects
- 1252 oc new-project tainted
- 1253 oc run newpod --image=bitnami/nginx
- 1254 oc get pods
- 1255 oc edit pod newpod
- 1256 oc get pods
- 1257 oc run newerpod --image=bitnami/nginx
- 1258 oc get pods
- 1259 oc whoami
- 1260 oc adm taint nodes crc-sjtnl-master-0 key1-
- 1261 oc get pods
- 1262 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement