chinese直男口爆体育生外卖, 99久久er热在这里只有精品99, 又色又爽又黄18禁美女裸身无遮挡, gogogo高清免费观看日本电视,私密按摩师高清版在线,人妻视频毛茸茸,91论坛 兴趣闲谈,欧美 亚洲 精品 8区,国产精品久久久久精品免费

0
  • 聊天消息
  • 系統(tǒng)消息
  • 評論與回復(fù)
登錄后你可以
  • 下載海量資料
  • 學(xué)習(xí)在線課程
  • 觀看技術(shù)視頻
  • 寫文章/發(fā)帖/加入社區(qū)
會員中心
創(chuàng)作中心

完善資料讓更多小伙伴認(rèn)識你,還能領(lǐng)取20積分哦,立即完善>

3天內(nèi)不再提示

Kubernetes Pod常用管理命令詳解

馬哥Linux運(yùn)維 ? 來源:博客園七月流星雨 ? 2025-02-17 14:06 ? 次閱讀
加入交流群
微信小助手二維碼

掃碼添加小助手

加入工程師交流群

1. k8s-pod常用管理命令

創(chuàng)建Pod:

kubectl apply -f pod.yaml
kubectl run nginx --image=nginx

查看Pod:

kubectl get pods
kubectl describe pod 

查看日志:

kubectl logs  [-c CONTAINER]
kubectl logs  [-c CONTAINER] -f

進(jìn)入容器終端:

kubectl exec  [-c CONTAINER] --bash

刪除Pod:

kubectl delete 

導(dǎo)出pod的yaml配置文件

[root@k8s-master yaml]# kubectl get pods 
NAME                     READY   STATUS    RESTARTS   AGE
nginx-6799fc88d8-s5wvx   1/1     Running   1          40h
test-5f655598-5jfrt      1/1     Running   1          20h
test-5f655598-bhhm4      1/1     Running   1          20h
test-5f655598-v5l8f      1/1     Running   1          20h
web-674477549d-flj78     1/1     Running   1          39h
web-674477549d-m7lsj     1/1     Running   1          23h
web-674477549d-stk84     1/1     Running   1          23h
[root@k8s-master yaml]# kubectl get pods web-674477549d-flj78 -o yaml >web-pod.yaml

2. k8s-pod案例

356b57cc-eb90-11ef-9310-92fbcf53809c.png

2.1 實(shí)現(xiàn)網(wǎng)絡(luò)共享

2.1.1 導(dǎo)出配置文件,進(jìn)行編寫案例

編寫導(dǎo)出的web-pod.yaml文件進(jìn)行測試

[root@k8s-master yaml]# kubectl get pods 
NAME                     READY   STATUS    RESTARTS   AGE
nginx-6799fc88d8-s5wvx   1/1     Running   1          40h
test-5f655598-5jfrt      1/1     Running   1          20h
test-5f655598-bhhm4      1/1     Running   1          20h
test-5f655598-v5l8f      1/1     Running   1          20h
web-674477549d-flj78     1/1     Running   1          39h
web-674477549d-m7lsj     1/1     Running   1          23h
web-674477549d-stk84     1/1     Running   1          23h
[root@k8s-master yaml]# kubectl get pods web-674477549d-flj78 -o yaml >web-pod.yaml 
[root@k8s-master yaml]# vim web-pod.yaml 
[root@k8s-master yaml]# cat web-pod.yaml 
apiVersion: v1
kind: Pod
metadata:
  labels:
    app: pod-test
  name: pod-net-test
  namespace: default
spec:
  containers:
  - image: busybox
    imagePullPolicy: Always
    name: pod-test
    command: ["/bin/sh"]
    args: 
      - "-c"
      - "sleep 3000000"
      
  - image: nginx
    name: web

2.1.2 啟動(dòng)配置文件

[root@k8s-master yaml]# kubectl apply  -f web-pod.yaml 
pod/pod-net-test created

2.1.3 監(jiān)控pod是否啟動(dòng)

[root@k8s-master yaml]# kubectl get pods
NAME                     READY   STATUS              RESTARTS   AGE
nginx-6799fc88d8-s5wvx   1/1     Running             1          41h
pod-net-test             0/2     ContainerCreating   0          19s
test-5f655598-5jfrt      1/1     Running             1          21h
test-5f655598-bhhm4      1/1     Running             1          21h
test-5f655598-v5l8f      1/1     Running             1          21h
web-674477549d-flj78     1/1     Running             1          40h
web-674477549d-m7lsj     1/1     Running             1          23h
web-674477549d-stk84     1/1     Running             1          23h
[root@k8s-master yaml]# kubectl get pods -w
NAME                     READY   STATUS    RESTARTS   AGE
nginx-6799fc88d8-s5wvx   1/1     Running   1          41h
pod-net-test             2/2     Running   0          89s
test-5f655598-5jfrt      1/1     Running   1          21h
test-5f655598-bhhm4      1/1     Running   1          21h
test-5f655598-v5l8f      1/1     Running   1          21h
web-674477549d-flj78     1/1     Running   1          40h
web-674477549d-m7lsj     1/1     Running   1          23h
web-674477549d-stk84     1/1     Running   1          23h

注釋:這里注意一下,可以是 “-w ” 持續(xù)監(jiān)聽pod狀態(tài)

2.1.4 進(jìn)入pod

[root@k8s-master pod]# kubectl exec -it pods/pod-net-test -c pod-test -- /bin/sh
Defaulting container name to pod-test.
Use 'kubectl describe pod/pod-net-test -n default' to see all of the containers in this pod.
/ # ifconfig 
eth0      Link encap:Ethernet  HWaddr 5AFA85:C0  
          inet addr:10.244.169.139  Bcast:10.244.169.139  Mask:255.255.255.255
          UP BROADCAST RUNNING MULTICAST  MTU:1480  Metric:1
          RX packets:5 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:446 (446.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

/ # netstat -lntup
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      -
tcp        0      0 :::80                   :::*                    LISTEN      -

注釋:

exec:進(jìn)入?yún)?shù)

-it:分配一個(gè)偽終端

pod-net-test:為容器名稱

-c pod-test:指定容器名稱pod-test

-- /bin/sh:為使用的環(huán)境變量

2.1.5 我們驗(yàn)證文件是不是nginx

我們進(jìn)入nginx的容器里面,修改index.html文件進(jìn)行驗(yàn)證

[root@k8s-master yaml]# kubectl exec -it  pod-net-test  -c web -- /bin/bash
root@pod-net-test:/# cd /usr/share/nginx/html/
root@pod-net-test:/usr/share/nginx/html# ls
50x.html  index.html
root@pod-net-test:/usr/share/nginx/html# echo 'pod-test' >index.html

退出nginx容器,進(jìn)入busybox進(jìn)行wget下載,驗(yàn)證文件是否是pod-test

[root@k8s-master yaml]# kubectl exec -it  pod-net-test  -c pod-test -- /bin/sh
/ # netstat -lntup
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      -
tcp        0      0 :::80                   :::*                    LISTEN      -
/ # wget http://127.0.0.1:80
Connecting to 127.0.0.1:80 (127.0.0.1:80)
saving to 'index.html'
index.html           100% |************************************************************************************************************************************************|     9  000 ETA
'index.html' saved
/ # cat index.html 
pod-test

小結(jié):

我們在nginx啟動(dòng)的時(shí)候,沒有ip add等相關(guān)命令,我們通過修改index.html文件進(jìn)行驗(yàn)證

注意使用進(jìn)入命令的時(shí)候,一定要使用 “-c ” 參數(shù)區(qū)分進(jìn)入那個(gè)容器

2.2 實(shí)現(xiàn)共享存儲

2.2.1 導(dǎo)出配置文件,進(jìn)行編寫案例

進(jìn)入目錄

[root@k8s-master ~]# cd /root/yaml/
[root@k8s-master yaml]# ll
總用量 24
-rw-r--r--  1 root root  389 11月 27 21:22 my-deploy.yaml
-rw-r--r--  1 root root 3722 11月 28 10:48 my-get-deploy.yaml
-rw-r--r--. 1 root root  538 11月 27 17:00 service-test.yaml
-rw-r--r--  1 root root  792 11月 29 08:09 web-disk-pod.yaml
-rw-r--r--  1 root root  302 11月 28 13:39 web-pod.yaml
-rw-r--r--. 1 root root  777 11月 27 16:32 yaml-test.yaml

編寫pod-volume-test.yaml配置文件

[root@k8s-master yaml]# vim pod-volume-test.yaml 
[root@k8s-master yaml]# cat pod-volume-test.yaml 
apiVersion: v1
kind: Pod
metadata:
  labels:
    app: test
  name: pod-volume-test
  namespace: default
spec:
  containers:
  - image: busybox
    imagePullPolicy: Always
    name: test
    command: ["/bin/sh"]
    args: 
      - "-c"
      - "sleep 3000000"

    volumeMounts:      #掛載到容器內(nèi)部的存儲卷配置  
    - name: log       # 引用pod定義的共享存儲卷的名稱
      mountPath: /data               #共享路徑文件夾

      
  - image: nginx
    name: web
    volumeMounts:      #掛載到容器內(nèi)部的存儲卷配置  
    - name: log       # 引用pod定義的共享存儲卷的名稱
      mountPath: /data               #共享路徑文件夾


  #建立共享存儲卷
  volumes:
  - name: log           #共享存儲卷名稱
    emptyDir: {}

2.2.2 創(chuàng)建共享磁盤

[root@k8s-master yaml]# mkdir -p /data

2.2.3 啟動(dòng)服務(wù)

[root@k8s-master yaml]# kubectl apply -f pod-volume-test.yaml 
pod/pod-volume-test created

2.2.4 查看服務(wù)是否啟動(dòng)

[root@k8s-master yaml]# kubectl get pods
NAME                     READY   STATUS    RESTARTS   AGE
nginx-6799fc88d8-tfgfr   1/1     Running   0          30m
pod-volume-test          2/2     Running   0          2m37s
test-5f655598-j9rth      1/1     Running   0          30m
test-5f655598-kpp8k      1/1     Running   0          30m
test-5f655598-t6mfg      1/1     Running   0          30m
web-674477549d-7gqfr     1/1     Running   0          30m
web-674477549d-cttbc     1/1     Running   0          30m
web-674477549d-rrfqd     1/1     Running   0          30m

2.2.5 驗(yàn)證數(shù)據(jù)卷是否被共享

進(jìn)入pod容器,在web容器創(chuàng)建一個(gè)index.html,文件內(nèi)容為 "pod volume test"

[root@k8s-master yaml]# kubectl exec -it pod-volume-test -c web -- /bin/bash
root@pod-volume-test:/# cd /data/
root@pod-volume-test:/data# touch index.html
root@pod-volume-test:/data# echo 'pod volume test ' >index.html 
root@pod-volume-test:/data# ls
index.html

進(jìn)入容器test進(jìn)行驗(yàn)證,/data目錄下面是否有index.html文件,內(nèi)容是否 “pod volume test”

[root@k8s-master yaml]# kubectl exec -it pod-volume-test -c test -- /bin/sh
/ # cd /data/
/data # ls
index.html
/data # cat index.html 
pod volume test

2.2.6 查看日志

查看web日志

[root@k8s-master ~]# kubectl get pods
NAME                     READY   STATUS    RESTARTS   AGE
nginx-6799fc88d8-tfgfr   1/1     Running   0          54m
pod-volume-test          2/2     Running   0          26m
test-5f655598-j9rth      1/1     Running   0          54m
test-5f655598-kpp8k      1/1     Running   0          54m
test-5f655598-t6mfg      1/1     Running   0          54m
web-674477549d-7gqfr     1/1     Running   0          54m
web-674477549d-cttbc     1/1     Running   0          54m
web-674477549d-rrfqd     1/1     Running   0          54m
[root@k8s-master ~]# kubectl logs pod-volume-test -c web -f 
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: Getting the checksum of /etc/nginx/conf.d/default.conf
10-listen-on-ipv6-by-default.sh: Enabled listen on IPv6 in /etc/nginx/conf.d/default.conf
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
/docker-entrypoint.sh: Configuration complete; ready for start up


上面開啟監(jiān)聽日志,

進(jìn)入test測試終端,進(jìn)行訪問測試

[root@k8s-master yaml]# kubectl exec -it pod-volume-test -c test -- /bin/sh
/data # cd /tmp/
/tmp # wget http://127.0.0.1
Connecting to 127.0.0.1 (127.0.0.1:80)
saving to 'index.html'
index.html           100% |******************************************************************************************************************************************************************************************************************************|   612  000 ETA
'index.html' saved
/tmp # cat index.html 



Welcome to nginx!



Welcome to nginx!

If you see this page, the nginx web server is successfully installed and working. Further configuration is required.

For online documentation and support please refer to nginx.org.
Commercial support is available at nginx.com.

Thank you for using nginx.

查看監(jiān)控日志情況

[root@k8s-master ~]# kubectl logs pod-volume-test -c web -f 
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: Getting the checksum of /etc/nginx/conf.d/default.conf
10-listen-on-ipv6-by-default.sh: Enabled listen on IPv6 in /etc/nginx/conf.d/default.conf
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
/docker-entrypoint.sh: Configuration complete; ready for start up


127.0.0.1 - - [29/Nov/202051:12 +0000] "GET / HTTP/1.1" 200 612 "-" "Wget" "-"

發(fā)現(xiàn)已經(jīng)有日志了

3. k8s-pod字段詳解

# yaml格式的pod定義文件完整內(nèi)容:
apiVersion: v1#必選,版本號,例如v1
kind: Pod#必選,Pod
metadata:#必選,元數(shù)據(jù)
name: string#必選,Pod名稱
namespace: string#必選,Pod所屬的命名空間
labels:#自定義標(biāo)簽
- name: string#自定義標(biāo)簽名字
annotations:#自定義注釋列表
- name: string
spec:#必選,Pod中容器的詳細(xì)定義
containers:#必選,Pod中容器列表
- name: string#必選,容器名稱
image: string#必選,容器的鏡像名稱
imagePullPolicy: [Always | Never | IfNotPresent]#獲取鏡像的策略 Alawys表示下載鏡像 IfnotPresent表示優(yōu)先使用本地鏡像,否則下載鏡像,Nerver表示僅使用本地鏡像
command: [string]#容器的啟動(dòng)命令列表,如不指定,使用打包時(shí)使用的啟動(dòng)命令
args: [string]#容器的啟動(dòng)命令參數(shù)列表
workingDir: string#容器的工作目錄
volumeMounts:#掛載到容器內(nèi)部的存儲卷配置
- name: string#引用pod定義的共享存儲卷的名稱,需用volumes[]部分定義的的卷名
mountPath: string#存儲卷在容器內(nèi)mount的絕對路徑,應(yīng)少于512字符
readOnly: boolean#是否為只讀模式
ports:#需要暴露的端口庫號列表
- name: string#端口號名稱
containerPort: int#容器需要監(jiān)聽的端口號
hostPort: int#容器所在主機(jī)需要監(jiān)聽的端口號,默認(rèn)與Container相同
protocol: string#端口協(xié)議,支持TCP和UDP,默認(rèn)TCP
env:#容器運(yùn)行前需設(shè)置的環(huán)境變量列表
- name: string#環(huán)境變量名稱
value: string#環(huán)境變量的值
resources:#資源限制和請求的設(shè)置
limits:#資源限制的設(shè)置
cpu: string#Cpu的限制,單位為core數(shù),將用于docker run --cpu-shares參數(shù)
memory: string#內(nèi)存限制,單位可以為Mib/Gib,將用于docker run --memory參數(shù)
requests:#資源請求的設(shè)置
cpu: string#Cpu請求,容器啟動(dòng)的初始可用數(shù)量
memory: string#內(nèi)存清楚,容器啟動(dòng)的初始可用數(shù)量
livenessProbe:#對Pod內(nèi)個(gè)容器健康檢查的設(shè)置,當(dāng)探測無響應(yīng)幾次后將自動(dòng)重啟該容器,檢查方法有exec、httpGet和tcpSocket,對一個(gè)容器只需設(shè)置其中一種方法即可
exec:#對Pod容器內(nèi)檢查方式設(shè)置為exec方式
command: [string]#exec方式需要制定的命令或腳本
httpGet:#對Pod內(nèi)個(gè)容器健康檢查方法設(shè)置為HttpGet,需要制定Path、port
path: string
port: number
host: string
scheme: string
HttpHeaders:
- name: string
value: string
tcpSocket:#對Pod內(nèi)個(gè)容器健康檢查方式設(shè)置為tcpSocket方式
port: number
initialDelaySeconds: 0#容器啟動(dòng)完成后首次探測的時(shí)間,單位為秒
timeoutSeconds: 0#對容器健康檢查探測等待響應(yīng)的超時(shí)時(shí)間,單位秒,默認(rèn)1秒
periodSeconds: 0#對容器監(jiān)控檢查的定期探測時(shí)間設(shè)置,單位秒,默認(rèn)10秒一次
successThreshold: 0
failureThreshold: 0
securityContext:
privileged:false
restartPolicy: [Always | Never | OnFailure]#Pod的重啟策略,Always表示一旦不管以何種方式終止運(yùn)行,kubelet都將重啟,OnFailure表示只有Pod以非0退出碼退出才重啟,Nerver表示不再重啟該P(yáng)od
    nodeSelector: obeject#設(shè)置NodeSelector表示將該P(yáng)od調(diào)度到包含這個(gè)label的node上,以key:value的格式指定
imagePullSecrets:#Pull鏡像時(shí)使用的secret名稱,以key:secretkey格式指定
- name: string
hostNetwork:false#是否使用主機(jī)網(wǎng)絡(luò)模式,默認(rèn)為false,如果設(shè)置為true,表示使用宿主機(jī)網(wǎng)絡(luò)
volumes:#在該pod上定義共享存儲卷列表
- name: string#共享存儲卷名稱 (volumes類型有很多種)
emptyDir: {}#類型為emtyDir的存儲卷,與Pod同生命周期的一個(gè)臨時(shí)目錄。為空值
hostPath: string#類型為hostPath的存儲卷,表示掛載Pod所在宿主機(jī)的目錄
path: string#Pod所在宿主機(jī)的目錄,將被用于同期中mount的目錄
secret:#類型為secret的存儲卷,掛載集群與定義的secre對象到容器內(nèi)部
scretname: string
items:
- key: string
path: string
configMap:#類型為configMap的存儲卷,掛載預(yù)定義的configMap對象到容器內(nèi)部
name: string
items:
- key: string

path: string

鏈接:https://www.cnblogs.com/scajy/p/15475993.html

聲明:本文內(nèi)容及配圖由入駐作者撰寫或者入駐合作網(wǎng)站授權(quán)轉(zhuǎn)載。文章觀點(diǎn)僅代表作者本人,不代表電子發(fā)燒友網(wǎng)立場。文章及其配圖僅供工程師學(xué)習(xí)之用,如有內(nèi)容侵權(quán)或者其他違規(guī)問題,請聯(lián)系本站處理。 舉報(bào)投訴
  • 文件
    +關(guān)注

    關(guān)注

    1

    文章

    586

    瀏覽量

    25789
  • 命令
    +關(guān)注

    關(guān)注

    5

    文章

    745

    瀏覽量

    23273
  • kubernetes
    +關(guān)注

    關(guān)注

    0

    文章

    254

    瀏覽量

    9323

原文標(biāo)題:"運(yùn)維必備:Kubernetes Pod 常用管理命令大全與實(shí)戰(zhàn)技巧"

文章出處:【微信號:magedu-Linux,微信公眾號:馬哥Linux運(yùn)維】歡迎添加關(guān)注!文章轉(zhuǎn)載請注明出處。

收藏 人收藏
加入交流群
微信小助手二維碼

掃碼添加小助手

加入工程師交流群

    評論

    相關(guān)推薦
    熱點(diǎn)推薦

    阿里云容器Kubernetes監(jiān)控(二) - 使用Grafana展現(xiàn)Pod監(jiān)控?cái)?shù)據(jù)

    kubernetes中承擔(dān)的責(zé)任遠(yuǎn)不止監(jiān)控?cái)?shù)據(jù)的采集,還包括控制臺的監(jiān)控接口、HPA的POD彈性伸縮等都依賴于Heapster的功能。簡介在kubernetes的監(jiān)控方案中
    發(fā)表于 05-10 15:28

    從零開始入門 K8s| 阿里技術(shù)專家詳解 K8s 核心概念

    要運(yùn)行的環(huán)境,最終把容器或者 Pod 運(yùn)行起來,也需要對存儲跟網(wǎng)絡(luò)進(jìn)行管理。Kubernetes 并不會直接進(jìn)行網(wǎng)絡(luò)存儲的操作,他們會靠 Storage Plugin 或者是網(wǎng)絡(luò)的 Plugin 來進(jìn)行
    發(fā)表于 09-20 14:52

    從零開始入門 K8s| 詳解 Pod 及容器設(shè)計(jì)模式

    了,那么這個(gè)時(shí)候應(yīng)用狀態(tài)的生命周期就不等于容器生命周期。這個(gè)管理模型實(shí)際上是非常非常復(fù)雜的。Pod = “進(jìn)程組”在 Kubernetes 里面,Pod 實(shí)際上正是
    發(fā)表于 09-20 15:12

    Pod資源配置

    Kubernetes進(jìn)階實(shí)戰(zhàn)》第四章《管理Pod資源對象》
    發(fā)表于 10-22 14:39

    深入研究Kubernetes調(diào)度

    “本文從 Pod 和節(jié)點(diǎn)的配置開始,介紹了 Kubernetes Scheduler 框架、擴(kuò)展點(diǎn)、API 以及可能發(fā)生的與資源相關(guān)的瓶頸,并展示了性能調(diào)整設(shè)置,涵蓋了 Kubernetes 中調(diào)度
    的頭像 發(fā)表于 08-23 10:39 ?1714次閱讀

    Kubernetes組件pod核心原理

    訪問采用 localhost。 1.2 pod 用來干什么 通常情況下,在服務(wù)部署的時(shí)候,使用 pod管理一組相關(guān)的服務(wù)(
    的頭像 發(fā)表于 09-02 09:27 ?2214次閱讀

    Kubernetes Pod多網(wǎng)卡方案MULTUS

    Kubernetes 當(dāng)前沒有提供為POD添加額外的接口選項(xiàng)的規(guī)定,或支持多個(gè) CNI 插件同時(shí)工作的規(guī)定,但是它確實(shí)提供了一種由 API 服務(wù)器擴(kuò)展受支持的API的機(jī)制。使用 "自定義
    的頭像 發(fā)表于 06-22 10:08 ?1771次閱讀

    Kubernetes中的Pod簡易理解

    PodKubernetes中非常重要的概念,也是Kubernetes管理的基本單位。正如其名,Pod像一個(gè)豌豆莢,可以容納多個(gè)contai
    的頭像 發(fā)表于 02-15 10:44 ?1723次閱讀

    Kubernetes Pod如何獨(dú)立工作

    在學(xué)習(xí) Kubernetes 網(wǎng)絡(luò)模型的過程中,了解各種網(wǎng)絡(luò)組件的作用以及如何交互非常重要。本文就介紹了各種網(wǎng)絡(luò)組件在 Kubernetes 集群中是如何交互的,以及如何幫助每個(gè) Pod 都能獲取 IP 地址。
    的頭像 發(fā)表于 05-16 14:29 ?951次閱讀
    <b class='flag-5'>Kubernetes</b> <b class='flag-5'>Pod</b>如何獨(dú)立工作

    Kubernetes Pod如何獲取IP地址呢?

    Kubernetes 網(wǎng)絡(luò)模型的核心要求之一是每個(gè) Pod 都擁有自己的 IP 地址并可以使用該 IP 地址進(jìn)行通信。很多人剛開始使用 Kubernetes 時(shí),還不清楚如何為每個(gè) Pod
    的頭像 發(fā)表于 07-21 10:00 ?1217次閱讀
    <b class='flag-5'>Kubernetes</b> <b class='flag-5'>Pod</b>如何獲取IP地址呢?

    kafka相關(guān)命令詳解

    kafka常用命令詳解
    的頭像 發(fā)表于 10-20 11:34 ?1611次閱讀

    詳解kubectl常用命令

    詳解kubectl常用命令
    的頭像 發(fā)表于 11-05 15:39 ?2656次閱讀
    <b class='flag-5'>詳解</b>kubectl<b class='flag-5'>常用命令</b>

    SSH常用命令詳解

    SSH常用命令詳解
    的頭像 發(fā)表于 06-04 11:30 ?1425次閱讀

    詳解Kubernetes中的Pod調(diào)度親和性

    Kubernetes(K8s)中,Pod 調(diào)度親和性(Affinity) 是一種高級調(diào)度策略,用于控制 Pod 與節(jié)點(diǎn)(Node)或其他 Pod 之間的關(guān)聯(lián)(親和)或反關(guān)聯(lián)(反親和
    的頭像 發(fā)表于 06-07 13:56 ?527次閱讀

    達(dá)夢數(shù)據(jù)庫常用管理SQL命令詳解

    達(dá)夢數(shù)據(jù)庫常用管理SQL命令詳解
    的頭像 發(fā)表于 06-17 15:12 ?2607次閱讀
    達(dá)夢數(shù)據(jù)庫<b class='flag-5'>常用</b><b class='flag-5'>管理</b>SQL<b class='flag-5'>命令</b><b class='flag-5'>詳解</b>