redhat-cop / openshift-applier

Used to apply OpenShift objects to an OpenShift Cluster
Apache License 2.0
101 stars 61 forks source link

use k8s module or openshift applier #146

Open Cuball0 opened 5 years ago

Cuball0 commented 5 years ago

How do I decide (and convince my colleagues) what to use? Do I use Ansible k8s module to provision my Openshift objects or do I use the Openshift Applier role?

I started with Openshift applier, but I find it sometimes limiting in flexibility. I have the impression vanilla Ansible modules (k8s, k8s_facts) gives me more freedom..

Any comments ?

oybed commented 5 years ago

Not sure this is quite an apple-to-apple comparison. I.e.: one is a set of modules and the other is a role that provides structure around how said modules can are used (yes, openshift-applier uses oc or kubectl, but it could as well use the k8s modules). In other words, loosely said, if you have a list of object definitions and content for a cluster, and you wanted to use the k8s modules to create/apply this content, you would have to write a similar role/playbook to what the openshift-applier provides.