apiVersion: v1 kind: Service metadata: name: mariadb-service spec: ports: - port: 3306 selector: app.kubernetes.io/name: mariadb-deployment