First configuration for kubernetes learning or prototype

This commit is contained in:
Florian RICHER 2025-03-01 13:38:26 +01:00
parent 5e0008b02f
commit 25b17550ea
Signed by: florian.richer
GPG key ID: C73D37CBED7BFC77
6 changed files with 145 additions and 0 deletions

21
nginx/deployment.yaml Normal file
View file

@ -0,0 +1,21 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
labels:
app: nginx
spec:
replicas: 2
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:1.14.2
ports:
- containerPort: 80