-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workload support update for push-deploy
Signed-off-by: mdgreenwald <[email protected]>
1 parent
a8d38ef
commit e05eea7
Showing
6 changed files
with
221 additions
and
36 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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
kubernetes==11.0.0 | ||
Flask==1.1.1 | ||
Flask==1.1.2 | ||
Flask-API==2.0 | ||
flask-jwt-extended==3.24.1 | ||
gunicorn==20.0.4 |
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,89 @@ | ||
--- | ||
apiVersion: batch/v1beta1 | ||
kind: CronJob | ||
metadata: | ||
name: cronjob-test | ||
labels: | ||
environment: test | ||
spec: | ||
schedule: "*/1 * * * *" | ||
concurrencyPolicy: "Forbid" | ||
failedJobsHistoryLimit: 1 | ||
successfulJobsHistoryLimit: 1 | ||
jobTemplate: | ||
spec: | ||
backoffLimit: 6 | ||
ttlSecondsAfterFinished: 30 | ||
template: | ||
spec: | ||
containers: | ||
- name: busybox | ||
image: busybox:1.24.0 | ||
args: | ||
- /bin/sh | ||
- -c | ||
- date; echo Hello from the Kubernetes cluster | ||
resources: | ||
limits: | ||
cpu: 20m | ||
memory: 32Mi | ||
requests: | ||
cpu: 10m | ||
memory: 16Mi | ||
restartPolicy: OnFailure | ||
|
||
--- | ||
apiVersion: apps/v1 | ||
kind: DaemonSet | ||
metadata: | ||
name: daemonset-test | ||
labels: | ||
environment: test | ||
spec: | ||
selector: | ||
matchLabels: | ||
name: daemonset-test | ||
template: | ||
metadata: | ||
labels: | ||
name: daemonset-test | ||
spec: | ||
containers: | ||
- name: busybox | ||
image: busybox:1.24.0 | ||
command: ['sh', '-c', "until nslookup myservice.$(cat /var/run/secrets/kubernetes.io/serviceaccount/namespace).svc.cluster.local; do echo waiting for myservice; sleep 2; done"] | ||
resources: | ||
limits: | ||
cpu: 20m | ||
memory: 32Mi | ||
requests: | ||
cpu: 10m | ||
memory: 16Mi | ||
|
||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: deployment-test | ||
labels: | ||
environment: test | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: deployment-test | ||
template: | ||
metadata: | ||
labels: | ||
app: deployment-test | ||
spec: | ||
containers: | ||
- name: busybox | ||
image: busybox:1.24.0 | ||
command: ['sh', '-c', "until nslookup myservice.$(cat /var/run/secrets/kubernetes.io/serviceaccount/namespace).svc.cluster.local; do echo waiting for myservice; sleep 2; done"] | ||
resources: | ||
limits: | ||
cpu: 20m | ||
memory: 32Mi | ||
requests: | ||
cpu: 10m | ||
memory: 16Mi |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
|
||
__version__ = '0.0.4' | ||
__version__ = '0.0.5' |