Comments (5)
Should be pretty straight forward now that feature/ipv6 is merged. Will start working on building this out as I'll need it for a development box. We don't want all our VMs to be provisioned with 24GB of RAM :)
from kube-ansible.
@dougbtv @fepan @s1061123, so I have a design question about what I want to do here.
We currently have this:
virtual_machines:
- name: kube-master
node_type: master
- name: kube-node-1
node_type: nodes
- name: kube-node-2
node_type: nodes
- name: kube-node-3
node_type: nodes
# - name: my-support-node
# node_type: other
vm_parameters_ram_mb: 2048
vm_parameters_cpus: 4
What I want to do is move the values of the vm_parameters_...
to be available to the virtual_machines
so that I can specify different RAM and CPU values for the machines.
I was just thinking of doing something like this:
virtual_machines:
- name: kube-master
node_type: master
vm_parameters_ram_mb: 2048
vm_parameters_cpus: 4
But then I was thinking, that maybe we'll just keep adding more and more things here... so maybe we should have a parameters
dictionary?
virtual_machines:
- name: kube-master
node_type: master
parameters:
ram_mb: 2048
cpus: 4
I'd also want to set a default, so I'd be replacing vm_parameters_...
with something like:
default_parameter_ram_mb: 2048
Then if the individual dictionaries were missing, then I'd just consume the default values. Thoughts?
from kube-ansible.
I, for one, really like this design. particularly the replacing the vm_parameters_*
with a default_vm_parameter_*
and then having the virtual_machines
list of hashes with an extra param
dictionary. That looks great.
The logic for weaving in the defaults doesn't come to me easily, but, it sounds fun to slang (if it's not painful, lol)
from kube-ansible.
Yea, I'm worried a bit about the default values, but I think I might know how to tackle that. We shall see! Thanks for the feedback. Going to work on this today.
from kube-ansible.
OK so I had to flatten the dictionary because of these problems:
ansible/ansible#30944 (comment)
That's why things are flat in the PR.
from kube-ansible.
Related Issues (20)
- Clean up deprecated items HOT 1
- roles/kube-common/defaults/main.yml is still needed? HOT 1
- syntax error HOT 4
- error with kubeadm HOT 1
- Join each node to master failed HOT 2
- virthost-setup probably should automate local key management of nodes.
- Problem with etcd
- kubeadm config file update HOT 1
- Template error while templating string: no filter named 'version_compare'. HOT 3
- Got 404 Not Found when accessing https://git.io/weave-kube HOT 2
- Drop CNI plugin install from kube-ansible HOT 1
- HA Cluaster (multiple master) support
- Parameterize OvS/OVN package location (OvS RPM repo / OVN container image)
- kube-install-ovn : kubernetes installation fails because haproxy.cfg does not exist
- OVN binaries are not required on the Virtual Host
- Clustered HA setup, configure the kubectl on secondary master (master_slave)
- OVN Kubernetes CNI does not require kube-proxy
- Running on Fed 32 machine with Docker Daemon running requires some workarounds
- OVN-Raft activated even when flag is set to `False`
- sysctl: cannot stat /proc/sys/fs/may_detach_mounts: No such file or directory
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kube-ansible.