export KUBECONFIG=INSTALL_DIR/auth/kubeconfig
oc login -u kubeadmin -p my-secure-password-{-_-}
## Cluster sürüm bilgisi öğrenme
```bash
oc get clusterversion
Configuring the OAuth Custom Resource
To use the HTPasswd identity provider, the OAuth custom resource must be edited to add an
entry to the .spec.identityProviders array:
apiVersion: config.openshift.io/v1
kind: OAuth
metadata:
name: cluster
spec:
identityProviders:
- name: my_htpasswd_provider
mappingMethod: claim
type: HTPasswd
htpasswd:
fileData:
name: htpasswd-secret
oc get node
oc adm top nodes
oc create user aliokan
oc create user --full-name="Ali Okan Yuksel"
oc get user
oc adm policy remove-cluster-role-from-group self-provisioner system:authenticated:oauth
oc get co
oc get clusteroperators
oc adm node-logs -u crio master01
oc adm node-logs -u kubelet master01
oc adm node-logs master01
oc debug node/master01
oc debug deployment/my-deployment-name --as-root
oc rsh my-pod-name
oc cp localfile my-pod-name:/remotefile
oc port-forward my-pod-name local-port:remote-port
oc get pod --loglevel 10
oc whami -t
oc edit depoyment/bla
oc new-app --name=mydb --image-stream=mysql:5.7 -e MYSQL_USER=dbuser -e MYSQL_PASSWORD=verysecret -e MYSQL_DATABASE=mydb
uygulamaya ait env variable'ları config den okunacak hale getirmek amacıyla bir configmap ve secret yarat
oc create configmap db-config --from-literal user=dbuser --from-literal=database=mydb
oc create secret generic db-auth --from-literal=password=verysecret
oc set env dc/mydb --list # mydb isimi uygulama ayağa kaldırırken verdiğimiz isimlendirme, mevcut environment variable'ları listeler
oc set env dc/mydb --from cm/db-config --prefix=MYSQL
oc set env dc/mydb --from cm/db-auth --prefix=MYSQL
oc new-app -L
oc new-app --search mysql
oc whoami --show-console