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

apply cluster-config-full.yaml error, which show init-mysql container does not have hostname #129

Open
yin-zt opened this issue Jul 15, 2023 · 0 comments

Comments

@yin-zt
Copy link

yin-zt commented Jul 15, 2023

[root@k8s-master mysql-operator]# k get pods
NAME READY STATUS RESTARTS AGE
my-cluster-0 0/2 Init:CrashLoopBackOff 6 7m59s
mysql-operator-fb994cd5c-h44mc 1/1 Running 0 28m
[root@k8s-master mysql-operator]# k logs -f my-cluster-0 -c init-mysql
++ hostname
bash: line 2: hostname: command not found

  • [[ '' =~ -([0-9]+)$ ]]
  • exit 1
    [root@k8s-master mysql-operator]# cat cluster-config_full.yaml
    apiVersion: cr.mysqloperator.grtl.github.com/v1
    kind: MySQLCluster
    metadata:
    name: "my-cluster"
    spec:
    secret: "my-secret" # Name of the secret containing the password
    port: 3306 # Port on which the service will expose the MySQL
    replicas: 2 # Number of replicas
    storage: "1Gi" # Persistance Volume Claim size for each replica
    image: "mysql:latest" # MySQL image
    [root@k8s-master mysql-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

1 participant