2
0
This repository has been archived on 2020-11-01. You can view files and clone it, but cannot push or open issues or pull requests.
deploy-kubernetes/drone.yml
2020-11-01 18:20:54 +01:00

87 lines
1.9 KiB
YAML

---
apiVersion: v1
kind: ConfigMap
metadata:
name: drone-config
labels:
app: drone
namespace: drone
data:
DRONE_USER_CREATE: "username:tormakris,admin:true"
DRONE_ADMIN: tormakris
DRONE_AGENTS_ENABLED: "true"
DRONE_GITEA_SERVER: "https://git.kmlabz.com"
DRONE_GITEA_PRIVATE_MODE: "false"
DRONE_SERVER_HOST: drone.kmlabz.com
DRONE_SERVER_PROTO: https
DRONE_GITEA_CLIENT_ID: "edbee7f1-7295-4523-a88d-c55eb149da0f"
DRONE_GITEA_CLIENT_SECRET: "v7y2B0arZ6Fq2MZyYVDQ8JOGblBDeHX3oWAKMfxDQ_U="
DRONE_RPC_SECRET: d93445d12055463a6a5e4a39949c165e
DRONE_DATABASE_DRIVER: postgres
DRONE_DATABASE_DATASOURCE: "postgres://drone:cQk1JI73C1UZi0Y3oSQq@192.168.8.4:5432/drone?sslmode: verify-ca"
DRONE_DATABASE_SECRET: afb12100f88c1011f60c6a00f0cac02c
DRONE_GITEA_SKIP_VERIFY: "false"
DRONE_GIT_ALWAYS_AUTH: "true"
DRONE_LOGS_DEBUG: "true"
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: drone
namespace: drone
spec:
replicas: 1
selector:
matchLabels:
app: drone
template:
metadata:
labels:
app: drone
spec:
containers:
- name: drone
image: drone/drone:1
imagePullPolicy: "Always"
ports:
- containerPort: 80
envFrom:
- configMapRef:
name: drone-config
---
apiVersion: v1
kind: Service
metadata:
name: drone
namespace: drone
spec:
type: ClusterIP
ports:
- port: 80
targetPort: 80
name: http
protocol: TCP
selector:
app: drone
---
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: drone
namespace: drone
annotations:
kubernetes.io/ingress.class: "nginx"
cert-manager.io/cluster-issuer: "letsencrypt-prod"
spec:
tls:
- hosts:
- drone.kmlabz.com
secretName: drone-cert-secret
rules:
- host: drone.kmlabz.com
http:
paths:
- path: /
backend:
serviceName: drone
servicePort: http