Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion k8s/mysql/base/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,37 @@ spec:
spec:
containers:
- name: mysql
imagePullPolicy: IfNotPresent
imagePullPolicy: Always
image: mysql:5.7
ports:
- containerPort: 3306
envFrom:
- secretRef:
name: mysql-secret
# resources:
# requests:
# memory: "128Mi"
# cpu: "50M"
# limits:
# memory: "128Mi"
# cpu: "50M"
securityContext:
runAsUser: 12345
runAsGroup: 12345
readOnlyRootFilesystem: true
livenessProbe:
exec:
command: ["mysqladmin", "ping"]
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 5
# readinessProbe:
# exec:
# # Check we can execute queries over TCP (skip-networking is off).
# command: ["mysql", "-h", "127.0.0.1", "-e", "SELECT 1"]
# initialDelaySeconds: 15
# periodSeconds: 5
# timeoutSeconds: 1
volumeClaimTemplates:
- metadata:
name: mysql-storage
Expand Down