Bug #113227 | MySQL Operator - Support for pulling sidecar images from private registy | ||
---|---|---|---|
Submitted: | 27 Nov 2023 3:48 | Modified: | 6 Feb 16:12 |
Reporter: | Prasad Kris | Email Updates: | |
Status: | Won't fix | Impact on me: | |
Category: | MySQL Operator | Severity: | S4 (Feature request) |
Version: | OS: | Any | |
Assigned to: | CPU Architecture: | Any | |
Tags: | kubernetes, mysql-operator |
[27 Nov 2023 3:48]
Prasad Kris
[23 Jan 16:18]
MySQL Verification Team
Thanks for the report. I will change this bug report to feature request.
[6 Feb 16:12]
Andrey Hristov
Posted by developer: Hi, in case of metrics you can pass the full container image URI. Registries that need authentication are also allowed. For this one needs to provide pull secrets as in .spec.imagePullSecrets array like this: apiVersion: mysql.oracle.com/v2 kind: InnoDBCluster metadata: name: mycluster spec: instances: 3 router: instances: 1 secretName: mypwds imagePullSecrets: - name : priv-reg-secret priv-reg-secret needs to be created in advance and should be a K8s secret of type docker-registry Example: kubectl -n $NAMESPACE create secret docker-registry priv-reg-secret --docker-server=https://$REGISTRY_IP:5000/v2/ \ --docker-username=user \ --docker-password=pass \ --docker-email=user@example.com
[6 Feb 16:19]
Andrey Hristov
Posted by developer: In case the Helm chart is used, then the solution is similar image: pullSecrets: enabled: true secretName: priv-reg-secret