mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-02 11:10:18 +00:00
16 lines
351 B
YAML
16 lines
351 B
YAML
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
name: mysql-service
|
||
|
labels:
|
||
|
name: mysql-pod
|
||
|
context: docker-k8s-lab
|
||
|
spec:
|
||
|
ports:
|
||
|
# the port that this service should serve on
|
||
|
- port: 3306
|
||
|
# label keys and values that must match in order to receive traffic for this service
|
||
|
selector:
|
||
|
name: mysql-pod
|
||
|
context: docker-k8s-lab
|