-
Notifications
You must be signed in to change notification settings - Fork 408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bugfix: kubelet on edge node keeps restarting issue #370
Changes from 1 commit
ec98fef
18d62d6
34193c7
844fa92
9e384b0
0049a95
07722b2
aa80adb
9264f76
a0b238d
1ea981e
54b5265
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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__ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why delete parameter There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Precisely to say, this is the trick to make yurthub not use hubself mode but kubelet mode.
I have to admit, it's a workaround for the issue I encountered, but not a proper cure to the root cause. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Windrow |
||
livenessProbe: | ||
httpGet: | ||
host: 127.0.0.1 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/var/lib/yurthub
should be kept for yurthub certificates storage. and/etc/kubernetes/pki
is not need to added because/etc/kubernetes
hostpath has already mounted.