File tree Expand file tree Collapse file tree 3 files changed +17
-4
lines changed Expand file tree Collapse file tree 3 files changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,12 @@ kind: Deployment
33# metadata
44metadata :
55 name : spring-kotlin-app-deployment
6+ namespace : spring-kotlin-app
67 labels :
8+ name : spring-kotlin-app
79# specification
810spec :
9- replicas : 6
11+ replicas : 3
1012 template :
1113 # template has its own metadata
1214 metadata :
Original file line number Diff line number Diff line change @@ -2,14 +2,22 @@ apiVersion: networking.k8s.io/v1
22kind : Ingress
33metadata :
44 name : app-ingress
5+ namespace : spring-kotlin-app
56 annotations :
7+ kubernetes.io/ingress.class : " nginx"
68 nginx.ingress.kubernetes.io/rewrite-target : /
79spec :
10+ selector :
11+ name : spring-kotlin-app
12+ tls :
13+ - hosts :
14+ - marcel.test
15+ secretName : marcel-tls-secret
816 rules :
9- - host : spring-kotlin.com
17+ - host : spring-kotlin-app .com
1018 http :
1119 paths :
12- - path : /app
20+ - path : /
1321 pathType : Prefix
1422 backend :
1523 service :
Original file line number Diff line number Diff line change @@ -3,11 +3,14 @@ kind: Service
33# metadata
44metadata :
55 name : spring-kotlin-app-service
6+ namespace : spring-kotlin-app
67# specification
78spec :
9+ type : LoadBalancer
810 selector :
911 name : spring-kotlin-app
1012 ports :
11- - protocol : TCP
13+ - nodePort : 30406
1214 port : 80
15+ protocol : TCP
1316 targetPort : 8080
You can’t perform that action at this time.
0 commit comments