什么是 hcp-tunnelfront?
Posted
技术标签:
【中文标题】什么是 hcp-tunnelfront?【英文标题】:What is hcp-tunnelfront? 【发布时间】:2018-10-25 06:01:36 【问题描述】:我刚刚使用 AKS 在 azure 上安装了我的 kubernetes 集群。我没有安装任何东西,我注意到“tunnelfront”吊舱正在运行:
我试图找出这个 pod 的用途以及它为什么在我的集群上运行,但找不到它存在的任何原因。我用 kubectl 来描述 pod:
Name: tunnelfront-597b4868b8-8rz4w
Namespace: kube-system
Node: aks-agentpool-22029027-0/10.240.0.5
Start Time: Mon, 07 May 2018 19:51:22 +0200
Labels: component=tunnel
pod-template-hash=1536042464
Annotations: kubernetes.io/created-by="kind":"SerializedReference","apiVersion":"v1","reference":"kind":"ReplicaSet","namespace":"kube-system","name":"tunnelfront-597b4868b8","uid":"d46dab68-449e-11e8-961c-0a58a...
Status: Running
IP: 10.244.1.72
Controlled By: ReplicaSet/tunnelfront-597b4868b8
Containers:
tunnel-front:
Container ID: docker://a69b8d6dcaef7253d41d44fbd57fd776a0dfbf70dbbbb8303a691bebab169c26
Image: dockerio.azureedge.net/deis/hcp-tunnel-front:v1.9.2-v3.0.3
Image ID: docker-pullable://dockerio.azureedge.net/deis/hcp-tunnel-front@sha256:378db6f97778c6d86de94f72573a97975cd7b5ff6f1f02c1618616329fd94f1f
Port: <none>
Host Port: <none>
State: Running
Started: Tue, 15 May 2018 09:40:10 +0200
Last State: Terminated
Reason: Error
Exit Code: 137
Started: Mon, 07 May 2018 19:56:15 +0200
Finished: Tue, 15 May 2018 09:40:09 +0200
Ready: True
Restart Count: 1
Liveness: exec [/lib/tunnel-front/check-tunnel-connection.sh] delay=10s timeout=1s period=10s #success=1 #failure=12
Environment:
OVERRIDE_TUNNEL_SERVER_NAME: t_XXXXXX-66f17513.hcp.westeurope.azmk8s.io
KUBE_CONFIG: /etc/kubernetes/kubeconfig/kubeconfig
Mounts:
/etc/kubernetes/certs from certificates (ro)
/etc/kubernetes/kubeconfig from kubeconfig (ro)
/var/run/secrets/kubernetes.io/serviceaccount from default-token-xkj92 (ro)
Conditions:
Type Status
Initialized True
Ready True
PodScheduled True
Volumes:
kubeconfig:
Type: HostPath (bare host directory volume)
Path: /var/lib/kubelet
HostPathType:
certificates:
Type: HostPath (bare host directory volume)
Path: /etc/kubernetes/certs
HostPathType:
default-token-xkj92:
Type: Secret (a volume populated by a Secret)
SecretName: default-token-xkj92
Optional: false
QoS Class: BestEffort
Node-Selectors: beta.kubernetes.io/os=linux
Tolerations: node.alpha.kubernetes.io/notReady:NoExecute for 300s
node.alpha.kubernetes.io/unreachable:NoExecute for 300s
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning Unhealthy 1m (x54 over 7d) kubelet, aks-agentpool-22029027-0 Liveness probe failed:
我可以看到图片来自deis
,但我没有安装helm
或任何类似的工具。什么是隧道前沿?我需要它吗?
【问题讨论】:
【参考方案1】:tunnelfront
是安装在每个集群上的 AKS 系统组件,有助于促进与托管 Kubernetes 控制平面和节点之间的安全通信。 kubectl exec
等某些操作需要它,并且将在版本升级时重新部署到您的集群(请注意,tunnelfront 版本与集群版本匹配)。
如果您在隧道前端遇到问题,请在https://github.com/Azure/AKS/issues 上提出问题
【讨论】:
这里有一个简单的问题。为什么没有命名空间中的隧道前端。它不应该在 kube-system 中吗?只是想知道我的集群是否有问题。谢谢。以上是关于什么是 hcp-tunnelfront?的主要内容,如果未能解决你的问题,请参考以下文章
什么是帧数?什么是FPS?什么是PING?什么是延迟?什么是延时?什么是延迟时间?什么是时延?.