kubernetes中mysql乱码_k8s kubernetes mysql 8.0 设置表不区分大小写 lower_case_table_names=1...
apiVersion: extensions/v1beta1kind: Deploymentmetadata:annotations:deployment.kubernetes.io/revision: "1"creationTimestamp: "2019-05-02T16:03:33Z"generation: 1labels:run: k8s-mysqlname: k8s-mysqlnames
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: "1"
creationTimestamp: "2019-05-02T16:03:33Z"
generation: 1
labels:
run: k8s-mysql
name: k8s-mysql
namespace: default
resourceVersion: "9665"
selfLink: /apis/extensions/v1beta1/namespaces/default/deployments/k8s-mysql
uid: d600e4f1-6cf3-11e9-940a-1eebfc19a3f6
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
run: k8s-mysql
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
creationTimestamp: null
labels:
run: k8s-mysql
spec:
containers:
- name: k8s-mysql
image: mysql
imagePullPolicy: Always
env:
- name: MYSQL_ROOT_PASSWORD
value: "123456"
ports:
- containerPort: 3306
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
args:
- --lower_case_table_names=1
- --skip-ssl
- --character_set_server=utf8
- --explicit_defaults_for_timestamp
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
status:
availableReplicas: 1
conditions:
- lastTransitionTime: "2019-05-02T16:05:27Z"
lastUpdateTime: "2019-05-02T16:05:27Z"
message: Deployment has minimum availability.
reason: MinimumReplicasAvailable
status: "True"
type: Available
- lastTransitionTime: "2019-05-02T16:03:33Z"
lastUpdateTime: "2019-05-02T16:05:27Z"
message: ReplicaSet "k8s-mysql-764ff9c9ff" has successfully progressed.
reason: NewReplicaSetAvailable
status: "True"
type: Progressing
observedGeneration: 1
readyReplicas: 1
replicas: 1
updatedReplicas: 1
最主要的是:
args:
- --lower_case_table_names=1
更多推荐
所有评论(0)