zoukankan      html  css  js  c++  java
  • kubernetes 基础命令及操作

    获取集群的基本信息
    kubectl cluster-info
    kubectl get nodes
    kubectl get namespaces
    kubectl get deployment --all-namespaces
    kubectl get svc --all-namespaces
    kubectl get pod
    kubectl get pod -o wide --all-namespaces
    kubectl logs podName
    创建pod或srv
    kubectl create -f development.yaml
    检查将要运行的 Pod 的资源状况
    kubectl describe pod podName
    删除 Pod
    kubectl delete pod podName
    pod有多少副本
    kubectl get rc
    扩展 Pod
    kubectl scale --replicas=3 rc podName
    删除
    kubectl delete deployment kubernetes-dashboard --namespace=kube-system
    kubectl delete svc kubernetes-dashboard --namespace=kube-system
    kubectl delete -f kubernetes-dashboard.yaml
    进入pod
    kubectl exec -ti podName /bin/bash

  • 相关阅读:
    手机自动化
    记录
    Linux 死机了怎么办
    前端源码
    LNMP环境
    PHP学习之路(一)
    py
    蜘蛛问题
    mongodb
    【HTML/XML 2】XML基础知识点总结
  • 原文地址:https://www.cnblogs.com/Mrhuangrui/p/7249253.html
Copyright © 2011-2022 走看看