from https://github.com/sdkman/homebrew-tap
brew tap sdkman/tap
brew install sdkman-cli
from https://github.com/sdkman/homebrew-tap
brew tap sdkman/tap
brew install sdkman-cli
## | |
# kubectl apply -f all-in-one.yaml | |
# # might need to be apply twice | |
# kubectl apply -f all-in-one.yaml | |
### | |
# # you can check with the following commandes | |
### | |
# kubectl --as=system:serviceaccount:shyrka-erebus-operators:shyrka-erebus get ns | |
# kubectl --as=system:serviceaccount:shyrka-erebus-operators:shyrka-erebus get hypnos | |
###-- |
oc create ns sample-etcd-backup oc project sample-etcd-backup oc create sa bck -n sample-etcd-backup #oc adm policy add-scc-to-user anyuid system:serviceaccount:sample-etcd-backup:bck #oc adm policy add-scc-to-user hostmount-anyuid system:serviceaccount:sample-etcd-backup:bck oc adm policy add-scc-to-user privileged system:serviceaccount:sample-etcd-backup:bck
$ helm repo add minio https://helm.min.io/ "minio" has been added to your repositories
/* | |
* Copyright 2007-present the original author or authors. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
kubectl top pod | |
kubectl top nodes | |
kubectl get po -A -o custom-columns=NS:.metadata.namespace,NAME:.metadata.name,NODE:.spec.nodeName,RSRC0:.spec.containers[0].resources.requests.cpu,RSRM0:.spec.containers[0].resources.requests.memory,RSRL0:.spec.containers[0].resources.limits.cpu,RSLM0:.spec.containers[0].resources.limits.memory | |
kubectl get po -A --field-selector spec.nodeName=worker512 | |
kubectl get po -A --field-selector spec.nodeName=worker512 custom-columns=NS:.metadata.namespace,NAME:.metadata.name,NODE:.spec.nodeName,RSRC0:.spec.containers[0].resources.requests.cpu,RSRM0:.spec.containers[0].resources.requests.memory,RSRL0:.spec.containers[0].resources.limits.cpu,RSLM0:.spec.containers[0].resources.limits.memory --no-headers | while read ns po nd RSRC0 RSRM0 RSLC0 RSLM0 ; do kubectl label -n $ns po $po peek-top=20191222; done | |
kubectl top pod -A -l peek-top=20191222 |
# don't use --global | |
# | |
# vim .git/config | |
# [core] | |
# ... | |
# | |
#[remote "origin"] | |
# ... | |
#[branch "master"] | |
# ... |
oc get --ignore-not-found $( oc api-resources --verbs=list --namespaced -o name | xargs | sed 's/\ /,/g') | |
k get --ignore-not-found $( k api-resources --verbs=list --namespaced -o name | xargs | sed 's/\ /,/g') |
oc get --ignore-not-found $( oc api-resources --verbs=list --namespaced -o name | xargs | sed 's/\ /,/g') |
oc get --ignore-not-found $( oc api-resources --verbs=list --namespaced -o name | xargs | sed 's/\ /,/g') |