作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试为Gitlab设置Kubernetes执行器,但出现此错误:
错误:作业失败(系统故障):发布
https://api.kubernetes.de/api/v1/namespaces/gitlab/pods:x509:
由未知权限签署的证书
这是我的configmap.yml:
apiVersion: v1
kind: ConfigMap
metadata:
name: gitlab-runner
namespace: gitlab
data:
config.toml: |
concurrent = 4
[[runners]]
name = "Kubernetes Runner"
url = "http://########/ci"
token = "############"
executor = "kubernetes"
[runners.kubernetes]
host = "https://api.kubernetes.de"
namespace = "gitlab"
namespace_overwrite_allowed = "ci-.*"
privileged = true
cpu_limit = "1"
memory_limit = "1Gi"
service_cpu_limit = "1"
service_memory_limit = "1Gi"
helper_cpu_limit = "500m"
helper_memory_limit = "100Mi"
poll_interval = 5
poll_timeout = 3600
[runners.kubernetes.node_selector]
gitlab = "true"
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: gitlab-runner
namespace: gitlab
spec:
replicas: 1
selector:
matchLabels:
name: gitlab-runner
template:
metadata:
labels:
name: gitlab-runner
spec:
containers:
- args:
- run
image: gitlab/gitlab-runner:latest
imagePullPolicy: Always
name: gitlab-runner
volumeMounts:
- mountPath: /etc/gitlab-runner
name: config
- mountPath: /etc/ssl/certs
name: cacerts
readOnly: true
restartPolicy: Always
volumes:
- configMap:
name: gitlab-runner
name: config
- hostPath:
path: /usr/share/ca-certificates/mozilla
name: cacerts
最佳答案
您正在使用https
,那么证书在哪里,它们是自签名证书吗?如果是,则必须在configmap中为kubelet提及--tls-cert-file
和--tls-private-key-file
标志。
关于ssl-certificate - Gitlab上的Kubernetes执行程序-错误:作业失败(系统故障):发布* api/v1/命名空间/gitlab/pods:x509:证书由未知授权机构签名,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43210620/
我经常在 crashlytics 报告中收到此异常,不知道为什么? Fatal Exception: java.lang.RuntimeException: Failure from system
我正在尝试为Gitlab设置Kubernetes执行器,但出现此错误: 错误:作业失败(系统故障):发布 https://api.kubernetes.de/api/v1/namespaces/git
我是一名优秀的程序员,十分优秀!