Zundoko Ansible Operator is a Kubernetes operator built with Operator SDK (Ansible plugin), that plays ZundokoKiyoshi.
kubectl is needed in your PATH.
git clone https://github.com/kaitoy/zundoko-ansible-operator.git
cd zundoko-ansible-operator
export IMG=kaitoy/zundoko-ansible-operator:0.0.1
make deploy
-
Write a Hikawa manifest.
e.g.)
apiVersion: zundokokiyoshi.kaitoy.github.com/v1beta2 kind: Hikawa metadata: name: hikawa spec: intervalMillis: 500
-
Apply the manifest to start a ZundokoKiyoshi.
- Zundoko Operator starts to create Zundokos one by one with their Say fields set to "Zun" or "Doko" randomly.
- When 4 "Zun"s are created and then "Doko" is done, Zundoko Operator creates Kiyoshi.
-
See Zundokos by:
kubectl get zundoko
[root@k8s-master ~]# kubectl get zundoko NAME SAY AGE hikawa-zundoko-0001 Doko 10m hikawa-zundoko-0002 Doko 10m hikawa-zundoko-0003 Doko 9m hikawa-zundoko-0004 Zun 9m hikawa-zundoko-0005 Doko 9m hikawa-zundoko-0006 Doko 8m
-
See Kiyoshi by:
kubectl get kiyoshi
[root@k8s-master ~]# kubectl get kiyoshi NAME SAY AGE hikawa-sample-kiyoshi Kiyoshi ! 7m
-
Delete the manifest to clean a ZundokoKiyoshi.
You can build the operator yourself rather than pull it from Docker Hub.
docker is needed in your PATH.
git clone https://github.com/kaitoy/zundoko-ansible-operator.git
cd zundoko-ansible-operator
docker build . -t kaitoy/zundoko-ansible-operator:0.0.1