Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It seems that it is not possible to create multiple different versions of mysql services in one k8s? #905

Open
myysophia opened this issue Sep 26, 2023 · 1 comment

Comments

@myysophia
Copy link

  1. my first yaml
    `apiVersion: mysql.presslabs.org/v1alpha1
    kind: MysqlCluster
    metadata:
    name: my-cluster
    spec:
    replicas: 2
    secretName: my-cluster-secret
    image: percona:5.7
    mysqlVersion: "5.7"
    volumeSpec:
    persistentVolumeClaim:
    accessModes: [ "ReadWriteOnce" ]
    resources:
    requests:
    storage: 10Gi
    storageClassName: csi-disk

apiVersion: v1
kind: Secret
metadata:
name: my-cluster-secret
type: Opaque
data:
ROOT_PASSWORD: $(echo -n "not-so-secure" | base64)`

  1. second yaml file
    `apiVersion: mysql.presslabs.org/v1alpha1
    kind: MysqlCluster
    metadata:
    name: my-cluster-8.0
    spec:
    replicas: 2
    secretName: my-cluster-secret-8.0
    image: percona:8.0.33-25
    mysqlVersion: "8.0.33"
    volumeSpec:
    persistentVolumeClaim:
    accessModes: [ "ReadWriteOnce" ]
    resources:
    requests:
    storage: 10Gi
    storageClassName: csi-disk

apiVersion: v1
kind: Secret
metadata:
name: my-cluster-secret
type: Opaque
data:
ROOT_PASSWORD: $(echo -n "not-so-secure" | base64)`

my question is : Executing the second yaml file operator doesn't seem to work.
Thank you for any reply:)

@drivebyer
Copy link
Contributor

drivebyer commented Sep 26, 2023

Is there any error log in operator?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants