A simple set of instructions to set up and run an Ansible-based operator.
This guide walks through an example of building a simple memcached-operator powered by Ansible using tools and libraries provided by the Operator SDK.
Prerequisitescluster-admin
permissions.example.com
is used as the registry Docker Hub namespace in these examples. Replace it with another value if using a different registry or namespace.mkdir memcached-operator
cd memcached-operator
operator-sdk init --domain example.com --plugins ansible
operator-sdk create api --group cache --version v1alpha1 --kind Memcached --generate-role
make docker-build docker-push IMG="example.com/memcached-operator:v0.0.1"
OLM deployment
example.com/memcached-operator-bundle:v0.0.1
):make bundle IMG="example.com/memcached-operator:v0.0.1"
make bundle-build bundle-push
operator-sdk run bundle example.com/memcached-operator-bundle:v0.0.1
$ kubectl apply -f config/samples/cache_v1alpha1_memcached.yaml
memcached.cache.example.com/memcached-sample created
operator-sdk cleanup memcached-operator
Direct deployment
make deploy IMG="example.com/memcached-operator:v0.0.1"
$ kubectl apply -f config/samples/cache_v1alpha1_memcached.yaml
memcached.cache.example.com/memcached-sample created
Read the full tutorial for an in-depth walkthrough of building an Ansible operator.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4