File tree Expand file tree Collapse file tree 3 files changed +55
-0
lines changed
Expand file tree Collapse file tree 3 files changed +55
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ apiVersion : apps/v1
3+ kind : Deployment
4+ metadata :
5+ name : summer-k8s-deployment
6+ spec :
7+ replicas : 2
8+ selector :
9+ matchLabels :
10+ app : summer-k8s-app
11+ template :
12+ metadata :
13+ labels :
14+ app : summer-k8s-app
15+ spec :
16+ containers :
17+ - name : webserver-simple
18+ image : kostiscodefresh/summer-of-k8s-app:main
19+ imagePullPolicy : Always
20+ ports :
21+ - containerPort : 8080
Original file line number Diff line number Diff line change 1+ kind : Ingress
2+ apiVersion : networking.k8s.io/v1
3+ metadata :
4+ name : summer-k8s-ing
5+ annotations :
6+ kubernetes.io/ingress.class : ambassador
7+
8+ spec :
9+ rules :
10+ - http :
11+ paths :
12+ - path : /demo/
13+ pathType : Prefix
14+ backend :
15+ service :
16+ name : summer-k8s-service
17+ port :
18+ number : 80
19+
Original file line number Diff line number Diff line change 1+ apiVersion : v1
2+ kind : Service
3+ metadata :
4+ name : summer-k8s-service
5+ labels :
6+ app.kubernetes.io/name : " summer-k8s-service"
7+ spec :
8+ type : ClusterIP
9+ selector :
10+ app : summer-k8s-app
11+ ports :
12+ - name : http
13+ protocol : TCP
14+ port : 80
15+ targetPort : 8080
You can’t perform that action at this time.
0 commit comments