Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 904 oc whoami
- 905 oc login -u kubeadmin -p afrA7-ReT7E-F4X4t-RjGYf
- 906 oc adm -h
- 907 oc adm -h | less
- 908 oc adm policy -h | less
- 909 oc adm policy add-cluster-role-to-user -h | less
- 910 oc policy -h | less
- 911 sudo yum provides */htpasswd
- 912 sudo yum provides */htpasswd; sudo yum install httpd-tools
- 913 rm /tmp/htpasswd
- 914 htpasswd -c -B -b /tmp/htpasswd admin password
- 915 htpasswd -B -b /tmp/htpasswd anna password
- 916 htpasswd -B -b /tmp/htpasswd linda password
- 917 htpasswd -B -b /tmp/htpasswd anouk password
- 918 htpasswd -B -b /tmp/htpasswd lisa password
- 919 htpasswd -B -b /tmp/htpasswd ahmed password
- 920 cat /tmp/htpasswd
- 921 oc create secret -h | less
- 922 oc create secret generic htpasswd-secret --from-file htpasswd=/tmp/htpasswd -n openshift-config
- 923 oc get secret -n openshift-config
- 924 oc adm policy add-cluster-role-to-user cluster-admin admin
- 925 oc get oauth
- 926 oc get oauth cluster -o yaml > oauth.yaml
- 927 vim oauth.yaml
- 928 oc replace -f oauth.yaml
- 929 oc get users
- 930 oc login -u anna -p password
- 931 kubectl get pods -n openshift-authentication
- 932 oc get pods -n openshift-authentication
- 933 oc login -u anna -p password
- 934 oc get nodes
- 935 oc login -u admin -p password
- 936 oc get nodes
- 937 oc get users
- 938 oc get identity
- 939 ex180/countdown 18
- 940 oc adm groups -h
- 941 oc adm groups new developers
- 942 oc adm groups add-users developers anouk
- 943 oc adm groups new testers
- 944 oc adm groups add-users testers lisa
- 945 history
- 946 oc get clusterroles
- 947 oc get clusterroles | wc
- 948 oc get clusterroles
- 949 oc get clusterroles | grep -v 'system:'
- 950 oc get clusterroles | grep -v 'system:' | grep -v 'cluster'
- 951 oc get clusterroles | grep -v 'system:' | grep -v 'cluster' | grep -v 'machine'
- 952 oc describe clusterroles edit
- 953 oc describe clusterroles edit | less
- 954 oc get clusterrolebindings
- 955 oc get rolebinding
- 956 oc projects
- 957 oc project
- 958 oc get rolebinding -n new
- 959 oc get clusterrolebindings -o wide
- 960 oc get clusterrolebindings -o wide | less
- 961 oc get clusterrolebindings -o wide | grep 'self-provisioner'
- 962 oc describe clusterrolebindings self-provisioners
- 963 oc adm policy remove-cluster-role-from-group self-provisioner system:authenticated:oauth
- 964 oc describe clusterrolebindings self-provisioners
- 965 oc login -u linda -p password
- 966 oc new-project rbac
- 967 oc login -u kubeadmin -p afrA7-ReT7E-F4X4t-RjGYf
- 968 oc login -u admin -p password
- 969 history
- 970 oc login -u admin -p password
- 971 crc status
- 972 oc logout
- 973 oc login -u admin -p password
- 974 source .kube/config
- 975 crc status
- 976 crc restart
- 977 crc stop
- 978 crc start
- 979 oc login -u developer -p developer
- 980 oc login -u admin -p password
- 981 oc login -v8 -u admin -p password
- 982 find . -name "kubeconfig"
- 983 export KUBECONFIG=/home/sander/.crc/machines/crc/kubeconfig
- 984 oc get nodes
- 985 oc get oauth
- 986 oc whoami
- 987 oc adm policy add-cluster-role-to-group --rolebinding-name self-provisioners self-provisioner system:authenticated:oauth
- 988 history
- 989 oc login -u linda -p password
- 990 oc login -u admin -p password
- 991 export KUBECONFIG=/home/sander/.crc/machines/crc/kubeconfig
- 992 oc get nodes
- 993 oc logout
- 994 export KUBECONFIG=/home/sander/.crc/machines/crc/kubeconfig
- 995 oc get nodes
- 996 exit
- 997 oc set resources deploy bitginx --requests cpu=100m,memory=5Mi --limits cpu=200m,memory=20Mi
- 998 crc --helo
- 999 crc --help
- 1000 crc oc-env
- 1001 eval $(crc oc-env)
- 1002 export KUBECONFIG=/home/sander/.crc/machines/crc/kubeconfig
- 1003 oc get nodes
- 1004 ssh [email protected]
- 1005 ssh -p 2022 [email protected]
- 1006 history
- #### SECOND HOST
- 308 crc status
- 309 crc --help
- 310 crc oc-env
- 311 eval $(crc oc-env)
- 312 crc console --credentials
- 313 oc login -u kubeadmin -p uJeGp-r2i7F-aJKdu-hkLQJ https://api.crc.testing:6443
- 314 oc version
- 315 oc create secret -h | less
- 316 oc create secret generic -h | less
- 317 oc create secret tls -h | less
- 318 oc login -u developer -p developer
- 319 oc new-project secret
- 320 oc create secret generic mysql --from-literal user=sqluser --from-literal password=password --from-literal database=secretdb --from-literal hostname=
- 321 oc delete secret mysql
- 322 oc create secret generic mysql --from-literal user=sqluser --from-literal password=password --from-literal database=secretdb --from-literal hostname=mysql --from-literal root_password=password
- 323 oc get secret
- 324 oc get secret mysql -o yaml
- 325 echo c2VjcmV0ZGI= | base64 -d
- 326 oc new-app --name mysql --docker-image bitnami/mysql
- 327 oc get pods -w
- 328 oc get pods
- 329 oc describe pod mysql-686965b4c-tsbld
- 330 oc get pods
- 331 oc get all
- 332 oc set env deploy/mysql --from-secret/mysql --prefix MYSQL_
- 333 oc set env deploy/mysql --from secret/mysql --prefix MYSQL_
- 334 oc get pods
- 335 oc exec -it mysql-6875b7b9df-tnf2c -- env
- 336 history
- 337 source <(oc completion bash)
- 338 oc get pods mysql-6875b7b9df-tnf2c -o yaml | less
- 339 oc get sa
- 340 oc get scc
- 341 oc login -u kubeadmin -p uJeGp-r2i7F-aJKdu-hkLQJ https://api.crc.testing:6443
- 342 oc get scc
- 343 oc describe scc nonroot
- 344 crc --help
- 345 crc oc-env
- 346 history
- 347 oc describe pod mysql-6875b7b9df-tnf2c | grep scc
- 348 oc whoami
- 349 oc login -u developer
- 350 oc new-app --name sccnginx --image=nginx
- 351 oc get pods
- 352 oc logs sccnginx-65fbc5c6bb-7dz9l
- 353 oc get pods sccnginx-65fbc5c6bb-7dz9l -o yaml | oc adm policy scc-subject-review -f -
- 354 oc get pods sccnginx-65fbc5c6bb-7dz9l -o yaml | grep scc
- 355 oc login -u kubeadmin -p uJeGp-r2i7F-aJKdu-hkLQJ https://api.crc.testing:6443
- 356 oc get pods sccnginx-65fbc5c6bb-7dz9l -o yaml | oc adm policy scc-subject-review -f -
- 357 oc create sa nginx-sa
- 358 oc adm policy add-scc-to-user anyuid -z nginx-sa
- 359 oc login -u developer
- 360 oc get pods
- 361 oc set serviceaccount deployment sccnginx nginx-sa
- 362 oc get pds
- 363 oc get pods
- 364 oc get pods -o yaml | grep ervic
- 365 history
Add Comment
Please, Sign In to add comment