Added deployments files

This commit is contained in:
Blendman974 committed 2023-06-09 09:09:30 +04:00
1 parent afe92d4ad8
commit a54cf5f948
3 files changed
+50

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
kind: Deployment
apiVersion: apps/v1
metadata:
name: helloworld
labels:
app: helloworld
spec:
replicas: 1
selector:
matchLabels:
app: helloworld
template:
metadata:
labels:
app: helloworld
spec:
containers:
- name: helloworld
image: registry.undefined-dev.fr/k8s/helloworld:latest
ports:
- name: web
containerPort: 80
+16
View File
@@ -0,0 +1,16 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: helloworld
spec:
rules:
- host: hello.k8s.edge
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: helloword
port:
name: web
+11
View File
@@ -0,0 +1,11 @@
apiVersion: v1
kind: Service
metadata:
name: helloworld
spec:
ports:
- name: web
port: 80
targetPort: web
selector:
app: helloworld