Make sure a cluster is running.
Operator initialization
operator-sdk init \
--domain adityakoranga.com \
--plugins helmAPI creation:
operator-sdk create api \
--group demo \
--version v1alpha1 \
--kind NginxInstall CRD:
make installsetting the docker image:
export IMG=addytiv/nginx-helm-operator:0.0.1Build 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