mirror of
https://gitlab.com/shouptech/flux.git
synced 2026-02-03 14:49:44 +00:00
Compare commits
3 commits
e10f214f26
...
cbebce1d64
| Author | SHA1 | Date | |
|---|---|---|---|
| cbebce1d64 | |||
| fad85cd8a6 | |||
| 0bc9bf1af7 |
2 changed files with 77 additions and 0 deletions
52
workloads/bankofparents/deploy.yml
Normal file
52
workloads/bankofparents/deploy.yml
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: bankofparents
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: bankofparents
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: bankofparents
|
||||
spec:
|
||||
containers:
|
||||
- image: registry.gitlab.com/shouptech/bankofparents:v0.1
|
||||
imagePullPolicy: IfNotPresent
|
||||
name: bankofparents
|
||||
env:
|
||||
- name: GUNICORN_CMD_ARGS
|
||||
value: "--access-logfile=-"
|
||||
ports:
|
||||
- containerPort: 8000
|
||||
resources:
|
||||
requests:
|
||||
memory: "128Mi"
|
||||
cpu: "10m"
|
||||
limits:
|
||||
memory: "1024Mi"
|
||||
cpu: "1000m"
|
||||
livenessProbe:
|
||||
tcpSocket:
|
||||
port: 8000
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 30
|
||||
timeoutSeconds: 5
|
||||
successThreshold: 1
|
||||
failureThreshold: 1
|
||||
volumeMounts:
|
||||
- name: bankofparents-app
|
||||
mountPath: /app
|
||||
- name: bankofparents-instance
|
||||
mountPath: /instance
|
||||
volumes:
|
||||
- name: bankofparents-app
|
||||
hostPath:
|
||||
path: /opt/bankofparents/app
|
||||
type: Directory
|
||||
- name: bankofparents-instance
|
||||
hostPath:
|
||||
path: /opt/bankofparents/instance
|
||||
type: Directory
|
||||
25
workloads/bankofparents/service.yml
Normal file
25
workloads/bankofparents/service.yml
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
kind: Service
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: bankofparents
|
||||
spec:
|
||||
selector:
|
||||
app: bankofparents
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 8000
|
||||
targetPort: 8000
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1beta1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: bankofparents
|
||||
spec:
|
||||
rules:
|
||||
- host: bank.shoup.io
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
serviceName: bankofparents
|
||||
servicePort: 8000
|
||||
path: /
|
||||
Loading…
Add table
Reference in a new issue