Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
this runs a celery worker process in the image. we make the default docker command just list the available `inv` tasks, and we use kubernetes args to specify what `inv` should do inside the image
- Loading branch information
Showing
9 changed files
with
154 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
- name: IN_PRODUCTION | ||
value: 'True' | ||
- name: COMPONENT | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: metadata.labels['component'] | ||
- name: MYSQL_HOST | ||
valueFrom: | ||
secretKeyRef: | ||
name: pyspaceship-mysql | ||
key: host | ||
- name: MYSQL_PORT | ||
valueFrom: | ||
secretKeyRef: | ||
name: pyspaceship-mysql | ||
key: port | ||
- name: MYSQL_USERNAME | ||
valueFrom: | ||
secretKeyRef: | ||
name: pyspaceship-mysql | ||
key: username | ||
- name: MYSQL_PASSWORD | ||
valueFrom: | ||
secretKeyRef: | ||
name: pyspaceship-mysql | ||
key: password | ||
- name: MYSQL_DB | ||
valueFrom: | ||
secretKeyRef: | ||
name: pyspaceship-mysql | ||
key: db | ||
- name: REDIS_HOST | ||
valueFrom: | ||
secretKeyRef: | ||
name: pyspaceship-redis | ||
key: host | ||
- name: REDIS_PORT | ||
valueFrom: | ||
secretKeyRef: | ||
name: pyspaceship-redis | ||
key: port | ||
- name: REDIS_DB | ||
valueFrom: | ||
secretKeyRef: | ||
name: pyspaceship-redis | ||
key: db | ||
- name: SECRET_KEY | ||
valueFrom: | ||
secretKeyRef: | ||
name: pyspaceship-session | ||
key: secret_key | ||
- name: SENDGRID_KEY | ||
valueFrom: | ||
secretKeyRef: | ||
name: pyspaceship-sendgrid | ||
key: secret_key | ||
- name: GOOGLE_CLIENT_ID | ||
valueFrom: | ||
secretKeyRef: | ||
name: pyspaceship-google-oauth | ||
key: client_id | ||
- name: GOOGLE_CLIENT_SECRET | ||
valueFrom: | ||
secretKeyRef: | ||
name: pyspaceship-google-oauth | ||
key: secret | ||
- name: GOOGLE_APPLICATION_CREDENTIALS | ||
value: /srv/pyspaceship/google-app-creds/key.json |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: pyspaceship-web-deployment | ||
labels: | ||
app: pyspaceship | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: pyspaceship | ||
component: web | ||
replicas: {$eval: replicas} | ||
template: | ||
metadata: | ||
labels: | ||
app: pyspaceship | ||
component: web | ||
spec: | ||
containers: | ||
- name: pyspaceship-web | ||
image: {$eval: image} | ||
args: ["run.gunicorn"] | ||
imagePullPolicy: "Always" | ||
env: {$eval: container_environment} | ||
livenessProbe: | ||
httpGet: | ||
path: /health | ||
port: 9876 | ||
volumeMounts: | ||
- name: google-app-creds | ||
mountPath: /srv/pyspaceship/google-app-creds | ||
volumes: | ||
- name: google-app-creds | ||
secret: | ||
secretName: google-app-creds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: pyspaceship-worker-deployment | ||
labels: | ||
app: pyspaceship | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: pyspaceship | ||
component: worker | ||
replicas: {$eval: replicas} | ||
template: | ||
metadata: | ||
labels: | ||
app: pyspaceship | ||
component: worker | ||
spec: | ||
containers: | ||
- name: pyspaceship-worker | ||
image: {$eval: image} | ||
args: ["run.celery-worker"] | ||
imagePullPolicy: "Always" | ||
env: {$eval: container_environment} | ||
volumeMounts: | ||
- name: google-app-creds | ||
mountPath: /srv/pyspaceship/google-app-creds | ||
volumes: | ||
- name: google-app-creds | ||
secret: | ||
secretName: google-app-creds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters