checkpoint 2 part 1 finished, needs to be properly tested

This commit is contained in:
Tiago Sousa 2023-12-07 12:35:17 +00:00
parent ce3ea05831
commit c3f67d4582
14 changed files with 306 additions and 26 deletions

View file

@ -0,0 +1,16 @@
---
# Service for exposing MySQL
apiVersion: v1
kind: Service
metadata:
name: mysql-service # logical name of the service, which will also become the DNS name of the service when it is created.
labels:
app: mysql
tier: database
spec:
type: ClusterIP
selector:
app: mysql
ports:
- targetPort: 3306 # port that containers are listening on
port: 3306 # port number exposed internally in the cluster