NAME READY STATUS RESTARTS AGE
mysql-1-pg6dd 0/1 CrashLoopBackOff 3 1m
[root@qqmelo1c ansible]# oc describe mysql-1-pg6dd
error: the server doesn't have a resource type "mysql-1-pg6dd"
[root@qqmelo1c ansible]# oc log mysql-1-pg6dd
log is DEPRECATED and will be removed in a future version. Use logs instead.
=> sourcing 20-validate-variables.sh ...
You must either specify the following environment variables:
MYSQL_USER (regex: '^[a-zA-Z0-9_]+$')
MYSQL_PASSWORD (regex: '^[a-zA-Z0-9_~!@#$%^&*()-=<>,.?;:|]+$')
MYSQL_DATABASE (regex: '^[a-zA-Z0-9_]+$')
Or the following environment variable:
MYSQL_ROOT_PASSWORD (regex: '^[a-zA-Z0-9_~!@#$%^&*()-=<>,.?;:|]+$')
Or both.
Optional Settings:
MYSQL_LOWER_CASE_TABLE_NAMES (default: 0)
MYSQL_LOG_QUERIES_ENABLED (default: 0)
MYSQL_MAX_CONNECTIONS (default: 151)
MYSQL_FT_MIN_WORD_LEN (default: 4)
MYSQL_FT_MAX_WORD_LEN (default: 20)
MYSQL_AIO (default: 1)
MYSQL_KEY_BUFFER_SIZE (default: 32M or 10% of available memory)
MYSQL_MAX_ALLOWED_PACKET (default: 200M)
MYSQL_TABLE_OPEN_CACHE (default: 400)
MYSQL_SORT_BUFFER_SIZE (default: 256K)
MYSQL_READ_BUFFER_SIZE (default: 8M or 5% of available memory)
MYSQL_INNODB_BUFFER_POOL_SIZE (default: 32M or 50% of available memory)
MYSQL_INNODB_LOG_FILE_SIZE (default: 8M or 15% of available memory)
MYSQL_INNODB_LOG_BUFFER_SIZE (default: 8M or 15% of available memory)
For more information, see https://github.com/sclorg/mysql-container
[root@qqmelo1c ansible]# oc describe pod mysql-1-pg6dd
Name: mysql-1-pg6dd
Namespace: qq
Priority: 0
PriorityClassName:
Node: qqmelo1c.mylabserver.com/172.31.115.132
Start Time: Fri, 15 Mar 2019 03:53:06 +0000
Labels: app=mysql
deployment=mysql-1
deploymentconfig=mysql
Annotations: openshift.io/deployment-config.latest-version=1
openshift.io/deployment-config.name=mysql
openshift.io/deployment.name=mysql-1
openshift.io/generated-by=OpenShiftNewApp
openshift.io/scc=restricted
Status: Running
IP: 10.128.0.32
Controlled By: ReplicationController/mysql-1
Containers:
mysql:
Container ID: docker://d47e3145a0b82e7daf873316d513b66ca487615f761ef253d492de65e6dee73b
Image: docker-registry.default.svc:5000/openshift/mysql@sha256:c825717ffe30b7816006d95b8bb0bab7f462bdf9658a0092fc0149339037b0ee
Image ID: docker-pullable://docker-registry.default.svc:5000/openshift/mysql@sha256:c825717ffe30b7816006d95b8bb0bab7f462bdf9658a0092fc0149339037b0ee
Port: 3306/TCP
Host Port: 0/TCP
State: Waiting
Reason: CrashLoopBackOff
Last State: Terminated
Reason: Error
Exit Code: 1
Started: Fri, 15 Mar 2019 03:53:54 +0000
Finished: Fri, 15 Mar 2019 03:53:54 +0000
Ready: False
Restart Count: 3
Environment:
Mounts:
/var/run/secrets/kubernetes.io/serviceaccount from default-token-kn55l (ro)
Conditions:
Type Status
Initialized True
Ready False
ContainersReady False
PodScheduled True
Volumes:
default-token-kn55l:
Type: Secret (a volume populated by a Secret)
SecretName: default-token-kn55l
Optional: false
QoS Class: BestEffort
Node-Selectors: node-role.kubernetes.io/compute=true
Tolerations:
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 1m default-scheduler Successfully assigned qq/mysql-1-pg6dd to qqmelo1c.mylabserver.com
Normal Pulled 46s (x4 over 1m) kubelet, qqmelo1c.mylabserver.com Container image "docker-registry.default.svc:5000/openshift/mysql@sha256:c825717ffe30b7816006d95b8bb0bab7f462bdf9658a0092fc0149339037b0ee" already present on machine
Normal Created 46s (x4 over 1m) kubelet, qqmelo1c.mylabserver.com Created container
Normal Started 46s (x4 over 1m) kubelet, qqmelo1c.mylabserver.com Started container
Warning BackOff 7s (x8 over 1m) kubelet, qqmelo1c.mylabserver.com Back-off restarting failed container
Pero el dato mas claro, lo tira el oc log
ya que no tenemos pasadas las secrets....
No comments:
Post a Comment