Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
d54cfba6
Unverified
Commit
d54cfba6
authored
8 months ago
by
M. Hamzah Khan
Committed by
GitHub
8 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix SAN check on newer versions versions of openssl (#11277)
parent
533dbc62
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/kubernetes/control-plane/tasks/kubeadm-setup.yml
+2
-0
2 additions, 0 deletions
roles/kubernetes/control-plane/tasks/kubeadm-setup.yml
with
2 additions
and
0 deletions
roles/kubernetes/control-plane/tasks/kubeadm-setup.yml
+
2
−
0
View file @
d54cfba6
...
@@ -145,12 +145,14 @@
...
@@ -145,12 +145,14 @@
loop
:
"
{{
apiserver_ips
}}"
loop
:
"
{{
apiserver_ips
}}"
register
:
apiserver_sans_ip_check
register
:
apiserver_sans_ip_check
changed_when
:
apiserver_sans_ip_check.stdout is not search('does match certificate')
changed_when
:
apiserver_sans_ip_check.stdout is not search('does match certificate')
failed_when
:
apiserver_sans_ip_check.rc != 0 and apiserver_sans_ip_check.stdout is not search('does NOT match certificate')
-
name
:
Kubeadm | Check apiserver.crt SAN hosts
-
name
:
Kubeadm | Check apiserver.crt SAN hosts
command
:
command
:
cmd
:
"
openssl
x509
-noout
-in
{{
kube_cert_dir
}}/apiserver.crt
-checkhost
{{
item
}}"
cmd
:
"
openssl
x509
-noout
-in
{{
kube_cert_dir
}}/apiserver.crt
-checkhost
{{
item
}}"
loop
:
"
{{
apiserver_hosts
}}"
loop
:
"
{{
apiserver_hosts
}}"
register
:
apiserver_sans_host_check
register
:
apiserver_sans_host_check
changed_when
:
apiserver_sans_host_check.stdout is not search('does match certificate')
changed_when
:
apiserver_sans_host_check.stdout is not search('does match certificate')
failed_when
:
apiserver_sans_host_check.rc != 0 and apiserver_sans_host_check.stdout is not search('does NOT match certificate')
-
name
:
Kubeadm | regenerate apiserver cert 1/2
-
name
:
Kubeadm | regenerate apiserver cert 1/2
file
:
file
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment