123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: drone
- namespace: cicd
- labels:
- app.kubernetes.io/name: drone
- spec:
- selector:
- matchLabels:
- app.kubernetes.io/name: drone
- replicas: 1
- template:
- metadata:
- labels:
- app.kubernetes.io/name: drone
- spec:
- shareProcessNamespace: true
- containers:
- - name: runner
- image: drone/drone-runner-docker:1
- imagePullPolicy: Always
- resources:
- limits:
- cpu: "2"
- memory: "2Gi"
- requests:
- cpu: "1"
- memory: "1Gi"
- ports:
- - name: http
- containerPort: 3000
- protocol: TCP
- env:
- - name: DRONE_RPC_PROTO
- value: "http"
- - name: DRONE_ENV_PLUGIN_SKIP_VERIFY
- value: "false"
- - name: DRONE_RPC_HOST
- value: "drone.cicd.svc.cluster.local"
- - name: DRONE_RPC_SECRET
- value: "cecf@cestong.com"
- - name: DRONE_RUNNER_CAPACITY
- value: "2"
- - name: DRONE_RUNNER_NAME
- value: "first-runner"
- volumeMounts:
- - name: data
- mountPath: /var/lib/drone
- - name: docker-socket
- mountPath: /var/run/docker.sock
- - name: server
- image: drone/drone:2
- imagePullPolicy: Always
- resources:
- limits:
- cpu: "2"
- memory: "2Gi"
- requests:
- cpu: "1"
- memory: "1Gi"
- ports:
- - name: https
- containerPort: 443
- protocol: TCP
- - name: http
- containerPort: 80
- protocol: TCP
- env:
- - name: DRONE_ENV_PLUGIN_SKIP_VERIFY
- value: "false"
- - name: DRONE_AGENTS_ENABLED
- value: "true"
- - name: DRONE_GOGS_SERVER
- value: "http://git.cestong.com.cn"
- - name: DRONE_RPC_SECRET
- value: "cecf@cestong.com"
- - name: DRONE_SERVER_HOST
- value: "ci.cestong.com.cn"
- - name: DRONE_SERVER_PROTO
- value: "http"
- volumeMounts:
- - name: data
- mountPath: /var/lib/drone
- volumes:
- - name: data
- persistentVolumeClaim:
- claimName: drone-pvc
- - name: docker-socket
- hostPath:
- path: /var/run/docker.sock
|