Skip to content

Commit

Permalink
Bugfix: kubelet on edge node keeps restarting after yurtctl convert e…
Browse files Browse the repository at this point in the history
…xecuted issue. See detailed description of the issue at #367.
  • Loading branch information
Windrow14 committed Jun 25, 2021
1 parent 146a744 commit ec98fef
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions pkg/yurtctl/util/edgenode/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,29 +60,34 @@ metadata:
namespace: kube-system
spec:
volumes:
- name: hub-dir
- name: pki
hostPath:
path: /var/lib/yurthub
type: DirectoryOrCreate
path: /etc/kubernetes/pki
type: Directory
- name: kubernetes
hostPath:
path: /etc/kubernetes
type: Directory
- name: pem-dir
hostPath:
path: /var/lib/kubelet/pki
type: Directory
containers:
- name: yurt-hub
image: __yurthub_image__
imagePullPolicy: IfNotPresent
volumeMounts:
- name: hub-dir
mountPath: /var/lib/yurthub
- name: kubernetes
mountPath: /etc/kubernetes
- name: pki
mountPath: /etc/kubernetes/pki
- name: pem-dir
mountPath: /var/lib/kubelet/pki
command:
- yurthub
- --v=2
- --server-addr=__kubernetes_service_addr__
- --node-name=$(NODE_NAME)
- --join-token=__join_token__
livenessProbe:
httpGet:
host: 127.0.0.1
Expand Down

0 comments on commit ec98fef

Please sign in to comment.