-
Notifications
You must be signed in to change notification settings - Fork 80
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
Fix kops documentation #38
Fix kops documentation #38
Conversation
Welcome @vvbogdanov87! |
Hi @vvbogdanov87. Thanks for your PR. I'm waiting for a kubernetes-sigs or kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
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.
Can you comment on each of the changes and why they're needed?
KOPS.md
Outdated
name: aws-encryption-provider | ||
namespace: kube-system | ||
spec: | ||
containers: | ||
- image: <image-of-aws-provider> | ||
name: aws-encryption-provider | ||
imagePullPolicy: Always |
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.
This seems more like a preference, can you remove this?
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.
Removed
- key: dedicated | ||
operator: Equal | ||
value: master | ||
effect: NoSchedule |
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.
I’ve not used kops for a while and never extensively, but doesn’t the master have a NoSchedule taint you need a toleration for?
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.
The same as the below. Tolerations are for k8s scheduler. When the kubelet starts the static pod, it ignores this.
volumes: | ||
- name: kmsplugin | ||
hostPath: | ||
path: /srv/kubernetes | ||
type: DirectoryOrCreate | ||
nodeSelector: | ||
dedicated: master |
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.
This must be run on a master, why is this removed?
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.
kops doesn't label master instances as "dedicated: master". Having a wrong selector prevents kubelet to start the pod. In the current case, the selector is not needed at all since the pod is scheduled not by k8s scheduler, instead, it is scheduled directly by kubelet.
More about static pods: https://kubernetes.io/docs/tasks/configure-pod-container/static-pod/
According to k8s docs "There are no health checks for the containers in a static Pod"
Probably k8s docs are outdated. Therefore livenessProbe wasn't removed from the static pod spec. |
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.
/lgtm
/approve
Thanks a bunch!
Sorry about the test failure, we'll need to fix the vendor checking to ensure it doesn't fail for cases like this |
@vvbogdanov87 can you please rebase? |
remove imagePullPolicy and tolerations
/ok-to-test |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: micahhausler, vvbogdanov87 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
apiVersion
is missed in EncryptionConfigurationThe pod contains errors preventing it to start.