我试图使用argocd应用程序在我的kubernetes集群中安装Drone CI服务器,除了Drone CI服务器部署之外,所有内容都已启动并运行
deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: drone-server
namespace: droneci
labels:
app: drone-server
spec:
replicas: 1
selector:
matchLabels:
app: drone-server
template:
metadata:
labels:
app: drone-server
spec:
containers:
- name: drone-server
image: drone/drone:2.20.0
imagePullPolicy: IfNotPresent
resources:
limits:
memory: "800Mi"
cpu: "500m"
ports:
- name: http
containerPort: 80
protocol: TCP
envFrom:
- secretRef:
name: droneci-secret
service.yaml
apiVersion: v1
kind: Service
metadata:
name: drone-server
namespace: droneci
labels:
app: drone-server
spec:
type: NodePort
selector:
app: drone-server
ports:
- protocol: TCP
name: http
port: 80
targetPort: 80
这是我从droneci-server pod获得的唯一日志(给出Back-off错误):
level=fatal msg="main: invalid configuration" error="Invalid port configuration. See https://community.harness.io/t/drone-server-changing-ports-protocol/11400"
我不明白到底是什么问题,我相信端口配置它只是罚款。有人能帮帮我吗?
1条答案
按热度按时间axzmvihb1#
我不知道为什么,但如果我先应用部署,然后再应用服务,它就可以工作