Skip to content

Commit

Permalink
Yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
olevitt committed Apr 27, 2023
1 parent 81250b0 commit bc4e09c
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
17 changes: 17 additions & 0 deletions kubernetes/premier-deploiement/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: olivier
spec:
replicas: 2
selector:
matchLabels:
app: olivier
template:
metadata:
labels:
app: olivier
spec:
containers:
- name: myapp
image: stefanprodan/podinfo
18 changes: 18 additions & 0 deletions kubernetes/premier-deploiement/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: olivier
labels:
name: olivier
spec:
rules:
- host: fdsfdsf.demointech.insee.io
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: olivier
port:
number: 80
10 changes: 10 additions & 0 deletions kubernetes/premier-deploiement/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: v1
kind: Service
metadata:
name: olivier
spec:
selector:
app: olivier
ports:
- port: 80
targetPort: 9898

0 comments on commit bc4e09c

Please sign in to comment.