Make sure a cluster is running.
Operator initialization
operator-sdk init \
--domain adityakoranga.com \
--plugins helm
API creation:
operator-sdk create api \
--group demo \
--version v1alpha1 \
--kind Nginx
Install CRD:
make install
setting the docker image:
export IMG=addytiv/nginx-helm-operator:0.0.1
Build and Push operator docker image:
make docker-build docker-push IMG=${IMG}
make deploy IMG=${IMG}
Install Custom Resource:
kubectl apply -f config/samples/demo_v1alpha1_nginx.yaml