k8s部署dubbo
1、dubbo_rc文件如下:cat dubbo_rc.yamlapiVersion: v1kind: ReplicationControllermetadata:name: dubboadminspec:replicas: 1selector:app: dubboadmintemplate:metadata:labe...
·
1、dubbo_rc文件如下:
cat dubbo_rc.yaml
apiVersion: v1
kind: ReplicationController
metadata:
name: dubboadmin
spec:
replicas: 1
selector:
app: dubboadmin
template:
metadata:
labels:
app: dubboadmin
spec:
containers:
- name: dubboadmin
image: 192.168.1.201:5000/dubboadmin #镜像地址
ports:
- containerPort: 8080
2、dubbo_svc文件:
cat dubbo_svc.yaml
apiVersion: v1
kind: Service
metadata:
name: dubboadmin
spec:
ports:
- port: 8080
selector:
app: dubboadmin
更多推荐
已为社区贡献45条内容
所有评论(0)