mysql-operator icon indicating copy to clipboard operation
mysql-operator copied to clipboard

Can i replace mysql/mysql-server:8.0.12 with a local image

Open wanghe-fit2cloud opened this issue 6 years ago • 5 comments

Mysql-operator version is 0.3.0

One problem is that when I create mysql-operator and Cluster, I find no place to modify mysql/mysql-server: 8.0.12 image.

Because when helm created mysql-operator, the image.register field in values.yaml was changed to the local mirror warehouse address, such as: 10.1.240.51/mysql, so mysql-operator and mysql-client applied the local mirror, but mysql-server did not.

Where can I configure it?

wanghe-fit2cloud avatar Feb 20 '19 08:02 wanghe-fit2cloud

[centos@mysql-cluster]$ kubectl get configmap mysql-operator-config -o yaml
apiVersion: v1
data:
  mysql-operator-config.yaml: |
    images:
      mysqlServer: registry.your.ltd/library/mysql-server
      mysqlAgent: registry.your.ltd/library/mysql-agent
kind: ConfigMap
metadata:
  labels:
    app: mysql-operator
  name: mysql-operator-config
  namespace: default

cnef avatar Mar 25 '19 08:03 cnef

[centos@mysql-cluster]$ kubectl get configmap mysql-operator-config -o yaml
apiVersion: v1
data:
  mysql-operator-config.yaml: |
    images:
      mysqlServer: registry.your.ltd/library/mysql-server
      mysqlAgent: registry.your.ltd/library/mysql-agent
kind: ConfigMap
metadata:
  labels:
    app: mysql-operator
  name: mysql-operator-config
  namespace: default

emmmmm. where can i configure private registry key。。。like imagesPullSecrets

yangjie1993 avatar May 13 '19 08:05 yangjie1993

[centos@mysql-cluster]$ kubectl get configmap mysql-operator-config -o yaml
apiVersion: v1
data:
  mysql-operator-config.yaml: |
    images:
      mysqlServer: registry.your.ltd/library/mysql-server
      mysqlAgent: registry.your.ltd/library/mysql-agent
kind: ConfigMap
metadata:
  labels:
    app: mysql-operator
  name: mysql-operator-config
  namespace: default

emmmmm. where can i configure private registry key。。。like imagesPullSecrets

o'right,i got way to solve it

yangjie1993 avatar May 13 '19 08:05 yangjie1993

I'm curious, how did You solve that problem? I had to add ImagPullSecret to statefullset.go, becouse there was no that option.

pbabilas avatar Oct 17 '19 10:10 pbabilas

[centos@mysql-cluster]$ kubectl get configmap mysql-operator-config -o yaml
apiVersion: v1
data:
  mysql-operator-config.yaml: |
    images:
      mysqlServer: registry.your.ltd/library/mysql-server
      mysqlAgent: registry.your.ltd/library/mysql-agent
kind: ConfigMap
metadata:
  labels:
    app: mysql-operator
  name: mysql-operator-config
  namespace: default

emmmmm. where can i configure private registry key。。。like imagesPullSecrets

o'right,i got way to solve it

Where exactly do you reference that ConfigMap next? and what If you wanted to create different clusters with different mysql images if this is referenced in the operator?

yacinelazaar avatar Oct 26 '19 09:10 yacinelazaar