apiVersion: v1 | |
kind: Service | |
metadata: | |
name: db | |
labels: | |
name: db | |
spec: | |
ports: | |
- port: 3306 | |
targetPort: 3306 | |
protocol: TCP | |
name: mysql | |
- port: 8080 | |
targetPort: 8080 | |
protocol: TCP | |
name: api | |
--- | |
kind: Endpoints | |
apiVersion: v1 | |
metadata: | |
name: db | |
subsets: | |
- addresses: | |
- ip: 192.168.1.114 | |
ports: | |
- port: 3306 | |
name: mysql | |
- port: 8080 | |
name: api |