-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Modifying kubelet to use config files instead of kubelet flags which are about to deprecate. #90
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
1855303
change Kubelet to use config file
f1d04a1
changing install-worker.sh to support kubelet config file
0e22532
included JQ to modify cconfig-kubelet.conf instead of sed
3fcc6c7
Modified install-worker.sh
9d355f9
renaming config-kubelet.conf to kubelet-config.json
b2bde50
Merge branch 'master' into master
micahhausler File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"kind": "KubeletConfiguration", | ||
"apiVersion": "kubelet.config.k8s.io/v1beta1", | ||
"address": "0.0.0.0", | ||
"authentication": { | ||
"anonymous": { | ||
"enabled": false | ||
}, | ||
"webhook": { | ||
"cacheTTL": "2m0s", | ||
"enabled": true | ||
}, | ||
"x509": { | ||
"clientCAFile": "/etc/kubernetes/pki/ca.crt" | ||
} | ||
}, | ||
"authorization": { | ||
"mode": "Webhook", | ||
"webhook": { | ||
"cacheAuthorizedTTL": "5m0s", | ||
"cacheUnauthorizedTTL": "30s" | ||
} | ||
}, | ||
"clusterDomain": "cluster.local", | ||
"cgroupDriver": "cgroupfs", | ||
"featureGates": { | ||
"RotateKubeletServerCertificate": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Why this gets added here?
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.
@errordeveloper - I saw many miss this iptables rule causing problem, hence I added it to ExecStartPre to enforce this command run every time kubelet starts and change the rule.
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.
Why is it part of this PR and there was no discussion about it here? Maybe a comment in the unit file would help also, but I still don't quite understand the purpose, it seems very ad-hoc and as far as I can tell redundant in the context of this AMI.
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 wonder if the above questions is addressed some where else?
why is the FORWARD rule to ACCEPT?