Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Breeze
Commits
5f828e41
Commit
5f828e41
authored
5 years ago
by
Alan Peng
Browse files
Options
Download
Email Patches
Plain Diff
patch kubelet.conf on master nodes
parent
fc4a0b2d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
kubernetes-playbook/version/file/patch-kubelet-conf.sh
+7
-0
kubernetes-playbook/version/file/patch-kubelet-conf.sh
kubernetes-playbook/version/master-node.ansible
+13
-0
kubernetes-playbook/version/master-node.ansible
with
20 additions
and
0 deletions
+20
-0
kubernetes-playbook/version/file/patch-kubelet-conf.sh
0 → 100755
+
7
-
0
View file @
5f828e41
#!/bin/bash
TIME_STRING
=
`
date
"+%Y-%m-%d-%H-%M-%S"
`
cd
/etc/kubernetes/
cp
-p
/etc/kubernetes/kubelet.conf /etc/kubernetes/kubelet.conf.
$TIME_STRING
sed
-i
's#client-certificate-data:.*$#client-certificate: /var/lib/kubelet/pki/kubelet-client-current.pem#g'
kubelet.conf
sed
-i
's#client-key-data:.*$#client-key: /var/lib/kubelet/pki/kubelet-client-current.pem#g'
kubelet.conf
systemctl restart kubelet
This diff is collapsed.
Click to expand it.
kubernetes-playbook/version/master-node.ansible
+
13
-
0
View file @
5f828e41
...
...
@@ -300,3 +300,16 @@
shell: |
helm repo add --username={{ registry_user }} --password={{ registry_password }} {{ registry_project }} http://{{ registry_endpoint }}/chartrepo/{{ registry_project }}
when: not registry_https
- name: copy kubelet-conf patch script
copy:
src: '{{ item.src }}'
dest: '{{ item.dest }}'
mode: 0755
with_items:
- { src: 'file/patch-kubelet-conf.sh', dest: '{{ path }}' }
- name: execute patch-kubelet-conf script
shell: ./patch-kubelet-conf.sh
args:
chdir: '{{ path }}'
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help