编辑ignite.yaml文件如下:
apiVersion: v1
kind: Service
metadata:
# Name of Ignite Service used by Kubernetes IP finder.
# The name must be equal to TcpDiscoveryKubernetesIpFinder.serviceName.
name: ignite
namespace: default
spec:
clusterIP: None # custom value.
ports:
- name: jdbc
port: 11211
protocol: TCP
targetPort: 11211
- name: spi-communication
port: 47100
protocol: TCP
targetPort: 47100
- name: spi-discovery
port: 47500
protocol: TCP
targetPort: 47500
- name: jmx
port: 49112
protocol: TCP
targetPort: 49112
- name: sql
port: 10800
protocol: TCP
targetPort: 10800
- name: rest
port: 8080
protocol: TCP
targetPort: 8080
- name: thin-clients
port: 10900
protocol: TCP
targetPort: 10900
selector:
# Must be equal to one of the labels set in Ignite pods'
# deployement configuration.
app: ignite
---
apiVersion: apps/v1
kind