k8s cheat sheet

郁明诚
2023-12-01

https://kubernetes.io/docs/reference/kubectl/cheatsheet/

 

k8s端口转发example

kubectl port-forward --address 0.0.0.0 service/xx-storage-service-xxxe 9743:9743 >/dev/null &
kubectl port-forward --address 0.0.0.0 service/tomcat 8079:8079 >/dev/null &

 

kubectl create configmap redis-configmap --from-file=./configs/redis.conf
kubectl get configmap redis-configmap -o yaml --export > redis-configmap.yaml

 类似资料:

相关阅读

相关文章

相关问答