Untitled
unknown
plain_text
4 years ago
10 kB
5
Indexable
stepan@darkstar:sonarqube$ kubectl describe pod sonarqube-sonarqube-0 -n sonarqube
Name: sonarqube-sonarqube-0
Namespace: sonarqube
Priority: 0
Node: ip-192-168-80-72.eu-central-1.compute.internal/192.168.80.72
Start Time: Wed, 18 Aug 2021 12:17:03 +0300
Labels: app=sonarqube
controller-revision-hash=sonarqube-sonarqube-6467d5876f
release=sonarqube
statefulset.kubernetes.io/pod-name=sonarqube-sonarqube-0
Annotations: checksum/config: 662d5e471267e0100cbcc7f7cd3767de09a59506f54618a43b8c315e95987c74
checksum/init-fs: 24605c98e942051ae3afaf7a591a1aa90f07b99690aefdda5f475750defca195
checksum/init-sysctl: bba7e7350fe191426fec789fcbf15b3e0b03635cd2dbc83d151814e2bf0e1530
checksum/plugins: 9b12f3cb81e83acd63b235e8418491ba331bb9b4d25402ed9cd1f5f5f460a1dd
checksum/prometheus-ce-config: c7fb7a02f66ae496a47d1f531e6c46af38fe99b64acdab9605785f962745b159
checksum/prometheus-config: 06751d252086a332c23d3f0e2f2b46674e061db6fdb93dee8aeb3a65e830c2bb
checksum/secret: c9b8283514843a3694087d6575d7cb25d66a585000b536e0497033e8035c7dd7
kubernetes.io/psp: eks.privileged
Status: Running
IP: 192.168.88.119
IPs:
IP: 192.168.88.119
Controlled By: StatefulSet/sonarqube-sonarqube
Init Containers:
wait-for-db:
Container ID: docker://3928d8ad8ede48097795d573191126cc372bd1d6f67ef057714011da28d94e5a
Image: busybox:1.32
Image ID: docker-pullable://busybox@sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7
Port: <none>
Host Port: <none>
Command:
/bin/sh
-c
for i in $(seq 1 200); do nc -z -w3 sonarqube-postgresql 5432 && exit 0 || sleep 2; done; exit 1
State: Terminated
Reason: Completed
Exit Code: 0
Started: Wed, 18 Aug 2021 12:17:04 +0300
Finished: Wed, 18 Aug 2021 12:17:33 +0300
Ready: True
Restart Count: 0
Environment: <none>
Mounts:
/var/run/secrets/kubernetes.io/serviceaccount from default-token-kblmr (ro)
init-sysctl:
Container ID: docker://d4beef51087afc39419d63337f77a90726c49e68b009d8c5a6888a6791190ab2
Image: busybox:1.32
Image ID: docker-pullable://busybox@sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7
Port: <none>
Host Port: <none>
Command:
sh
-e
/tmp/scripts/init_sysctl.sh
State: Terminated
Reason: Completed
Exit Code: 0
Started: Wed, 18 Aug 2021 12:17:34 +0300
Finished: Wed, 18 Aug 2021 12:17:34 +0300
Ready: True
Restart Count: 0
Environment: <none>
Mounts:
/tmp/scripts/ from init-sysctl (rw)
/var/run/secrets/kubernetes.io/serviceaccount from default-token-kblmr (ro)
inject-prometheus-exporter:
Container ID: docker://4e3f8641127d471300767cb47b540c8df04234ae6f0592b1408fdabe18d8d7c7
Image: curlimages/curl:7.76.1
Image ID: docker-pullable://curlimages/curl@sha256:fa32ef426092b88ee0b569d6f81ab0203ee527692a94ec2e6ceb2fd0b6b2755c
Port: <none>
Host Port: <none>
Command:
/bin/sh
-c
Args:
curl -s 'https://repo1.maven.org/maven2/io/prometheus/jmx/jmx_prometheus_javaagent/0.16.0/jmx_prometheus_javaagent-0.16.0.jar' --output /data/jmx_prometheus_javaagent.jar -v
State: Terminated
Reason: Completed
Exit Code: 0
Started: Wed, 18 Aug 2021 12:17:35 +0300
Finished: Wed, 18 Aug 2021 12:17:35 +0300
Ready: True
Restart Count: 0
Environment:
http_proxy:
https_proxy:
no_proxy:
Mounts:
/data from sonarqube (rw,path="data")
/var/run/secrets/kubernetes.io/serviceaccount from default-token-kblmr (ro)
Containers:
sonarqube:
Container ID: docker://438ca8f3370269844d77f1ea2c497bccc6759f083530737b72da5e6de55885a1
Image: sonarqube:8.9-community
Image ID: docker-pullable://sonarqube@sha256:7850dd0f15cfe7276e233147445f15a5f1c9844dc520839e4eb1ef9fc0397361
Ports: 9000/TCP, 8000/TCP, 8001/TCP
Host Ports: 0/TCP, 0/TCP, 0/TCP
State: Running
Started: Wed, 18 Aug 2021 12:17:37 +0300
Ready: True
Restart Count: 0
Limits:
cpu: 800m
memory: 4096M
Requests:
cpu: 400m
memory: 2Gi
Liveness: exec [sh -c #!/bin/bash
# A Sonarqube container is considered healthy if the health status is GREEN or YELLOW
host="$(hostname -i || echo '127.0.0.1')"
if wget --header="X-Sonar-Passcode: ${SONAR_WEB_SYSTEMPASSCODE}" -qO- http://${host}:9000/api/system/health | grep -q -e '"health":"GREEN"' -e '"health":"YELLOW"'; then
exit 0
fi
exit 1
] delay=60s timeout=1s period=30s #success=1 #failure=3
Readiness: exec [sh -c #!/bin/bash
# A Sonarqube container is considered ready if the status is UP, DB_MIGRATION_NEEDED or DB_MIGRATION_RUNNING
# status about migration are added to prevent the node to be kill while sonarqube is upgrading the database.
host="$(hostname -i || echo '127.0.0.1')"
if wget -qO- http://${host}:9000/api/system/status | grep -q -e '"status":"UP"' -e '"status":"DB_MIGRATION_NEEDED"' -e '"status":"DB_MIGRATION_RUNNING"'; then
exit 0
fi
exit 1
] delay=60s timeout=1s period=30s #success=1 #failure=6
Startup: http-get http://:9000/api/system/status delay=30s timeout=1s period=10s #success=1 #failure=24
Environment Variables from:
sonarqube-sonarqube-postgres-config ConfigMap Optional: false
Environment:
SONAR_WEB_JAVAOPTS: -javaagent:/opt/sonarqube/data/jmx_prometheus_javaagent.jar=8000:/opt/sonarqube/conf/prometheus-config.yaml
SONAR_CE_JAVAOPTS: -javaagent:/opt/sonarqube/data/jmx_prometheus_javaagent.jar=8001:/opt/sonarqube/conf/prometheus-ce-config.yaml
SONAR_JDBC_PASSWORD: <set to the key 'postgresql-password' in secret 'sonarqube-postgresql'> Optional: false
SONAR_WEB_SYSTEMPASSCODE: <set to the key 'SONAR_WEB_SYSTEMPASSCODE' in secret 'sonarqube-sonarqube-monitoring-passcode'> Optional: false
Mounts:
/opt/sonarqube/conf/prometheus-ce-config.yaml from prometheus-ce-config (rw,path="prometheus-ce-config.yaml")
/opt/sonarqube/conf/prometheus-config.yaml from prometheus-config (rw,path="prometheus-config.yaml")
/opt/sonarqube/data from sonarqube (rw,path="data")
/opt/sonarqube/logs from sonarqube (rw,path="logs")
/opt/sonarqube/temp from sonarqube (rw,path="temp")
/tmp from tmp-dir (rw)
/var/run/secrets/kubernetes.io/serviceaccount from default-token-kblmr (ro)
Conditions:
Type Status
Initialized True
Ready True
ContainersReady True
PodScheduled True
Volumes:
init-sysctl:
Type: ConfigMap (a volume populated by a ConfigMap)
Name: sonarqube-sonarqube-init-sysctl
Optional: false
init-fs:
Type: ConfigMap (a volume populated by a ConfigMap)
Name: sonarqube-sonarqube-init-fs
Optional: false
install-plugins:
Type: ConfigMap (a volume populated by a ConfigMap)
Name: sonarqube-sonarqube-install-plugins
Optional: false
prometheus-config:
Type: ConfigMap (a volume populated by a ConfigMap)
Name: sonarqube-sonarqube-prometheus-config
Optional: false
prometheus-ce-config:
Type: ConfigMap (a volume populated by a ConfigMap)
Name: sonarqube-sonarqube-prometheus-ce-config
Optional: false
sonarqube:
Type: EmptyDir (a temporary directory that shares a pod's lifetime)
Medium:
SizeLimit: <unset>
tmp-dir:
Type: EmptyDir (a temporary directory that shares a pod's lifetime)
Medium:
SizeLimit: <unset>
default-token-kblmr:
Type: Secret (a volume populated by a Secret)
SecretName: default-token-kblmr
Optional: false
QoS Class: Burstable
Node-Selectors: <none>
Tolerations: node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 17m default-scheduler Successfully assigned sonarqube/sonarqube-sonarqube-0 to ip-192-168-80-72.eu-central-1.compute.internal
Normal Pulled 17m kubelet Container image "busybox:1.32" already present on machine
Normal Started 17m kubelet Started container wait-for-db
Normal Created 17m kubelet Created container wait-for-db
Normal Started 17m kubelet Started container init-sysctl
Normal Pulled 17m kubelet Container image "busybox:1.32" already present on machine
Normal Created 17m kubelet Created container init-sysctl
Normal Started 17m kubelet Started container inject-prometheus-exporter
Normal Pulled 17m kubelet Container image "curlimages/curl:7.76.1" already present on machine
Normal Created 17m kubelet Created container inject-prometheus-exporter
Normal Pulled 17m kubelet Container image "sonarqube:8.9-community" already present on machine
Normal Created 17m kubelet Created container sonarqube
Normal Started 17m kubelet Started container sonarqube
Warning Unhealthy 16m kubelet Startup probe failed: Get "http://192.168.88.119:9000/api/system/status": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
Warning Unhealthy 15m (x2 over 16m) kubelet Readiness probe failed:
Warning Unhealthy 15m (x2 over 15m) kubelet Liveness probe failed:
stepan@darkstar:sonarqube$
Editor is loading...