- 新增 consul-ingress.yaml 文件,创建 Consul Ingress 资源 - 更新 consul-service.yaml 文件,将选择器从 io.kompose.service 改为 app
16 lines
235 B
YAML
16 lines
235 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: consul
|
|
spec:
|
|
ports:
|
|
- name: "8500"
|
|
port: 8500
|
|
targetPort: 8500
|
|
- name: "8600"
|
|
port: 8600
|
|
protocol: UDP
|
|
targetPort: 8600
|
|
selector:
|
|
app: consul
|