- apiVersion: v1
- kind: Service
- metadata:
- name: mariadb
- spec:
- ipFamilyPolicy: PreferDualStack
- selector:
- name: mariadb
- ports:
- - protocol: TCP
- # The service listens to incoming requests on this port ...
- port: 3306
- # And forwards them to the container which listens on that port.
- targetPort: 3306
|