back soft

مطالب مرتبط با «kubernetes mysql yaml» در back soft | نویسنده: استخدام کار

Kubernetes + MySQL : Creating custom database and user in a Kubernetes container

Vote count: 0 I am trying to create a Django + MySQL app using Google Container Engine and Kubeetes. Following the docs from official MySQL docker image and Kubeetes docs for creating MySQL container I have created the following replication controller apiVersion: v1 kind: ReplicationController metadata: labels: name: mysql name: mysql spec: replicas: 1 template: metadata: labels: name: mysql spec: containers: - image: mysql:5.6.33 name: mysql env: #Root password is compulsory - name: "MYSQL_ROOT_PASSWORD" value: "root_password" - name: "MYSQL_DATABASE" value: "custom_db" - name: "MYSQL_USER" value: "custom_user" - name: "MYSQL_PASSWORD" value: "custom_password" ports: - name: mysql container...

ادامه مطلب