在使用 gitlab 运算符在 openshift 中安装 gitlab-ce 时,我面临以下问题。任何人都可以帮助我“4 pod 有未绑定的即时 PVC”
[root@bastion ~]# kubectl 描述 po gitlab-ui-gitaly-0 -n gitlab-system
名称:gitlab-ui-gitaly-0
命名空间:gitlab-system
优先级:0
节点:
标签:app=gitaly
app.kubernetes.io/component=gitaly
app.kubernetes.io/instance=gitlab-ui-gitaly
app.kubernetes.io/management-by=gitlab-operator
app.kubernetes.io/name=gitlab-ui
app.kubernetes.io/part-of=gitlab
图表=gitaly-5.7.1
控制器修订哈希=gitlab-ui-gitaly-7f87fb98bd
遗产=头盔
发布=gitlab-ui
statefulset.kubernetes.io/pod-name=gitlab-ui-gitaly-0
注释:校验和/配置:acaaa7500c4f82921dc017dbfb173dd7ee4a44f9704b5bd0bceda31702f06d3d gitlab.com/prometheus_port:9236
gitlab.com/prometheus_scrape:true
openshift.io/scc:anyuid
prometheus.io/端口:9236
prometheus.io/scrape: true
状态:待定
IP:
IP:
控制者:StatefulSet/gitlab-ui-gitaly
初始化容器:
证书:
图片:registry.gitlab.com/gitlab-org/build/cng/alpine-certificates:20191127-r2
港口:
主机端口:
要求:
中央处理器:50m
环境:
坐骑:
/etc/ssl/certs 来自 etc-ssl-certs (rw)
配置:
图片:registry.gitlab.com/gitlab-org/cloud-native/mirror/images/busybox:latest
港口:
主机端口:
命令:
嘘
/配置/配置
要求:
中央处理器:50m
环境:
坐骑:
/config 来自 gitaly-config (ro)
/init-config 来自 init-gitaly-secrets (ro)
/init-secrets 来自 gitaly-secrets (rw)
容器:
吉利:
图片:registry.gitlab.com/gitlab-org/build/cng/gitaly:v14.7.1
端口:8075/TCP、9236/TCP
主机端口:0/TCP、0/TCP
要求:
中央处理器:100m
内存:200Mi
活跃度: exec [/scripts/healthcheck] 延迟=30s 超时=3s 周期=10s #success=1 #failure=3
准备就绪: exec [/scripts/healthcheck] 延迟=10s 超时=3s period=10s #success=1 #failure=3
环境:
CONFIG_TEMPLATE_DIRECTORY:/etc/gitaly/templates
CONFIG_DIRECTORY:/etc/gitaly
GITALY_CONFIG_FILE:/etc/gitaly/config.toml
SSL_CERT_DIR:/etc/ssl/certs
坐骑:
来自 gitaly-config 的 /etc/gitaly/templates (rw)
/etc/gitlab-secrets 来自 gitaly-secrets (ro)
/etc/ssl/certs/ 来自 etc-ssl-certs (ro)
来自 repo-data 的 /home/git/repositories (rw)
条件:
类型状态
PodScheduled False
卷:
回购数据:
类型:PersistentVolumeClaim(对同一命名空间中的 PersistentVolumeClaim 的引用)
声明名称:repo-data-gitlab-ui-gitaly-0
只读:假
吉塔利配置:
类型:ConfigMap(由 ConfigMap 填充的卷)
名称:gitlab-ui-gitaly
可选:假
吉塔利秘密:
类型:EmptyDir(共享 Pod 生命周期的临时目录)
媒介:内存
尺寸限制:
初始化 gitaly 秘密:
类型:投影(包含来自多个源的注入数据的卷)
SecretName:gitlab-ui-gitaly-secret
秘密可选名称:
SecretName:gitlab-ui-gitlab-shell-secret
秘密可选名称:
等-ssl-证书:
类型:EmptyDir(共享 Pod 生命周期的临时目录)
媒介:内存
尺寸限制:
QoS 等级:突发
节点选择器:
容忍:node.kubernetes.io/内存压力:NoSchedule op=Exists
node.kubernetes.io/not-ready:NoExecute op=存在 300 秒
node.kubernetes.io/unreachable:NoExecute op=存在 300 秒
活动:
类型 原因 消息年龄
---- ------ ---- ---- --------
警告 FailedScheduling 82m 默认调度程序 0/4 个节点可用:4 个 pod 具有未绑定的立即 PersistedVolumeClaims。
警告 FailedScheduling 82m 默认调度程序 0/4 个节点可用:4 个 pod 具有未绑定的立即 PersistedVolumeClaims。
警告 FailedScheduling 66m 默认调度程序 0/4 个节点可用:4 个 pod 具有未绑定的即时 PersistedVolumeClaims。
警告 FailedScheduling 65m 默认调度程序 0/4 个节点可用:4 个 pod 具有未绑定的立即 PersistedVolumeClaims。
警告 FailedScheduling 52m 默认调度程序 0/4 个节点可用:4 个 pod 具有未绑定的立即 PersistedVolumeClaims。
警告 FailedScheduling 4 分钟 44 个默认调度程序 0/4 个节点可用:4 个 pod 具有未绑定的立即 PersistedVolumeClaims。
警告 FailedScheduling 6 个默认调度程序 0/4 个节点可用:4 个 pod 具有未绑定的立即 PersistedVolumeClaims。
警告 FailedScheduling 2m1s 默认调度程序 0/4 个节点可用:4 个 pod 具有未绑定的立即 PersistedVolumeClaims。
警告 FailedScheduling 48 个默认调度程序 0/4 个节点可用:4 个 pod 具有未绑定的立即 PersistedVolumeClaims。
[root@bastion ~]# kubectl describe po gitlab-ui-gitaly-0 -n gitlab-system
Name: gitlab-ui-gitaly-0
Namespace: gitlab-system
Priority: 0
Node:
Labels: app=gitaly
app.kubernetes.io/component=gitaly
app.kubernetes.io/instance=gitlab-ui-gitaly
app.kubernetes.io/managed-by=gitlab-operator
app.kubernetes.io/name=gitlab-ui
app.kubernetes.io/part-of=gitlab
chart=gitaly-5.7.1
controller-revision-hash=gitlab-ui-gitaly-7f87fb98bd
heritage=Helm
release=gitlab-ui
statefulset.kubernetes.io/pod-name=gitlab-ui-gitaly-0
Annotations: checksum/config: acaaa7500c4f82921dc017dbfb173dd7ee4a44f9704b5bd0bceda31702f06d3d
gitlab.com/prometheus_port: 9236
gitlab.com/prometheus_scrape: true
openshift.io/scc: anyuid
prometheus.io/port: 9236
prometheus.io/scrape: true
Status: Pending
IP:
IPs:
Controlled By: StatefulSet/gitlab-ui-gitaly
Init Containers:
certificates:
Image: registry.gitlab.com/gitlab-org/build/cng/alpine-certificates:20191127-r2
Port:
Host Port:
Requests:
cpu: 50m
Environment:
Mounts:
/etc/ssl/certs from etc-ssl-certs (rw)
configure:
Image: registry.gitlab.com/gitlab-org/cloud-native/mirror/images/busybox:latest
Port:
Host Port:
Command:
sh
/config/configure
Requests:
cpu: 50m
Environment:
Mounts:
/config from gitaly-config (ro)
/init-config from init-gitaly-secrets (ro)
/init-secrets from gitaly-secrets (rw)
Containers:
gitaly:
Image: registry.gitlab.com/gitlab-org/build/cng/gitaly:v14.7.1
Ports: 8075/TCP, 9236/TCP
Host Ports: 0/TCP, 0/TCP
Requests:
cpu: 100m
memory: 200Mi
Liveness: exec [/scripts/healthcheck] delay=30s timeout=3s period=10s #success=1 #failure=3
Readiness: exec [/scripts/healthcheck] delay=10s timeout=3s period=10s #success=1 #failure=3
Environment:
CONFIG_TEMPLATE_DIRECTORY: /etc/gitaly/templates
CONFIG_DIRECTORY: /etc/gitaly
GITALY_CONFIG_FILE: /etc/gitaly/config.toml
SSL_CERT_DIR: /etc/ssl/certs
Mounts:
/etc/gitaly/templates from gitaly-config (rw)
/etc/gitlab-secrets from gitaly-secrets (ro)
/etc/ssl/certs/ from etc-ssl-certs (ro)
/home/git/repositories from repo-data (rw)
Conditions:
Type Status
PodScheduled False
Volumes:
repo-data:
Type: PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
ClaimName: repo-data-gitlab-ui-gitaly-0
ReadOnly: false
gitaly-config:
Type: ConfigMap (a volume populated by a ConfigMap)
Name: gitlab-ui-gitaly
Optional: false
gitaly-secrets:
Type: EmptyDir (a temporary directory that shares a pod's lifetime)
Medium: Memory
SizeLimit:
init-gitaly-secrets:
Type: Projected (a volume that contains injected data from multiple sources)
SecretName: gitlab-ui-gitaly-secret
SecretOptionalName:
SecretName: gitlab-ui-gitlab-shell-secret
SecretOptionalName:
etc-ssl-certs:
Type: EmptyDir (a temporary directory that shares a pod's lifetime)
Medium: Memory
SizeLimit:
QoS Class: Burstable
Node-Selectors:
Tolerations: node.kubernetes.io/memory-pressure:NoSchedule op=Exists
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
---- ------ ---- ---- -------
Warning FailedScheduling 82m default-scheduler 0/4 nodes are available: 4 pod has unbound immediate PersistentVolumeClaims.
Warning FailedScheduling 82m default-scheduler 0/4 nodes are available: 4 pod has unbound immediate PersistentVolumeClaims.
Warning FailedScheduling 66m default-scheduler 0/4 nodes are available: 4 pod has unbound immediate PersistentVolumeClaims.
Warning FailedScheduling 65m default-scheduler 0/4 nodes are available: 4 pod has unbound immediate PersistentVolumeClaims.
Warning FailedScheduling 52m default-scheduler 0/4 nodes are available: 4 pod has unbound immediate PersistentVolumeClaims.
Warning FailedScheduling 4m44s default-scheduler 0/4 nodes are available: 4 pod has unbound immediate PersistentVolumeClaims.
Warning FailedScheduling 6s default-scheduler 0/4 nodes are available: 4 pod has unbound immediate PersistentVolumeClaims.
Warning FailedScheduling 2m1s default-scheduler 0/4 nodes are available: 4 pod has unbound immediate PersistentVolumeClaims.
Warning FailedScheduling 48s default-scheduler 0/4 nodes are available: 4 pod has unbound immediate PersistentVolumeClaims.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于 PVC 存储类别和 pod 显示待处理状态,我面临以下问题。
但我关注这个链接
https://docs.gitlab.com/charts/installation/operator.html
I am facing the following issue due to PVC storage class and pods are showing pending status.
but I am follow this link
https://docs.gitlab.com/charts/installation/operator.html