sander_van_vugt_-_master_of_linux-containers-kubernetes-red_hat-openshift-rhel-ansible

Sander van Vugt - Master of Linux-Containers-Kubernetes-Red Hat-OpenShift-RHEL-Ansible

Classes

Books

1018 oc get co 1019 oc get all 1020 oc api-resources | less 1021 oc api-resources | wc 1022 oc project 1023 oc projects 1024 oc new-project myproject 1025 oc projects 1026 crc –help 1027 crc console –help 1028 crc console –credentials 1029 oc login -u kubeadmin -p 7ILv3-JoItC-CcHLs-rSSiM https://api.crc.testing:6443 1030 oc projects 1031 oc get ns 1032 oc login -u developer -p developer https://api.crc.testing:6443 1033 oc new-app -h | less 1034 oc create deploy -h | less 1035 oc create deployment firstapp –image=nginx –replicas=3 1036 oc get all 1037 oc create deployment secondapp –image=bitnami/nginx –replicas=3 1038 oc get all 1039 oc describe pod firstapp-6545598f67-td6qb 1040 oc logs secondapp-55f78dc59d-vll7k 1041 oc logs firstapp-6545598f67-td6qb 1042 history 1043 oc new-app -h | less 1044 oc new-app mysql MYSQL_USER=user MYSQL_PASSWORD=pass MYSQL_DATABASE=testdb -l db=mysql 1045 oc get all 1046 ls 1047 ex180/countdown 12 1048 oc get pods 1049 oc get pods -o wide 1050 oc get pods -o wide –show-labels 1051 oc get pods -A 1052 oc login -u kubeadmin -p 7ILv3-JoItC-CcHLs-rSSiM https://api.crc.testing:6443 1053 oc get pods -A 1054 oc get pods -A | wc 1055 oc login -u developer -p developer https://api.crc.testing:6443 1056 oc get pods mysql-5d95db994f-vg82w -o yaml | less 1057 oc describe pods mysql-5d95db994f-vg82w 1058 oc get all –show-labels 1059 oc get all –selector app=secondapp 1060 oc get all –show-labels 1061 oc delete deployment firstapp 1062 oc get all –show-labels 1063 oc label pod secondapp-55f78dc59d-vll7k app- 1064 oc get all –show-labels 1065 oc create deploy mythirdapp –image=bitnami/nginx –replicas=3 –dry-run=client -o yaml > mythirdapp.yaml 1066 vim mythirdapp.yaml 1067 oc explain deploy 1068 oc explain deploy.spec 1069 oc explain deploy.spec.template 1070 oc explain deploy.spec.template.spec 1071 vim mythirdapp.yaml 1072 oc create -f mythirdapp.yaml 1073 vim mythirdapp.yaml 1074 history 1075 oc new-project web 1076 oc create deployment fourthapp –image=bitnami/nginx –replicas=3 1077 oc get all 1078 oc expose deployment fourthapp 1079 oc expose deployment fourthapp –port=80 1080 oc get all 1081 curl 10.217.4.242 1082 oc delete svc fourthapp 1083 oc expose deployment -h 1084 oc expose deployment fourthapp –type=NodePort –port=80 1085 oc get all 1086 crc ip 1087 curl 192.168.130.11:31719 1088 oc describe svc fourthapp 1089 oc delete svc fourthapp 1090 oc expose deployment fourthapp –type=NodePort –port=8080 1091 crc ip 1092 oc get svc 1093 curl 192.168.130.11:31283 1094 oc describe svc fourthapp 1095 oc edit svc fourthapp 1096 curl 192.168.130.11:31283 1097 oc describe svc fourthapp 1098 oc edit svc fourthapp 1099 oc get endpoints 1100 oc new-project route 1101 oc projects 1102 oc whoami 1103 oc new-app –as-deployment-config quay.io/bitnami/nginx –name=bitgin 1104 oc get all 1105 oc descrieb svc bitginx 1106 oc describe svc bitginx 1107 oc describe svc bitgin 1108 oc expose svc bitgin 1109 oc get all 1110 oc describe route 1111 oc run -it busybox sh 1112 oc run -it busybox –image=busybox sh 1113 oc run -it ubuntu –image=ubuntu sh 1114 oc run fedora –image=fedora curl http://bitgin-route.apps-crc.testing 1115 oc run -it fedora –image=fedora – curl http://bitgin-route.apps-crc.testing 1116 oc run -it fedoraaaaa –image=fedora – curl http://bitgin-route.apps-crc.testing 1117 ex180/countdown 18 1118 oc new-project cmaps 1119 oc create deploy mynginx –image=quay.io/bitnami/nginx 1120 oc get pods 1121 oc cp mynginx-6c44cfdc6d-gkhfv:/app/index.html index.html 1122 vim index.html 1123 oc create cm mycm –from-file=index.html 1124 oc get cm mycm -o yaml 1125 oc set volumes deploy mynginx –add –type configmap –configmap-name mycm –mount-path=/app/ 1126 oc get all 1127 oc get cm 1128 oc expose deploy mynginx –type=NodePort –port=8080 1129 oc get svc 1130 curl http://$(crc ip):31848 1131 oc get deployment mynginx -o yaml 1132 oc get all 1133 oc new-project trouble 1134 oc projects 1135 oc create deploy mymariadb –image=mariadb 1136 oc get all 1137 oc logs mymariadb-58b96cb658-gwrcw 1138 oc create cm myvars –from-literal=ROOT_PASSWORD=password 1139 oc set env -h | less 1140 oc set env deploy mymariadb –from=configmap/myvars –prefix=MYSQL_ 1141 oc get all 1142 oc describe deployment mymariadb 1143 oc get deployment mymariadb -o yaml 1144 oc logs mymariadb-6688d47948-gg2h7 1145 podman login docker.io 1146 oc create secret -h | less 1147 oc create secret generic docker –from-file .dockerconfigjson=${XDG_RUNTIME_DIR}/containers/auth.json –type kubernetes.io/dockerconfigjson 1148 oc describe secret docker 1149 oc get secret docker -o yaml 1150 oc secrets link default docker –for pull 1151 oc get pv 1152* 1153 oc get pv 1154 oc get storageclass 1155 oc get pv0003 -o yaml 1156 oc get pv pv0003 -o yaml 1157 oc get templates -n openshift 1158 ex180/countdown 12 1159 oc login -u developer -p developer https://api.crc.testing:6443 1160 oc get templates -n openshift 1161 oc get template mariadb-persistent -n openshift 1162 oc get template mariadb-persistent -n openshift -o yaml 1163 oc process –parameters mariadb-ephemeral -n openshift 1164 oc new-project tempalte 1165 oc new-app –template=mariadb=persistent -p MYSQL_USER=anna -p MYSQL_PASSWORD=password -p MYSQL_DATABSE=videos –as-deployment-config 1166 oc new-app –template=mariadb-persistent -p MYSQL_USER=anna -p MYSQL_PASSWORD=password -p MYSQL_DATABSE=videos –as-deployment-config 1167 oc new-app –template=mariadb-persistent -p MYSQL_USER=anna -p MYSQL_PASSWORD=password -p MYSQL_DATABASE=videos –as-deployment-config 1168 oc get all 1169 oc get pvc 1170 oc describe pv pv0010 1171 oc login -u kubeadmin -p 7ILv3-JoItC-CcHLs-rSSiM https://api.crc.testing:6443 1172 oc describe pv pv0010 1173 crc ssh 1174 oc login -u developer -p developer https://api.crc.testing:6443 1175 oc api-resources | grep template 1176 oc get is -n openshift 1177 oc get is -n openshift | less 1178 oc -o yaml new-app php~https://github.com/sandervanvugt/simpleapp –name=simple > s2i.yaml 1179 vim s2i.yaml 1180 oc apply -f s2i.yaml 1181 oc status 1182 oc get all 1183 oc delete dc mariadb 1184 oc get all 1185 oc get builds 1186 oc logs simple-1-build 1187 oc get buildconfigs.build.openshift.io simple1 1188 oc get buildconfigs.build.openshift.io simple-1 1189 oc get bc 1190 oc get buildconfigs.build.openshift.io simple 1191 history 1192 oc expose svc simple 1193 oc get routes 1194 curl simple-tempalte.apps-crc.testing 1195 git clone https://github.com/sandervanvugt/simple-app 1196 git clone https://github.com/sandervanvugt/simpleapp 1197 cd simpleapp/ 1198 vim index.php 1199 git add * 1200 git status 1201 git commit 1202 git push 1203 oc start-build simple 1204 oc get all 1205 curl simple-tempalte.apps-crc.testing 1206 history

sander_van_vugt_-_master_of_linux-containers-kubernetes-red_hat-openshift-rhel-ansible.txt · Last modified: 2024/05/01 04:18 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki