First, I'm a complete ansible playbook noob. I'm busy trying to understand a clutser at my workplace. I tried following the readme's quick start guide whilst also following my companies kubespray fork. One thing that is really bothering me right now, is that configuration for our personal cluster is littered throughout the entire fork. Is there no way to separate my personal config files for the cluster from the kubespray repository? My idea is that I have a kubespray directory which is a fork, or master of the kubespray repository and when running 'kubespray' I supply my cluster's config to kubespray. Because currently I can't see how this is a clean and manageable way to maintain cluster resources with commits while also trying to update kubespray when I want to apply a new version. the current process seems like a utter mess!
Kubespray and Ansible, how to seperate config(ie inventory and other config files)
606 views Asked by Jared Rieger At
1
There are 1 answers
Related Questions in KUBERNETES
- How to know a Pod's own IP address from inside a container in the Pod?
- Who will decide the "specified number of pods" for replication controller in kubernetes?
- Access other containers of a pod in Kubernetes
- Kubernetes cluster using Vagrant not working after restart
- kubectl not installed with gcloud SDK
- How do I access the Kubernetes api from within a pod container?
- Exposing several services with Vagrant and Kubernetes on my own server
- Does Kubernetes provision new VMs for pods on my cloud platform?
- Any suggestion for running Aerospike on Kubernetes on CoreOS on GCE?
- Kubernetes - kubectl exec bash - session drop and line width
Related Questions in ANSIBLE
- What is a 'map' in terms of Ansible variables?
- Vagrant - Ansible error installing Apache
- How can I pass variable to ansible playbook in the command line?
- How to add apt key with --recv-keys instead of --recv?
- Ansible inventory parameters for pem key
- Ansible git clone 'Permission Denied' but direct git clone working
- Register variable in ansible and using custom filter in when
- Ansible git clone as root
- Ansible - conditionally include a file in a role
- Extracting file persmission data in Ansible
Related Questions in KUBESPRAY
- Kubernetes Persistent Volume never created by local path provisioner
- why kubespray ansible can't match the hosts
- Change Container Runtime without destroying cluster
- How to upgrade kubespray kubernetes cluster container runtime?
- How do you correctly enable and connect the MetalLB addon for Kubespray?
- Is it possible to install only master when installing kubernetes with Kubespray?
- Ideal settings for Kubernetes DNS to use systemd resolvd entires
- Kubespray and Ansible, how to seperate config(ie inventory and other config files)
- How to add external GCP loadbalancer to kubespray cluster?
- Kubernetes Vsphere Provisioner: Failed to provision volume with StorageClass "fast": Cloud provider not initialized properly
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
So I ended up finding a nice solution that extrapolated away custom personal configuration from the kubespray repo. I assume this would actually be pretty obvious to seasoned Ansible users but the structure is as followed.
Now within the main dir you can run your kubespray commands like so
The great thing about this structure is that you can now use git to track your changes to your infrastructure only and not having to worry about meddling with the files within Kubespray. Plus by having kubespray as a gitsubmodule you can also track the different versions with the configuration of servers. just general git goodness.
Anyway, I hope someone finds this useful. I've been using for a couple of months and found it far cleaner than having your configuration within the kubespray module.