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
b6da596e
Commit
b6da596e
authored
7 years ago
by
avoidik
Browse files
Options
Downloads
Patches
Plain Diff
Move default configuration parameters for cloud-config
parent
3c12c6be
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/kubernetes/node/defaults/main.yml
+43
-0
43 additions, 0 deletions
roles/kubernetes/node/defaults/main.yml
roles/kubernetes/preinstall/defaults/main.yml
+0
-29
0 additions, 29 deletions
roles/kubernetes/preinstall/defaults/main.yml
with
43 additions
and
29 deletions
roles/kubernetes/node/defaults/main.yml
+
43
−
0
View file @
b6da596e
...
...
@@ -92,3 +92,46 @@ kube_cadvisor_port: 0
# The read-only port for the Kubelet to serve on with no authentication/authorization.
kube_read_only_port
:
0
# For the openstack integration kubelet will need credentials to access
# openstack apis like nova and cinder. Per default this values will be
# read from the environment.
openstack_auth_url
:
"
{{
lookup('env','OS_AUTH_URL')
}}"
openstack_username
:
"
{{
lookup('env','OS_USERNAME')
}}"
openstack_password
:
"
{{
lookup('env','OS_PASSWORD')
}}"
openstack_region
:
"
{{
lookup('env','OS_REGION_NAME')
}}"
openstack_tenant_id
:
"
{{
lookup('env','OS_TENANT_ID')|default(lookup('env','OS_PROJECT_ID'),true)
}}"
openstack_domain_name
:
"
{{
lookup('env','OS_USER_DOMAIN_NAME')
}}"
openstack_domain_id
:
"
{{
lookup('env','OS_USER_DOMAIN_ID')
}}"
# For the vsphere integration, kubelet will need credentials to access
# vsphere apis
# Documentation regarding these values can be found
# https://github.com/kubernetes/kubernetes/blob/master/pkg/cloudprovider/providers/vsphere/vsphere.go#L105
vsphere_vcenter_ip
:
"
{{
lookup('env',
'VSPHERE_VCENTER')
}}"
vsphere_vcenter_port
:
"
{{
lookup('env',
'VSPHERE_VCENTER_PORT')
}}"
vsphere_user
:
"
{{
lookup('env',
'VSPHERE_USER')
}}"
vsphere_password
:
"
{{
lookup('env',
'VSPHERE_PASSWORD')
}}"
vsphere_datacenter
:
"
{{
lookup('env',
'VSPHERE_DATACENTER')
}}"
vsphere_datastore
:
"
{{
lookup('env',
'VSPHERE_DATASTORE')
}}"
vsphere_working_dir
:
"
{{
lookup('env',
'VSPHERE_WORKING_DIR')
}}"
vsphere_insecure
:
"
{{
lookup('env',
'VSPHERE_INSECURE')
}}"
vsphere_resource_pool
:
"
{{
lookup('env',
'VSPHERE_RESOURCE_POOL')
}}"
vsphere_scsi_controller_type
:
pvscsi
# vsphere_public_network is name of the network the VMs are joined to
vsphere_public_network
:
"
{{
lookup('env',
'VSPHERE_PUBLIC_NETWORK')|default('')
}}"
## When azure is used, you need to also set the following variables.
## see docs/azure.md for details on how to get these values
#azure_tenant_id:
#azure_subscription_id:
#azure_aad_client_id:
#azure_aad_client_secret:
#azure_resource_group:
#azure_location:
#azure_subnet_name:
#azure_security_group_name:
#azure_vnet_name:
#azure_route_table_name:
This diff is collapsed.
Click to expand it.
roles/kubernetes/preinstall/defaults/main.yml
+
0
−
29
View file @
b6da596e
...
...
@@ -23,35 +23,6 @@ disable_ipv6_dns: false
kube_cert_group
:
kube-cert
kube_config_dir
:
/etc/kubernetes
# For the openstack integration kubelet will need credentials to access
# openstack apis like nova and cinder. Per default this values will be
# read from the environment.
openstack_auth_url
:
"
{{
lookup('env','OS_AUTH_URL')
}}"
openstack_username
:
"
{{
lookup('env','OS_USERNAME')
}}"
openstack_password
:
"
{{
lookup('env','OS_PASSWORD')
}}"
openstack_region
:
"
{{
lookup('env','OS_REGION_NAME')
}}"
openstack_tenant_id
:
"
{{
lookup('env','OS_TENANT_ID')|default(lookup('env','OS_PROJECT_ID'),true)
}}"
openstack_domain_name
:
"
{{
lookup('env','OS_USER_DOMAIN_NAME')
}}"
openstack_domain_id
:
"
{{
lookup('env','OS_USER_DOMAIN_ID')
}}"
# For the vsphere integration, kubelet will need credentials to access
# vsphere apis
# Documentation regarding these values can be found
# https://github.com/kubernetes/kubernetes/blob/master/pkg/cloudprovider/providers/vsphere/vsphere.go#L105
vsphere_vcenter_ip
:
"
{{
lookup('env',
'VSPHERE_VCENTER')
}}"
vsphere_vcenter_port
:
"
{{
lookup('env',
'VSPHERE_VCENTER_PORT')
}}"
vsphere_user
:
"
{{
lookup('env',
'VSPHERE_USER')
}}"
vsphere_password
:
"
{{
lookup('env',
'VSPHERE_PASSWORD')
}}"
vsphere_datacenter
:
"
{{
lookup('env',
'VSPHERE_DATACENTER')
}}"
vsphere_datastore
:
"
{{
lookup('env',
'VSPHERE_DATASTORE')
}}"
vsphere_working_dir
:
"
{{
lookup('env',
'VSPHERE_WORKING_DIR')
}}"
vsphere_insecure
:
"
{{
lookup('env',
'VSPHERE_INSECURE')
}}"
vsphere_resource_pool
:
"
{{
lookup('env',
'VSPHERE_RESOURCE_POOL')
}}"
vsphere_scsi_controller_type
:
pvscsi
# vsphere_public_network is name of the network the VMs are joined to
vsphere_public_network
:
"
{{
lookup('env',
'VSPHERE_PUBLIC_NETWORK')|default('')
}}"
# Container Linux by CoreOS cloud init config file to define /etc/resolv.conf content
# for hostnet pods and infra needs
resolveconf_cloud_init_conf
:
/etc/resolveconf_cloud_init.conf
...
...
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