From 8da1438aa2640a30e84c0e8ad51c7a50ebea333a Mon Sep 17 00:00:00 2001 From: Jim Nicholson Date: Mon, 11 Oct 2021 22:05:57 -0700 Subject: [PATCH] Add agent --- kustomize/agent.yaml | 29 +++++++++++++++++++++++++++++ kustomize/kustomization.yaml | 4 ++-- 2 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 kustomize/agent.yaml diff --git a/kustomize/agent.yaml b/kustomize/agent.yaml new file mode 100644 index 0000000..39bf4a3 --- /dev/null +++ b/kustomize/agent.yaml @@ -0,0 +1,29 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: drone + namespace: drone + labels: + app.kubernetes.io/name: drone +spec: + replicas: 1 + selector: + matchLabels: + app.kubernetes.io/name: drone + template: + metadata: + labels: + app.kubernetes.io/name: drone + spec: + containers: + - name: runner + image: drone/drone-runner-kube:latest + ports: + - containerPort: 3000 + env: + - name: DRONE_RPC_HOST + value: drone-server.drone.svc.cluster.local + - name: DRONE_RPC_PROTO + value: http + - name: DRONE_RPC_SECRET + value: 5fe3add2da2fc5a8d31c9b1139ac07a3d97d \ No newline at end of file diff --git a/kustomize/kustomization.yaml b/kustomize/kustomization.yaml index 88750f1..54770d6 100644 --- a/kustomize/kustomization.yaml +++ b/kustomize/kustomization.yaml @@ -6,5 +6,5 @@ resources: - storage.yaml - deployment.yaml - service.yaml -# - ingress.yaml -# - agent.yaml \ No newline at end of file + - ingress.yaml + - agent.yaml \ No newline at end of file