You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

38 lines
675 B

# TODO: Add helm templating
apiVersion: v1
kind: Service
metadata:
name: prod1
spec:
ports:
- port: 3306
selector:
app: mysql
db: prod1
---
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
kind: Deployment
metadata:
name: mysql
spec:
selector:
matchLabels:
app: mysql
strategy:
type: Recreate
template:
metadata:
labels:
app: mysql
db: prod1
spec:
containers:
- image: mysql:8.0
name: mysql
env:
# Use secret in real usage
- name: MYSQL_ROOT_PASSWORD
value: dev-pass1
ports:
- containerPort: 3306
name: mysql