change some
This commit is contained in:
1 parent
18012fcec0
commit
51283ffa14
14 files changed
+753
-1
No files matched your search
@@ -0,0 +1,33 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: main-server
|
||||
namespace: online-back
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: main-server
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: main-server
|
||||
spec:
|
||||
containers:
|
||||
- name: main-server
|
||||
image: main-app:k8s-lesson
|
||||
imagePullPolicy: IfNotPresent
|
||||
ports:
|
||||
- containerPort: 5050
|
||||
readinessProbe:
|
||||
tcpSocket:
|
||||
port: 5050
|
||||
initialDelaySeconds: 3
|
||||
periodSeconds: 5
|
||||
volumeMounts:
|
||||
- name: public-storage
|
||||
mountPath: /app/public
|
||||
volumes:
|
||||
- name: public-storage
|
||||
persistentVolumeClaim:
|
||||
claimName: main-app-public-pvc
|
||||
Reference in new issue
Block a user