diff options
| author | Kevin J Hoerr <kjhoerr@protonmail.com> | 2021-09-26 01:12:50 +0000 |
|---|---|---|
| committer | Kevin J Hoerr <kjhoerr@protonmail.com> | 2021-09-26 01:12:50 +0000 |
| commit | 25b67e7ef4c2935a54ec0485a40bc8d69252dd43 (patch) | |
| tree | 72f5a1fd56285affdf8446d26a7872d4b6fd39fe /.kubernetes | |
| parent | 7e563d3669331d7d03b768e150b38907de0d7c92 (diff) | |
| download | ao-coverage-25b67e7ef4c2935a54ec0485a40bc8d69252dd43.tar.gz ao-coverage-25b67e7ef4c2935a54ec0485a40bc8d69252dd43.tar.bz2 ao-coverage-25b67e7ef4c2935a54ec0485a40bc8d69252dd43.zip | |
Attempt version substitution for k8s configs
Diffstat (limited to '.kubernetes')
| -rw-r--r-- | .kubernetes/configmap.yaml | 8 | ||||
| -rw-r--r-- | .kubernetes/deployment.yaml | 77 |
2 files changed, 85 insertions, 0 deletions
diff --git a/.kubernetes/configmap.yaml b/.kubernetes/configmap.yaml new file mode 100644 index 0000000..f912c1e --- /dev/null +++ b/.kubernetes/configmap.yaml @@ -0,0 +1,8 @@ +kind: ConfigMap +apiVersion: v1 +metadata: + name: gitcov-configmap + namespace: default +data: + host_dir: /data + target_url: https://cov.submelon.dev
\ No newline at end of file diff --git a/.kubernetes/deployment.yaml b/.kubernetes/deployment.yaml new file mode 100644 index 0000000..5295d83 --- /dev/null +++ b/.kubernetes/deployment.yaml @@ -0,0 +1,77 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: gitcov-deployment + namespace: default + labels: + app: gitcov +spec: + selector: + matchLabels: + app: gitcov + strategy: + type: Recreate + template: + metadata: + labels: + app: gitcov + spec: + containers: + - name: gitcov-container + image: kjhoerr/ao-coverage:latest + resources: + requests: + cpu: 100m + memory: 76Mi + limits: + cpu: 250m + memory: 200Mi + livenessProbe: + httpGet: + port: gitcov-http + path: /v1/health-check + initialDelaySeconds: 5 + readinessProbe: + httpGet: + port: gitcov-http + path: /v1/health-check + initialDelaySeconds: 5 + timeoutSeconds: 2 + ports: + - name: gitcov-http + containerPort: 80 + protocol: TCP + env: + - name: MONGO_DB + valueFrom: + secretKeyRef: + name: cov-secret + key: db_name + - name: MONGO_URI + valueFrom: + secretKeyRef: + name: cov-secret + key: db_uri + - name: TOKEN + valueFrom: + secretKeyRef: + name: cov-secret + key: cov_token + - name: HOST_DIR + valueFrom: + configMapKeyRef: + name: gitcov-configmap + key: host_dir + - name: TARGET_URL + valueFrom: + configMapKeyRef: + name: gitcov-configmap + key: target_url + volumeMounts: + - name: gitcov-repos + mountPath: /data + imagePullPolicy: IfNotPresent + volumes: + - name: gitcov-repos + persistentVolumeClaim: + claimName: gitcov-pvc
\ No newline at end of file |
