Slide 9
Slide 9 text
NodePortとextraPortMappings
9
● ホストとNodeコンテナのPortをマッピング
○ NodePort経由でPodへ接続できる
● Serviceを作るときNodePortを意識する必要
kind: Cluster
apiVersion:
kind.sigs.k8s.io/v1alpha3
nodes:
- role: control-plane
- role: worker
extraPortMappings:
- containerPort: 80
hostPort: 80
listenAddress: "0.0.0.0" #
Optional, defaults to "0.0.0.0"
protocol: udp # Optional,
defaults to tcp
諦める