mirror of
https://gitlab.com/shouptech/flux.git
synced 2026-02-03 19:39:43 +00:00
Add config for bankofparents
This commit is contained in:
parent
98e5be5fd9
commit
0bc9bf1af7
2 changed files with 74 additions and 0 deletions
49
workloads/bankofparents/deploy.yml
Normal file
49
workloads/bankofparents/deploy.yml
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
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
|
||||
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