kubernetes创建一个mysql实例
创建文件 Kubectl create -f mysql-svc.yamlapiVersion: v1kind: Servicemetadata:name: mysql1spec:type: NodePortports:- port: 3307nodePort: 32307targetPort: 3306selector:...
·
创建文件 Kubectl create -f mysql-svc.yaml
apiVersion: v1
kind: Service
metadata:
name: mysql1
spec:
type: NodePort
ports:
- port: 3307
nodePort: 32307
targetPort: 3306
selector:
app: mysql
然后看,发现有了
更多推荐
已为社区贡献2条内容
所有评论(0)