Pieter, This doesn't help you out right now, but I gave a talk about the work we are doing in this area at AnsibleFest last month: https://www.ansible.com/kubernetes-ansible-management-red-hat
We are working on developing a set of Ansible modules for Kubernetes/OpenShift that will allow you to better manage your deployed components within the cluster. I was initially targeting the Ansible 2.2 release, but I haven't had a chance to clean things up enough for submission, so it may be the 2.3 release where things land upstream in Ansible. The code from the talk (including the ansible modules used) is here: https://github.com/detiber/ansible_fest_2016 The python library that is required is here: https://github.com/ftl-toolbox/lib_openshift On Thu, Aug 25, 2016 at 8:45 AM, Pieter Nagel <[email protected]> wrote: > I'm trying to figure out how to manage OpenShift apps from an > "Infrastructure as code" perspective. > > The obvious place to start is by keeping the yaml or json representation > of all OpenShift objects as files under source control. > > But people can still edit objects via the Web console (and sometimes that > will be the most convenient route in development). > > So at some point you will need to get the yaml files in source control > up-to-date. > > The problem is, `oc get -o yaml` has a lot of output that one wouldn't > want to keep under source control. For example creationTimestamp, > resourceVersion, > selfLink and uid seem redundant to me - if I need to recreate the same > logical app from source, or update testing to look like development, I > don't care if the objects have the same timestamps and uids they used to > have. > > So you need to postprocess the output of `oc get` to transform it into > suitable source, you can't just pipe the output of `oc get` to overwrite > your source files. > > Before I reinvent the wheel on anything, does anyone know if there are > existing solutions? > > -- > Pieter Nagel > Lautus Solutions (Pty) Ltd > Building 27, The Woodlands, 20 Woodlands Drive, Woodmead, Gauteng > 0832587540 > > _______________________________________________ > dev mailing list > [email protected] > http://lists.openshift.redhat.com/openshiftmm/listinfo/dev > > -- Jason DeTiberus
_______________________________________________ dev mailing list [email protected] http://lists.openshift.redhat.com/openshiftmm/listinfo/dev
