-
Notifications
You must be signed in to change notification settings - Fork 0
/
kubernetes.yml
87 lines (87 loc) · 2.22 KB
/
kubernetes.yml
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
---
apiVersion: "v1"
kind: "ServiceAccount"
metadata:
annotations:
app.dekorate.io/commit-id: "<<unknown>>"
app.dekorate.io/vcs-url: "<<unknown>>"
labels:
app.kubernetes.io/name: "demo-gateway"
app.kubernetes.io/version: "0.0.1-SNAPSHOT"
name: "demo-gateway"
---
apiVersion: "v1"
kind: "Service"
metadata:
annotations:
app.dekorate.io/vcs-url: "<<unknown>>"
app.dekorate.io/commit-id: "<<unknown>>"
labels:
app.kubernetes.io/name: "demo-gateway"
app.kubernetes.io/version: "0.0.1-SNAPSHOT"
name: "demo-gateway"
spec:
ports:
- name: "http"
port: 8080
targetPort: 8080
selector:
app.kubernetes.io/name: "demo-gateway"
app.kubernetes.io/version: "0.0.1-SNAPSHOT"
type: "ClusterIP"
---
apiVersion: "rbac.authorization.k8s.io/v1"
kind: "RoleBinding"
metadata:
annotations:
app.dekorate.io/commit-id: "<<unknown>>"
app.dekorate.io/vcs-url: "<<unknown>>"
labels:
app.kubernetes.io/name: "demo-gateway"
app.kubernetes.io/version: "0.0.1-SNAPSHOT"
name: "demo-gateway:view"
roleRef:
kind: "ClusterRole"
apiGroup: "rbac.authorization.k8s.io"
name: "view"
subjects:
- kind: "ServiceAccount"
name: "demo-gateway"
---
apiVersion: "apps/v1"
kind: "Deployment"
metadata:
annotations:
app.dekorate.io/commit-id: "<<unknown>>"
app.dekorate.io/vcs-url: "<<unknown>>"
labels:
app.kubernetes.io/name: "demo-gateway"
app.kubernetes.io/version: "0.0.1-SNAPSHOT"
name: "demo-gateway"
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: "demo-gateway"
app.kubernetes.io/version: "0.0.1-SNAPSHOT"
template:
metadata:
annotations:
app.dekorate.io/commit-id: "<<unknown>>"
app.dekorate.io/vcs-url: "<<unknown>>"
labels:
app.kubernetes.io/name: "demo-gateway"
app.kubernetes.io/version: "0.0.1-SNAPSHOT"
spec:
containers:
- env:
- name: "KUBERNETES_NAMESPACE"
valueFrom:
fieldRef:
fieldPath: "metadata.namespace"
- name: SPRING_PROFILES_ACTIVE
value: k8s
image: "fsalikutluk/demo-gateway:0.0.1-SNAPSHOT"
imagePullPolicy: "IfNotPresent"
name: "demo-gateway"
serviceAccount: "demo-gateway"