deploy nginx deployment with service base on operator sdk ansible framework
66
1. download repo
git clone https://gitee.com/xiaotech/operator-nginx
2. run operator
kustomize build deploy/default | kubectl create -f -
3. deploy nginx
kubectl create -f deploy/server_v1_nginx.yaml
contents of server_v1_nginx.yaml
apiVersion: server.xiaotech.com/v1
kind: Nginx
metadata:
name: nginx-sample
spec:
# TODO(user): Add fields here
Content type
Image
Digest
Size
210 MB
Last updated
over 4 years ago
docker pull xiaotech/nginx-controller:v2