-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[doc] Move all variables to group_vars
Makes sense to be consistent and follow suggestion to use group_vars where applicable. There is a bug in vexxhost collection which prevents from doing so, unfortunatelly. For this to be accurate doc, a patch to vexxhost collection should land first: vexxhost/ansible-collection-kubernetes#136 Change-Id: I5f48e913436bf5d6a8d6c0a9f77c58886e451d1f
- Loading branch information
Dmitriy Rabotyagov
committed
Nov 20, 2024
1 parent
551f75c
commit e9a9df3
Showing
5 changed files
with
68 additions
and
49 deletions.
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
25 changes: 25 additions & 0 deletions
25
mcapi_vexxhost/playbooks/files/openstack_deploy/group_vars/k8s_all/main.yml
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 |
---|---|---|
@@ -1,6 +1,31 @@ | ||
--- | ||
# Run ansible modules in a venv on the target hosts | ||
ansible_collection_kubernetes_target_venv: /opt/mcapi_ansible_venv | ||
|
||
# Pick a range of addresses for cilium that do not collide with anything else | ||
cilium_ipv4_cidr: 172.29.200.0/22 | ||
|
||
# wire OSA group, host and network addresses into k8s deployment | ||
kubelet_hostname: "{{ ansible_facts['hostname'] | lower }}" | ||
kubelet_node_ip: "{{ management_address }}" | ||
kubernetes_control_plane_group: k8s_container | ||
kubernetes_hostname: "{{ internal_lb_vip_address }}" | ||
kubernetes_non_init_namespace: true | ||
|
||
# Define custom k8s version for the control cluster | ||
# kubernetes_version: 1.31 | ||
|
||
# Define LXC container overrides | ||
lxc_container_config_list: | ||
- "lxc.apparmor.profile=unconfined" | ||
|
||
lxc_container_mount_auto: | ||
- "proc:rw" | ||
- "sys:rw" | ||
|
||
# Set this manually, or kube-proxy will try to do this - not possible | ||
# in a non-init namespace and will fail in LXC | ||
openstack_host_nf_conntrack_max: 1572864 | ||
|
||
# OSA containers dont run ssh by default so cannot use synchronize | ||
upload_helm_chart_method: copy |
38 changes: 38 additions & 0 deletions
38
mcapi_vexxhost/playbooks/files/openstack_deploy/group_vars/magnum_all/main.yml
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,38 @@ | ||
--- | ||
# Copyright 2020, VEXXHOST, Inc. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
magnum_magnum_cluster_api_git_install_branch: v0.22.1 | ||
|
||
# install magnum-cluster-api and kubernetes python package into magnum venv | ||
magnum_user_pip_packages: | ||
- "git+https://github.com/vexxhost/magnum-cluster-api@{{ magnum_magnum_cluster_api_git_install_branch }}#egg=magnum-cluster-api" | ||
- kubernetes | ||
|
||
# ensure that the internal VIP CA is trusted by the CAPI driver | ||
magnum_config_overrides: | ||
drivers: | ||
# Supply a custom CA file which will be passed and used exclusively on all workload nodes | ||
# System trust will be used by default | ||
openstack_ca_file: '/usr/local/share/ca-certificates/ExampleCorpRoot.crt' | ||
capi_client: | ||
# Supply a CA that will be used exclusively for connections towards | ||
# OpenStack public and internal endpoints. | ||
ca_file: '/usr/local/share/ca-certificates/ExampleCorpRoot.crt' | ||
endpoint: 'internalURL' | ||
cluster_template: | ||
kubernetes_allowed_network_drivers: 'calico' | ||
kubernetes_default_network_driver: 'calico' | ||
certificates: | ||
cert_manager_type: x509keypair |
19 changes: 0 additions & 19 deletions
19
mcapi_vexxhost/playbooks/files/openstack_deploy/user_variables_k8s.yml
This file was deleted.
Oops, something went wrong.
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