新k8s的skywalking部署

oap的部署文件

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
apiVersion: apps/v1
kind: Deployment
metadata:
name: oap
namespace: skywalking
labels:
app: oap
release: skywalking
spec:
replicas: 1
selector:
matchLabels:
app: oap
release: skywalking
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 25%
maxSurge: 25%
template:
metadata:
labels:
app: oap
release: skywalking
spec:
containers:
- name: oap
image: 172.31.10.118/apache/skywalking-oap-server:8.3.0-es7
imagePullPolicy: IfNotPresent
ports:
- containerPort: 11800
name: grpc
protocol: TCP
- containerPort: 12800
name: rest
protocol: TCP
env:
- name: SW_STORAGE
value: elasticsearch7
- name: SW_STORAGE_ES_CLUSTER_NODES
value: 172.31.10.119:9200
- name: SW_NAMESPACE
value: skywalking
resources: {}

ui的部署文件

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
apiVersion: apps/v1
kind: Deployment
metadata:
name: ui-deployment
namespace: skywalking
labels:
app: ui
spec:
replicas: 1
selector:
matchLabels:
app: ui
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 25%
maxSurge: 25%
template:
metadata:
labels:
app: ui
spec:
containers:
- name: ui
image: 172.31.10.118/apache/skywalking-ui:8.3.0
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8080
name: page
protocol: TCP
env:
- name: SW_OAP_ADDRESS
value: oap:12800
resources: {}

svc的部署文件

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
apiVersion: v1
kind: Service
metadata:
name: oap
namespace: skywalking
labels:
app: skywalking
component: oap
spec:
type: ClusterIP
ports:
- name: http
port: 12800
targetPort: 12800
protocol: TCP
- name: grpc
port: 11800
targetPort: 11800
protocol: TCP
selector:
app: oap
release: skywalking
---
apiVersion: v1
kind: Service
metadata:
name: ui
namespace: skywalking
labels:
app: skywalking
component: ui
spec:
type: NodePort
ports:
- name: http
port: 8080
targetPort: 8080
nodePort: 31234
protocol: TCP
selector:
app: ui