rTfact

OpenShift_2

Apr 20th, 2021
3,207
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   506  crc start
  2.   507  crc console --credentials
  3.   508  podman search mariadb
  4.   509  podman login registry.access.redhat.com
  5.   510  podman login registry.redhat.io
  6.   511  podman search mariadb | less
  7.   512  crc --help
  8.   513  crc oc-env
  9.   514  eval $(crc oc-env)
  10.   515  oc login -u developer -p developer
  11.   516  echo DAY@ EX180
  12.   517  podman search mariadb | less
  13.   518  oc create deploy -h | less
  14.   519  oc create deploy --image=registry.access.redhat.com/rhscl/mariadb-101-rhel7 mymariadb
  15.   520  oc projects
  16.   521  oc new-project maria
  17.   522  oc create deploy --image=registry.access.redhat.com/rhscl/mariadb-101-rhel7 mymariadb
  18.   523  history
  19.   524  oc get all
  20.   525  oc get pods
  21.   526  oc get pods -A
  22.   527  oc completion -h
  23.   528  source <(oc completion bash)
  24.   529  oc get pods mymariadb-74d5c54bbb-hb7qm
  25.   530  oc get pods mymariadb-74d5c54bbb-hb7qm -o yaml
  26.   531  oc describe pods mymariadb-74d5c54bbb-hb7qm
  27.   532  oc logs mymariadb-74d5c54bbb-hb7qm
  28.   533  oc create deploy mynewnginx --image=bitnami/nginx
  29.   534  oc delete deploy mynewnginx
  30.   535  oc create deploy mynewnginx --image=bitnami/nginx --dry-run=client -o yaml > mynewnginx.yaml
  31.   536  vim mynewnginx.yaml
  32.   537  oc create -f mynewnginx.yaml
  33.   538  oc get all
  34.   539  oc get all --selector app=mynewnginx
  35.   540  oc get all --selector app=mynewnginx --show-labels
  36.   541  oc label pod mynewnginx-67878f488c-tqmbn app=mynewnginx-
  37.   542  oc label pod mynewnginx-67878f488c-tqmbn app-
  38.   543  oc get all
  39.   544  oc get all --show-labels
  40.   545  oc delete pod/mynewnginx-67878f488c-tqmbn
  41.   546  oc get pods -o wide
  42.   547  oc new-app -h | less
  43.   548  oc new-app --docker-image=bitnami/nginx --name=bitginx
  44.   549  oc get all
  45.   550  oc scale deployment bitginx --replicas=3
  46.   551  oc get all --selector app=bitginx
  47.   552  oc get all
  48.   553  oc get all -o wide
  49.   554  oc describe svc bitginx
  50.   555  curl 10.217.4.185:8080
  51.   556  l
  52.   557  ls
  53.   558  history
  54.   559  ckad/countdown 18
  55.   560  oc whoami
  56.   561  oc new-project myroute
  57.   562  oc new-app --as-deployment-config bitnami/nginx --name bitginx
  58.   563  oc get all
  59.   564  oc describe svc bitginx
  60.   565  oc expose -h | less
  61.   566  oc expose svc bitginx
  62.   567  oc get routes
  63.   568  curl http://bitginx-myroute.apps-crc.testing
  64.   569  oc new-project cm
  65.   570  oc create deploy mynginx --image=bitnami/nginx
  66.   571  oc get pods
  67.   572  oc cp mynginx-5f8b4bd48f-bg8hz:/app/index.html index.html
  68.   573  ls
  69.   574  vim index.html
  70.   575  oc create configmap mycm --from-file=index.html
  71.   576  oc describe cm mycm
  72.   577  oc get all
  73.   578  oc set volume deploy mynginx --add --type configmap --configmap-name mycm --mount-path=/app/ --overwrite
  74.   579  oc set volume -h | less
  75.   580  oc get cm
  76.   581  oc set volume -h | less
  77.   582  oc set volume deploy mynginx --add --type configmap --configmap-name=mycm --mount-path=/app/ --overwrite
  78.   583  oc new-project mydb
  79.   584  oc create deploy mymysql --image=mysql
  80.   585  oc logs mymysql-796bb6cfdd-hgcjf
  81.   586  oc create cm myvars --from-literal=MYSQL_ROOT_PASSWORD=password
  82.   587  oc describe cm myvars
  83.   588  oc get pods
  84.   589  oc set env deploy mymysql --from=configmap/myvars
  85.   590  oc get pods
  86.   591  ckad/countdown 12
  87.   592  oc login -u kubeadmin -p N8Y8Y-gCZTt-3C8JW-pf4Q8 https://api.crc.testing:6443
  88.   593  oc get pv
  89.   594  oc get pv pv0030
  90.   595  oc get pv pv0030 -o yaml
  91.   596  oc login -u developer -p developer
  92.   597  oc get templates
  93.   598  oc get templates -n openshift
  94.   599  oc get templates -n openshift | grep persistent
  95.   600  oc get template mariadb-persistent -n openshift -o yaml
  96.   601  oc process --parameters mariadb-persistent -n openshift
  97.   602  oc get template mariadb-ephemeral -o yaml -n openshift > mariadb-ephemeral.yaml
  98.   603  vim mariadb-ephemeral.yaml
  99.   604  oc process -f mariadb-ephemeral.yaml -p MYSQL_USER=anna -p MYSQL_PASSWORD=password -p MYSQL_DATABASE=books | oc create -f -
  100.   605  oc get pods
  101.   606  mariadb-1-m4dp4            0/1     Running   0          55s
  102.   607  oc get pods
  103.   608  oc get is -n openshift
  104.   609  oc -o yaml new-app php~https://github.com/sandervanvugt/simpleapp --name=simple > s2i.yaml
  105.   610  vim s2i.yaml
  106.   611  oc apply -f s2i.yaml
  107.   612  oc get builds
  108.   613  oc get pods
  109.   614  oc get all
  110.   615  oc get builds
  111.   616  oc logs build simple-1
  112.   617  oc logs build simple1
  113.   618  oc get pods
  114.   619  oc logs build simple-1-build
  115.   620  oc logs simple-1-build
  116.   621  oc get buildconfig
  117.   622  oc get all
  118.   623  history
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×