Skip to content
This repository was archived by the owner on Nov 23, 2021. It is now read-only.

Commit 8540e0e

Browse files
authored
Merge pull request #3 from runzexia/add-no-branch-deploy
add no branch deploy file
2 parents 8beeafa + 49b5076 commit 8540e0e

2 files changed

Lines changed: 68 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
labels:
5+
app: kubesphere
6+
component: ks-sample-dev
7+
name: ks-sample-dev
8+
namespace: kubesphere-sample-dev
9+
spec:
10+
ports:
11+
- name: http
12+
port: 8080
13+
protocol: TCP
14+
targetPort: 8080
15+
nodePort: 30861
16+
selector:
17+
app: kubesphere
18+
component: ks-sample-dev
19+
tier: backend
20+
sessionAffinity: None
21+
type: NodePort
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
apiVersion: extensions/v1beta1
2+
kind: Deployment
3+
metadata:
4+
labels:
5+
app: kubesphere
6+
component: ks-sample-dev
7+
tier: backend
8+
name: ks-sample-dev
9+
namespace: kubesphere-sample-dev
10+
spec:
11+
progressDeadlineSeconds: 600
12+
replicas: 1
13+
selector:
14+
matchLabels:
15+
app: kubesphere
16+
component: ks-sample-dev
17+
tier: backend
18+
template:
19+
metadata:
20+
labels:
21+
app: kubesphere
22+
component: ks-sample-dev
23+
tier: backend
24+
spec:
25+
containers:
26+
- image: $REDISTRY/$DOCKERHUB_NAMESPACE/$APP_NAME:SNAPSHOT-$BUILD_NUMBER
27+
imagePullPolicy: Always
28+
name: ks-sample
29+
readinessProbe:
30+
httpGet:
31+
path: /
32+
port: 8080
33+
ports:
34+
- containerPort: 8080
35+
protocol: TCP
36+
resources:
37+
limits:
38+
cpu: 200m
39+
memory: 500Mi
40+
requests:
41+
cpu: 100m
42+
memory: 100Mi
43+
terminationMessagePath: /dev/termination-log
44+
terminationMessagePolicy: File
45+
dnsPolicy: ClusterFirst
46+
restartPolicy: Always
47+
terminationGracePeriodSeconds: 30

0 commit comments

Comments
 (0)