Ajout de la presentation et des manifests de deploiement
This commit is contained in:
46
manifests/fbapp/deployment.yaml
Normal file
46
manifests/fbapp/deployment.yaml
Normal file
@@ -0,0 +1,46 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: fb-app-deployment
|
||||
namespace: fb-app
|
||||
spec:
|
||||
replicas: 3
|
||||
selector:
|
||||
matchLabels:
|
||||
app: fb-app
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: fb-app
|
||||
spec:
|
||||
containers:
|
||||
- name: fb-app
|
||||
image: registry.wanono-corp.com/capgemini/friday-booster-2023/fbapp:1.0.0
|
||||
env:
|
||||
- name: ENV_MESSAGE
|
||||
value: "Mon message"
|
||||
resources:
|
||||
limits:
|
||||
memory: 256Mi
|
||||
cpu: 500m
|
||||
ports:
|
||||
- name: http
|
||||
protocol: TCP
|
||||
containerPort: 8080
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
port: http
|
||||
path: /
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 5
|
||||
successThreshold: 1
|
||||
timeoutSeconds: 5
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
port: http
|
||||
path: /
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 5
|
||||
failureThreshold: 1
|
||||
timeoutSeconds: 5
|
||||
|
||||
4
manifests/fbapp/namespace.yaml
Normal file
4
manifests/fbapp/namespace.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: fb-app
|
||||
37
manifests/fbapp/pod.yaml
Normal file
37
manifests/fbapp/pod.yaml
Normal file
@@ -0,0 +1,37 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: fp-app-pod
|
||||
namespace: fb-app
|
||||
spec:
|
||||
containers:
|
||||
- name: fb-app
|
||||
image: registry.wanono-corp.com/capgemini/friday-booster-2023/fbapp:1.0.0
|
||||
env:
|
||||
- name: ENV_MESSAGE
|
||||
value: "Mon message"
|
||||
resources:
|
||||
limits:
|
||||
memory: 256Mi
|
||||
cpu: 500m
|
||||
ports:
|
||||
- name: http
|
||||
protocol: TCP
|
||||
containerPort: 8080
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
port: http
|
||||
path: /
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 5
|
||||
successThreshold: 1
|
||||
timeoutSeconds: 5
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
port: http
|
||||
path: /
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 5
|
||||
failureThreshold: 1
|
||||
timeoutSeconds: 5
|
||||
|
||||
13
manifests/fbapp/service.yaml
Normal file
13
manifests/fbapp/service.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: fb-app
|
||||
namespace: fb-app
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app: fb-app
|
||||
ports:
|
||||
- name: http
|
||||
port: 8080
|
||||
targetPort: http
|
||||
23
manifests/test/namespaceAndPod.yaml
Normal file
23
manifests/test/namespaceAndPod.yaml
Normal file
@@ -0,0 +1,23 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: test
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: test-pod
|
||||
namespace: test
|
||||
labels:
|
||||
name: test
|
||||
spec:
|
||||
containers:
|
||||
- name: shell-container
|
||||
image: registry.wanono-corp.com/capgemini/friday-booster-2023/proxy-shell:1.0.0
|
||||
command:
|
||||
- sleep
|
||||
- infinity
|
||||
resources:
|
||||
limits:
|
||||
memory: "128Mi"
|
||||
cpu: "500m"
|
||||
Reference in New Issue
Block a user