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
444b1daf
Commit
444b1daf
authored
8 years ago
by
Alexander Block
Browse files
Options
Downloads
Patches
Plain Diff
Pass --anonymous-auth to apiserver
Fixes #732
parent
d6174b22
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
inventory/group_vars/all.yml
+5
-0
5 additions, 0 deletions
inventory/group_vars/all.yml
roles/kubernetes/master/templates/manifests/kube-apiserver.manifest.j2
+3
-0
3 additions, 0 deletions
...tes/master/templates/manifests/kube-apiserver.manifest.j2
with
8 additions
and
0 deletions
inventory/group_vars/all.yml
+
5
−
0
View file @
444b1daf
...
...
@@ -21,6 +21,11 @@ kube_cert_group: kube-cert
# Cluster Loglevel configuration
kube_log_level
:
2
# Kubernetes 1.5 added a new flag to the apiserver to disable anonymous auth. In previos versions, anonymous auth was
# not implemented. As the new flag defaults to true, we have to explicetely disable it. Change this line if you want the
# 1.5 default behavior. The flag is actually only added if the used kubernetes version is >= 1.5
kube_api_anonymous_auth
:
false
# Users to create for basic auth in Kubernetes API via HTTP
kube_api_pwd
:
"
changeme"
kube_users
:
...
...
This diff is collapsed.
Click to expand it.
roles/kubernetes/master/templates/manifests/kube-apiserver.manifest.j2
+
3
−
0
View file @
444b1daf
...
...
@@ -48,6 +48,9 @@ spec:
- --cloud-config={{ kube_config_dir }}/cloud_config
{% elif cloud_provider is defined and cloud_provider == "aws" %}
- --cloud-provider={{ cloud_provider }}
{% endif %}
{% if kube_api_anonymous_auth is defined and kube_version | version_compare('v1.5', '>=') %}
- --anonymous-auth={{ kube_api_anonymous_auth }}
{% endif %}
livenessProbe:
httpGet:
...
...
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