Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f80210 commit edbd3b4Copy full SHA for edbd3b4
CICD pipeline/kubedeployment.yml
@@ -0,0 +1,36 @@
1
+kind: Deployment
2
+apiVersion: apps/v1
3
+metadata:
4
+ name: kubeserve
5
+spec:
6
+ replicas: 3
7
+ minReadySeconds: 10 # wait for 45 sec before going to deploy next pod
8
+ strategy:
9
+ type: RollingUpdate
10
+ rollingUpdate:
11
+ maxUnavailable: 1
12
+ maxSurge: 1 # max number of pods to run for the deployment
13
+ selector:
14
+ matchLabels:
15
+ app: kubeserve
16
+ template:
17
+ metadata:
18
19
+ labels:
20
21
+ spec:
22
+ containers:
23
+ - name: app
24
+ image: edu123/myproject:CICD
25
+---
26
+kind: Service
27
+apiVersion: v1
28
29
+ name: kubeserve-svc
30
31
+ type: NodePort
32
+ ports:
33
+ - port: 8080
34
+ targetPort: 8080
35
36
0 commit comments