Minimum Viable Product - MariaDB Kubernetes Operator for traditional replication (MDBF-299)

[MDBF-376] Statefulset part M/S - create Services Created: 2022-03-29  Updated: 2022-06-19  Resolved: 2022-06-19

Status: Closed
Project: MariaDB Foundation Development
Component/s: Kubernetes
Affects Version/s: None
Fix Version/s: N/A

Type: Technical task Priority: Major
Reporter: Anel Husakovic Assignee: Anel Husakovic
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 6d 7.5h
Time Spent: 0.5h
Original Estimate: 7d


 Description   

1. Create headless service for writes within the cluster (port 3306) - service that is needed to retain unique identity of Statefulset. Normal service resolves DNS record to a single Cluster IP address of a Service, whereas for Headless service DNS record resolves to multiple IP of Pods.
2. Create service with other name on the same port to for read only (client service for reads)



 Comments   
Comment by Anel Husakovic [ 2022-04-06 ]

Example of Service

apiVersion: v1
kind: Service
metadata:
  name: mariadb-internal-service
spec:
  selector:
    app: mariadb
  ports:
    - protocol: TCP
      port: 3306
      targetPort: 3306

Generated at Thu Feb 08 03:37:26 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.