当前位置: 首页 > 工具软件 > operator-sdk > 使用案例 >

operator-sdk常用命令

刁远
2023-12-01
mkdir memcached-operator
cd memcached-operator
operator-sdk init --domain example.com --repo github.com/example/memcached-operator

operator-sdk create api --group cache --version v1alpha1 --kind Memcached --resource --controller

make docker-build docker-push IMG="example.com/memcached-operator:v0.0.1"

make deploy IMG="example.com/memcached-operator:v0.0.1"

kubectl apply -f config/samples/cache_v1alpha1_memcached.yaml

make undeploy

 类似资料: