Skip to content

Instantly share code, notes, and snippets.

@GbengaElebs
Last active January 27, 2021 09:01
Show Gist options
  • Save GbengaElebs/5e033e0c6069b9eb25fab79039445fa0 to your computer and use it in GitHub Desktop.
Save GbengaElebs/5e033e0c6069b9eb25fab79039445fa0 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: mysql-deployment
spec:
selector:
matchLabels:
app: mysql8
strategy:
type : Recreate
template:
metadata:
labels:
app: mysql8
spec:
containers:
- name: mysql8
image: mysql:8.0.22
imagePullPolicy: Never
env:
- name: MYSQL_ROOT_PASSWORD
value: Root0++
- name: MYSQL_USER
value: newuser
- name: MYSQL_PASSWORD
value: pass@word1234
- name: MYSQL_DATABASE
value: Usersdb
args: ["--default-authentication-plugin=mysql_native_password"]
ports:
- containerPort: 3306
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment