Mercurial > code > home > repos > environment
diff deploy.yaml @ 0:3c1bc3bc5a6c
pull out of homeauto/ project, and add skaffold/pipenv
author | drewp@bigasterisk.com |
---|---|
date | Thu, 31 Mar 2022 22:03:43 -0700 |
parents | |
children | 0f532eb91364 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/deploy.yaml Thu Mar 31 22:03:43 2022 -0700 @@ -0,0 +1,39 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: environment +spec: + replicas: 1 + selector: + matchLabels: + app: environment + template: + metadata: + labels: + app: environment + annotations: + prometheus.io/scrape: "true" + spec: + containers: + - name: environment + image: bang5:5000/environment_image + workingDir: /opt + command: + - pipenv + - run + - python + - environment.py + ports: + - containerPort: 8000 +--- +apiVersion: v1 +kind: Service +metadata: + name: environment +spec: + ports: + - {port: 80, targetPort: 8080} + selector: + app: environment + +