-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.yaml
45 lines (44 loc) · 826 Bytes
/
app.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
apiVersion: v1
kind: Namespace
metadata:
name: sniper-app-system
labels:
env: dev
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: demo-tekton
namespace: sniper-app-system
spec:
replicas: 1
selector:
matchLabels:
app: demo-tekton
template:
metadata:
labels:
app: demo-tekton
version: v1
spec:
containers:
- name: demo-tekton
image: docker.hirisun.com/demo-springboot #会自动引用下面的image tag版本
ports:
- containerPort: 8080
protocol: TCP
name: tcp
---
apiVersion: v1
kind: Service
metadata:
name: demo-tekton-service
namespace: sniper-app-system
spec:
ports:
- name: http
port: 8080
targetPort: 8080
selector:
app: demo-tekton
version: v1