├── 6 ├── 6.0.0-GA │ ├── namespace.yml │ ├── elasticsearch │ │ ├── 01-storageclass.yml │ │ ├── 02-service.yml │ │ └── 03-statefulset.yml │ ├── istio │ │ ├── 02-skywalingadapter.yml │ │ └── 03-operator_cfg.yml │ ├── oap │ │ ├── 02-service.yml │ │ ├── 00-rbac.yml │ │ ├── 03-deployment.yml │ │ └── 01-config.yml │ └── ui │ │ ├── 01-service.yml │ │ └── 02-deployment.yml ├── 6.0.0-alpha │ ├── namespace.yml │ ├── elasticsearch │ │ ├── 01-storageclass.yml │ │ ├── 02-service.yml │ │ └── 03-statefulset.yml │ ├── istio │ │ ├── 02-skywalingadapter.yml │ │ └── 03-operator_cfg.yml │ ├── oap │ │ ├── 02-service.yml │ │ ├── 00-rbac.yml │ │ ├── 03-deployment.yml │ │ └── 01-config.yml │ └── ui │ │ ├── 01-service.yml │ │ └── 02-deployment.yml └── 6.0.0-beta │ ├── namespace.yml │ ├── elasticsearch │ ├── 01-storageclass.yml │ ├── 02-service.yml │ └── 03-statefulset.yml │ ├── istio │ ├── 02-skywalingadapter.yml │ └── 03-operator_cfg.yml │ ├── oap │ ├── 02-service.yml │ ├── 00-rbac.yml │ ├── 03-deployment.yml │ └── 01-config.yml │ └── ui │ ├── 01-service.yml │ └── 02-deployment.yml ├── .gitignore ├── smd ├── namespace.yml ├── elasticsearch │ ├── 01-storageclass.yml │ ├── 02-service.yml │ └── 03-statefulset.yml ├── istio │ ├── 02-skywalingadapter.yml │ └── 03-operator_cfg.yml ├── oap │ ├── 02-service.yml │ ├── 00-rbac.yml │ ├── 03-deployment.yml │ └── 01-config.yml └── ui │ ├── 01-service.yml │ └── 02-deployment.yml └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | *~ 3 | -------------------------------------------------------------------------------- /smd/namespace.yml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: skywalking 5 | labels: 6 | name: skywalking -------------------------------------------------------------------------------- /6/6.0.0-GA/namespace.yml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: skywalking 5 | labels: 6 | name: skywalking -------------------------------------------------------------------------------- /6/6.0.0-alpha/namespace.yml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: skywalking 5 | labels: 6 | name: skywalking 7 | -------------------------------------------------------------------------------- /6/6.0.0-beta/namespace.yml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: skywalking 5 | labels: 6 | name: skywalking 7 | -------------------------------------------------------------------------------- /smd/elasticsearch/01-storageclass.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | kind: StorageClass 18 | apiVersion: storage.k8s.io/v1 19 | metadata: 20 | name: ssd 21 | provisioner: kubernetes.io/gce-pd 22 | parameters: 23 | type: pd-ssd 24 | 25 | -------------------------------------------------------------------------------- /6/6.0.0-GA/elasticsearch/01-storageclass.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | kind: StorageClass 18 | apiVersion: storage.k8s.io/v1 19 | metadata: 20 | name: ssd 21 | provisioner: kubernetes.io/gce-pd 22 | parameters: 23 | type: pd-ssd 24 | 25 | -------------------------------------------------------------------------------- /6/6.0.0-alpha/elasticsearch/01-storageclass.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | kind: StorageClass 18 | apiVersion: storage.k8s.io/v1 19 | metadata: 20 | name: ssd 21 | provisioner: kubernetes.io/gce-pd 22 | parameters: 23 | type: pd-ssd 24 | 25 | -------------------------------------------------------------------------------- /6/6.0.0-beta/elasticsearch/01-storageclass.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | kind: StorageClass 18 | apiVersion: storage.k8s.io/v1 19 | metadata: 20 | name: ssd 21 | provisioner: kubernetes.io/gce-pd 22 | parameters: 23 | type: pd-ssd 24 | 25 | -------------------------------------------------------------------------------- /smd/istio/02-skywalingadapter.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | apiVersion: "config.istio.io/v1alpha2" 18 | kind: adapter 19 | metadata: 20 | name: swadapter 21 | namespace: istio-system 22 | spec: 23 | description: 24 | session_based: false 25 | templates: 26 | - metric 27 | -------------------------------------------------------------------------------- /6/6.0.0-GA/istio/02-skywalingadapter.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | apiVersion: "config.istio.io/v1alpha2" 18 | kind: adapter 19 | metadata: 20 | name: swadapter 21 | namespace: istio-system 22 | spec: 23 | description: 24 | session_based: false 25 | templates: 26 | - metric 27 | -------------------------------------------------------------------------------- /6/6.0.0-beta/istio/02-skywalingadapter.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | apiVersion: "config.istio.io/v1alpha2" 18 | kind: adapter 19 | metadata: 20 | name: swadapter 21 | namespace: istio-system 22 | spec: 23 | description: 24 | session_based: false 25 | templates: 26 | - metric 27 | -------------------------------------------------------------------------------- /6/6.0.0-alpha/istio/02-skywalingadapter.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | apiVersion: "config.istio.io/v1alpha2" 18 | kind: adapter 19 | metadata: 20 | name: swadapter 21 | namespace: istio-system 22 | spec: 23 | description: 24 | session_based: false 25 | templates: 26 | - metric 27 | -------------------------------------------------------------------------------- /smd/oap/02-service.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | apiVersion: v1 18 | kind: Service 19 | metadata: 20 | name: oap 21 | namespace: skywalking 22 | labels: 23 | service: oap 24 | spec: 25 | ports: 26 | - port: 12800 27 | name: rest 28 | - port: 11800 29 | name: grpc 30 | selector: 31 | app: oap -------------------------------------------------------------------------------- /6/6.0.0-GA/oap/02-service.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | apiVersion: v1 18 | kind: Service 19 | metadata: 20 | name: oap 21 | namespace: skywalking 22 | labels: 23 | service: oap 24 | spec: 25 | ports: 26 | - port: 12800 27 | name: rest 28 | - port: 11800 29 | name: grpc 30 | selector: 31 | app: oap -------------------------------------------------------------------------------- /smd/ui/01-service.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | apiVersion: v1 18 | kind: Service 19 | metadata: 20 | name: ui 21 | namespace: skywalking 22 | labels: 23 | service: ui 24 | spec: 25 | ports: 26 | - port: 80 27 | name: page 28 | targetPort: page 29 | type: LoadBalancer 30 | selector: 31 | app: ui -------------------------------------------------------------------------------- /6/6.0.0-GA/ui/01-service.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | apiVersion: v1 18 | kind: Service 19 | metadata: 20 | name: ui 21 | namespace: skywalking 22 | labels: 23 | service: ui 24 | spec: 25 | ports: 26 | - port: 80 27 | name: page 28 | targetPort: page 29 | type: LoadBalancer 30 | selector: 31 | app: ui -------------------------------------------------------------------------------- /6/6.0.0-alpha/oap/02-service.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | apiVersion: v1 18 | kind: Service 19 | metadata: 20 | name: oap 21 | namespace: skywalking 22 | labels: 23 | service: oap 24 | spec: 25 | ports: 26 | - port: 12800 27 | name: rest 28 | - port: 11800 29 | name: grpc 30 | selector: 31 | app: oap -------------------------------------------------------------------------------- /6/6.0.0-beta/oap/02-service.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | apiVersion: v1 18 | kind: Service 19 | metadata: 20 | name: oap 21 | namespace: skywalking 22 | labels: 23 | service: oap 24 | spec: 25 | ports: 26 | - port: 12800 27 | name: rest 28 | - port: 11800 29 | name: grpc 30 | selector: 31 | app: oap -------------------------------------------------------------------------------- /6/6.0.0-alpha/ui/01-service.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | apiVersion: v1 18 | kind: Service 19 | metadata: 20 | name: ui 21 | namespace: skywalking 22 | labels: 23 | service: ui 24 | spec: 25 | ports: 26 | - port: 80 27 | name: page 28 | targetPort: page 29 | type: LoadBalancer 30 | selector: 31 | app: ui -------------------------------------------------------------------------------- /6/6.0.0-beta/ui/01-service.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | apiVersion: v1 18 | kind: Service 19 | metadata: 20 | name: ui 21 | namespace: skywalking 22 | labels: 23 | service: ui 24 | spec: 25 | ports: 26 | - port: 80 27 | name: page 28 | targetPort: page 29 | type: LoadBalancer 30 | selector: 31 | app: ui -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Apache SkyWalking Kubernetes 2 | ========== 3 | 4 | # Deploy SkyWalking backend to Kubernetes cluster 5 | 6 | To install and configure skywalking in a Kubernetes cluster, follow these instructions. 7 | 8 | ## Prerequisites 9 | 10 | Please promise the `skywalking` namespace existed in the cluster, otherwise, create a new one. 11 | 12 | `kubectl apply -f namespace.yml` 13 | 14 | ## Deploy Elasticsearch 15 | 16 | Use `kubectl apply -f ` with the scripts in `elasticsearch` to deploy elasticsearch servers 17 | in the cluster. 18 | 19 | > `01-storageclass.yml` assume to use GKE as the kubernetes provisioner. You could fix it according 20 | to your kubernetes environment. 21 | 22 | ## Deploy OAP server 23 | 24 | Use `kubectl apply -f ` with the scripts in `oap` to deploy oap server 25 | in the cluster. 26 | 27 | ## Deploy UI server 28 | 29 | Use `kubectl apply -f ` with the scripts in `ui` to deploy oap server 30 | in the cluster. 31 | 32 | # Setup Istio to send metric to oap 33 | 34 | ## Prerequisites 35 | 36 | Istio should be installed in kubernetes cluster. 37 | 38 | ## Setup Istio to send metric to oap 39 | 40 | Use `kubectl apply -f ` with the scripts in `istio` to setup. 41 | -------------------------------------------------------------------------------- /smd/elasticsearch/02-service.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | apiVersion: v1 18 | kind: Service 19 | metadata: 20 | name: elasticsearch 21 | namespace: skywalking 22 | labels: 23 | service: elasticsearch 24 | spec: 25 | clusterIP: None 26 | ports: 27 | - port: 9200 28 | name: serving 29 | - port: 9300 30 | name: node-to-node 31 | selector: 32 | service: elasticsearch -------------------------------------------------------------------------------- /6/6.0.0-GA/elasticsearch/02-service.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | apiVersion: v1 18 | kind: Service 19 | metadata: 20 | name: elasticsearch 21 | namespace: skywalking 22 | labels: 23 | service: elasticsearch 24 | spec: 25 | clusterIP: None 26 | ports: 27 | - port: 9200 28 | name: serving 29 | - port: 9300 30 | name: node-to-node 31 | selector: 32 | service: elasticsearch -------------------------------------------------------------------------------- /6/6.0.0-alpha/elasticsearch/02-service.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | apiVersion: v1 18 | kind: Service 19 | metadata: 20 | name: elasticsearch 21 | namespace: skywalking 22 | labels: 23 | service: elasticsearch 24 | spec: 25 | clusterIP: None 26 | ports: 27 | - port: 9200 28 | name: serving 29 | - port: 9300 30 | name: node-to-node 31 | selector: 32 | service: elasticsearch -------------------------------------------------------------------------------- /6/6.0.0-beta/elasticsearch/02-service.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | apiVersion: v1 18 | kind: Service 19 | metadata: 20 | name: elasticsearch 21 | namespace: skywalking 22 | labels: 23 | service: elasticsearch 24 | spec: 25 | clusterIP: None 26 | ports: 27 | - port: 9200 28 | name: serving 29 | - port: 9300 30 | name: node-to-node 31 | selector: 32 | service: elasticsearch -------------------------------------------------------------------------------- /6/6.0.0-GA/ui/02-deployment.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | apiVersion: apps/v1 18 | kind: Deployment 19 | metadata: 20 | name: ui-deployment 21 | namespace: skywalking 22 | labels: 23 | app: ui 24 | spec: 25 | replicas: 1 26 | selector: 27 | matchLabels: 28 | app: ui 29 | template: 30 | metadata: 31 | labels: 32 | app: ui 33 | spec: 34 | containers: 35 | - name: ui 36 | image: skywalking/ui:6.0.0-GA 37 | ports: 38 | - containerPort: 8080 39 | name: page 40 | resources: 41 | requests: 42 | memory: 1Gi 43 | limits: 44 | memory: 2Gi 45 | env: 46 | - name: collector.ribbon.listOfServers 47 | value: oap:12800 48 | -------------------------------------------------------------------------------- /smd/oap/00-rbac.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | 18 | apiVersion: v1 19 | kind: ServiceAccount 20 | metadata: 21 | name: skywalking-oap 22 | namespace: skywalking 23 | 24 | --- 25 | 26 | apiVersion: rbac.authorization.k8s.io/v1 27 | kind: RoleBinding 28 | metadata: 29 | name: skywalking-oap 30 | namespace: skywalking 31 | roleRef: 32 | apiGroup: rbac.authorization.k8s.io 33 | kind: Role 34 | name: skywalking-oap 35 | subjects: 36 | - kind: ServiceAccount 37 | name: skywalking-oap 38 | namespace: skywalking 39 | 40 | --- 41 | 42 | kind: Role 43 | apiVersion: rbac.authorization.k8s.io/v1 44 | metadata: 45 | namespace: skywalking 46 | name: skywalking-oap 47 | rules: 48 | - apiGroups: [""] 49 | resources: ["pods"] 50 | verbs: ["get", "watch", "list"] -------------------------------------------------------------------------------- /6/6.0.0-GA/oap/00-rbac.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | 18 | apiVersion: v1 19 | kind: ServiceAccount 20 | metadata: 21 | name: skywalking-oap 22 | namespace: skywalking 23 | 24 | --- 25 | 26 | apiVersion: rbac.authorization.k8s.io/v1 27 | kind: RoleBinding 28 | metadata: 29 | name: skywalking-oap 30 | namespace: skywalking 31 | roleRef: 32 | apiGroup: rbac.authorization.k8s.io 33 | kind: Role 34 | name: skywalking-oap 35 | subjects: 36 | - kind: ServiceAccount 37 | name: skywalking-oap 38 | namespace: skywalking 39 | 40 | --- 41 | 42 | kind: Role 43 | apiVersion: rbac.authorization.k8s.io/v1 44 | metadata: 45 | namespace: skywalking 46 | name: skywalking-oap 47 | rules: 48 | - apiGroups: [""] 49 | resources: ["pods"] 50 | verbs: ["get", "watch", "list"] -------------------------------------------------------------------------------- /6/6.0.0-beta/oap/00-rbac.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | 18 | apiVersion: v1 19 | kind: ServiceAccount 20 | metadata: 21 | name: skywalking-oap 22 | namespace: skywalking 23 | 24 | --- 25 | 26 | apiVersion: rbac.authorization.k8s.io/v1 27 | kind: RoleBinding 28 | metadata: 29 | name: skywalking-oap 30 | namespace: skywalking 31 | roleRef: 32 | apiGroup: rbac.authorization.k8s.io 33 | kind: Role 34 | name: skywalking-oap 35 | subjects: 36 | - kind: ServiceAccount 37 | name: skywalking-oap 38 | namespace: skywalking 39 | 40 | --- 41 | 42 | kind: Role 43 | apiVersion: rbac.authorization.k8s.io/v1 44 | metadata: 45 | namespace: skywalking 46 | name: skywalking-oap 47 | rules: 48 | - apiGroups: [""] 49 | resources: ["pods"] 50 | verbs: ["get", "watch", "list"] -------------------------------------------------------------------------------- /6/6.0.0-beta/ui/02-deployment.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | apiVersion: apps/v1 18 | kind: Deployment 19 | metadata: 20 | name: ui-deployment 21 | namespace: skywalking 22 | labels: 23 | app: ui 24 | spec: 25 | replicas: 1 26 | selector: 27 | matchLabels: 28 | app: ui 29 | template: 30 | metadata: 31 | labels: 32 | app: ui 33 | spec: 34 | containers: 35 | - name: ui 36 | image: skywalking/ui:6.0.0-beta 37 | ports: 38 | - containerPort: 8080 39 | name: page 40 | resources: 41 | requests: 42 | memory: 1Gi 43 | limits: 44 | memory: 2Gi 45 | env: 46 | - name: collector.ribbon.listOfServers 47 | value: oap:12800 48 | -------------------------------------------------------------------------------- /6/6.0.0-alpha/oap/00-rbac.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | 18 | apiVersion: v1 19 | kind: ServiceAccount 20 | metadata: 21 | name: skywalking-oap 22 | namespace: skywalking 23 | 24 | --- 25 | 26 | apiVersion: rbac.authorization.k8s.io/v1 27 | kind: RoleBinding 28 | metadata: 29 | name: skywalking-oap 30 | namespace: skywalking 31 | roleRef: 32 | apiGroup: rbac.authorization.k8s.io 33 | kind: Role 34 | name: skywalking-oap 35 | subjects: 36 | - kind: ServiceAccount 37 | name: skywalking-oap 38 | namespace: skywalking 39 | 40 | --- 41 | 42 | kind: Role 43 | apiVersion: rbac.authorization.k8s.io/v1 44 | metadata: 45 | namespace: skywalking 46 | name: skywalking-oap 47 | rules: 48 | - apiGroups: [""] 49 | resources: ["pods"] 50 | verbs: ["get", "watch", "list"] -------------------------------------------------------------------------------- /6/6.0.0-alpha/ui/02-deployment.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | apiVersion: apps/v1 18 | kind: Deployment 19 | metadata: 20 | name: ui-deployment 21 | namespace: skywalking 22 | labels: 23 | app: ui 24 | spec: 25 | replicas: 1 26 | selector: 27 | matchLabels: 28 | app: ui 29 | template: 30 | metadata: 31 | labels: 32 | app: ui 33 | spec: 34 | containers: 35 | - name: ui 36 | image: skywalking/ui:6.0.0-alpha 37 | ports: 38 | - containerPort: 8080 39 | name: page 40 | resources: 41 | requests: 42 | memory: 1Gi 43 | limits: 44 | memory: 2Gi 45 | env: 46 | - name: collector.ribbon.listOfServers 47 | value: oap:12800 48 | -------------------------------------------------------------------------------- /smd/ui/02-deployment.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | apiVersion: apps/v1 18 | kind: Deployment 19 | metadata: 20 | name: ui-deployment 21 | namespace: skywalking 22 | labels: 23 | app: ui 24 | spec: 25 | replicas: 1 26 | selector: 27 | matchLabels: 28 | app: ui 29 | template: 30 | metadata: 31 | labels: 32 | app: ui 33 | spec: 34 | containers: 35 | - name: ui 36 | image: docker.io/smddemo/ui:c0c54a08c950ed112e7825dfac857203870e2f05 37 | ports: 38 | - containerPort: 8080 39 | name: page 40 | resources: 41 | requests: 42 | memory: 1Gi 43 | limits: 44 | memory: 2Gi 45 | env: 46 | - name: collector.ribbon.listOfServers 47 | value: oap:12800 48 | -------------------------------------------------------------------------------- /6/6.0.0-GA/oap/03-deployment.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | apiVersion: apps/v1 18 | kind: Deployment 19 | metadata: 20 | name: oap-deployment 21 | namespace: skywalking 22 | labels: 23 | app: oap 24 | spec: 25 | replicas: 3 26 | selector: 27 | matchLabels: 28 | app: oap 29 | template: 30 | metadata: 31 | labels: 32 | app: oap 33 | spec: 34 | serviceAccountName: skywalking-oap 35 | containers: 36 | - name: oap 37 | image: skywalking/oap:6.0.0-GA 38 | ports: 39 | - containerPort: 11800 40 | name: grpc 41 | - containerPort: 12800 42 | name: rest 43 | resources: 44 | requests: 45 | memory: 1Gi 46 | limits: 47 | memory: 2Gi 48 | env: 49 | - name: JAVA_OPTS 50 | value: -Xms256M -Xmx512M 51 | - name: SKYWALKING_COLLECTOR_UID 52 | valueFrom: 53 | fieldRef: 54 | fieldPath: metadata.uid 55 | volumeMounts: 56 | - name: config 57 | mountPath: /skywalking/config 58 | volumes: 59 | - name: config 60 | configMap: 61 | name: oap-config -------------------------------------------------------------------------------- /6/6.0.0-beta/oap/03-deployment.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | apiVersion: apps/v1 18 | kind: Deployment 19 | metadata: 20 | name: oap-deployment 21 | namespace: skywalking 22 | labels: 23 | app: oap 24 | spec: 25 | replicas: 3 26 | selector: 27 | matchLabels: 28 | app: oap 29 | template: 30 | metadata: 31 | labels: 32 | app: oap 33 | spec: 34 | serviceAccountName: skywalking-oap 35 | containers: 36 | - name: oap 37 | image: skywalking/oap:6.0.0-beta 38 | ports: 39 | - containerPort: 11800 40 | name: grpc 41 | - containerPort: 12800 42 | name: rest 43 | resources: 44 | requests: 45 | memory: 1Gi 46 | limits: 47 | memory: 2Gi 48 | env: 49 | - name: JAVA_OPTS 50 | value: -Xms256M -Xmx512M 51 | - name: SKYWALKING_COLLECTOR_UID 52 | valueFrom: 53 | fieldRef: 54 | fieldPath: metadata.uid 55 | volumeMounts: 56 | - name: config 57 | mountPath: /skywalking/config 58 | volumes: 59 | - name: config 60 | configMap: 61 | name: oap-config -------------------------------------------------------------------------------- /6/6.0.0-alpha/oap/03-deployment.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | apiVersion: apps/v1 18 | kind: Deployment 19 | metadata: 20 | name: oap-deployment 21 | namespace: skywalking 22 | labels: 23 | app: oap 24 | spec: 25 | replicas: 3 26 | selector: 27 | matchLabels: 28 | app: oap 29 | template: 30 | metadata: 31 | labels: 32 | app: oap 33 | spec: 34 | serviceAccountName: skywalking-oap 35 | containers: 36 | - name: oap 37 | image: skywalking/oap:6.0.0-alpha 38 | ports: 39 | - containerPort: 11800 40 | name: grpc 41 | - containerPort: 12800 42 | name: rest 43 | resources: 44 | requests: 45 | memory: 1Gi 46 | limits: 47 | memory: 2Gi 48 | env: 49 | - name: JAVA_OPTS 50 | value: -Xms256M -Xmx512M 51 | - name: SKYWALKING_COLLECTOR_UID 52 | valueFrom: 53 | fieldRef: 54 | fieldPath: metadata.uid 55 | volumeMounts: 56 | - name: config 57 | mountPath: /skywalking/config 58 | volumes: 59 | - name: config 60 | configMap: 61 | name: oap-config -------------------------------------------------------------------------------- /smd/oap/03-deployment.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | apiVersion: apps/v1 18 | kind: Deployment 19 | metadata: 20 | name: oap-deployment 21 | namespace: skywalking 22 | labels: 23 | app: oap 24 | spec: 25 | replicas: 1 26 | selector: 27 | matchLabels: 28 | app: oap 29 | template: 30 | metadata: 31 | labels: 32 | app: oap 33 | spec: 34 | serviceAccountName: skywalking-oap 35 | containers: 36 | - name: oap 37 | image: docker.io/smddemo/oap:c0c54a08c950ed112e7825dfac857203870e2f05 38 | ports: 39 | - containerPort: 11800 40 | name: grpc 41 | - containerPort: 12800 42 | name: rest 43 | resources: 44 | requests: 45 | memory: 1Gi 46 | limits: 47 | memory: 2Gi 48 | env: 49 | - name: JAVA_OPTS 50 | value: -Xms256M -Xmx512M 51 | - name: SKYWALKING_COLLECTOR_UID 52 | valueFrom: 53 | fieldRef: 54 | fieldPath: metadata.uid 55 | volumeMounts: 56 | - name: config 57 | mountPath: /skywalking/config 58 | volumes: 59 | - name: config 60 | configMap: 61 | name: oap-config -------------------------------------------------------------------------------- /smd/istio/03-operator_cfg.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | apiVersion: "config.istio.io/v1alpha2" 18 | kind: handler 19 | metadata: 20 | name: sw 21 | namespace: istio-system 22 | spec: 23 | adapter: swadapter 24 | connection: 25 | address: "oap.skywalking.svc.cluster.local:11800" 26 | --- 27 | 28 | # instance for template metric 29 | apiVersion: "config.istio.io/v1alpha2" 30 | kind: instance 31 | metadata: 32 | name: swmetric 33 | namespace: istio-system 34 | spec: 35 | template: metric 36 | params: 37 | value: request.size | 0 38 | dimensions: 39 | sourceService: source.workload.name | "" 40 | sourceNamespace: source.workload.namespace | "" 41 | sourceUID: source.uid | "" 42 | destinationService: destination.workload.name | "" 43 | destinationNamespace: destination.workload.namespace | "" 44 | destinationUID: destination.uid | "" 45 | requestMethod: request.method | "" 46 | requestPath: request.path | "" 47 | requestScheme: request.scheme | "" 48 | requestTime: request.time 49 | responseTime: response.time 50 | responseCode: response.code | 200 51 | reporter: conditional((context.reporter.kind | "inbound") == "outbound", "source", "destination") 52 | apiProtocol: api.protocol | "" 53 | --- 54 | 55 | # rule to dispatch to handler sw 56 | apiVersion: "config.istio.io/v1alpha2" 57 | kind: rule 58 | metadata: 59 | name: swmetric-rule 60 | namespace: istio-system 61 | spec: 62 | actions: 63 | - handler: sw.istio-system 64 | instances: 65 | - swmetric 66 | -------------------------------------------------------------------------------- /6/6.0.0-GA/istio/03-operator_cfg.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | apiVersion: "config.istio.io/v1alpha2" 18 | kind: handler 19 | metadata: 20 | name: sw 21 | namespace: istio-system 22 | spec: 23 | adapter: swadapter 24 | connection: 25 | address: "oap.skywalking.svc.cluster.local:11800" 26 | --- 27 | 28 | # instance for template metric 29 | apiVersion: "config.istio.io/v1alpha2" 30 | kind: instance 31 | metadata: 32 | name: swmetric 33 | namespace: istio-system 34 | spec: 35 | template: metric 36 | params: 37 | value: request.size | 0 38 | dimensions: 39 | sourceService: source.workload.name | "" 40 | sourceNamespace: source.workload.namespace | "" 41 | sourceUID: source.uid | "" 42 | destinationService: destination.workload.name | "" 43 | destinationNamespace: destination.workload.namespace | "" 44 | destinationUID: destination.uid | "" 45 | requestMethod: request.method | "" 46 | requestPath: request.path | "" 47 | requestScheme: request.scheme | "" 48 | requestTime: request.time 49 | responseTime: response.time 50 | responseCode: response.code | 200 51 | reporter: conditional((context.reporter.kind | "inbound") == "outbound", "source", "destination") 52 | apiProtocol: api.protocol | "" 53 | --- 54 | 55 | # rule to dispatch to handler sw 56 | apiVersion: "config.istio.io/v1alpha2" 57 | kind: rule 58 | metadata: 59 | name: swmetric-rule 60 | namespace: istio-system 61 | spec: 62 | actions: 63 | - handler: sw.istio-system 64 | instances: 65 | - swmetric 66 | -------------------------------------------------------------------------------- /6/6.0.0-alpha/istio/03-operator_cfg.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | apiVersion: "config.istio.io/v1alpha2" 18 | kind: handler 19 | metadata: 20 | name: sw 21 | namespace: istio-system 22 | spec: 23 | adapter: swadapter 24 | connection: 25 | address: "oap.skywalking.svc.cluster.local:11800" 26 | --- 27 | 28 | # instance for template metric 29 | apiVersion: "config.istio.io/v1alpha2" 30 | kind: instance 31 | metadata: 32 | name: swmetric 33 | namespace: istio-system 34 | spec: 35 | template: metric 36 | params: 37 | value: request.size | 0 38 | dimensions: 39 | sourceService: source.workload.name | "" 40 | sourceNamespace: source.workload.namespace | "" 41 | sourceUID: source.uid | "" 42 | destinationService: destination.workload.name | "" 43 | destinationNamespace: destination.workload.namespace | "" 44 | destinationUID: destination.uid | "" 45 | requestMethod: request.method | "" 46 | requestPath: request.path | "" 47 | requestScheme: request.scheme | "" 48 | requestTime: request.time 49 | responseTime: response.time 50 | responseCode: response.code | 200 51 | reporter: conditional((context.reporter.kind | "inbound") == "outbound", "source", "destination") 52 | apiProtocol: api.protocol | "" 53 | --- 54 | 55 | # rule to dispatch to handler sw 56 | apiVersion: "config.istio.io/v1alpha2" 57 | kind: rule 58 | metadata: 59 | name: swmetric-rule 60 | namespace: istio-system 61 | spec: 62 | actions: 63 | - handler: sw.istio-system 64 | instances: 65 | - swmetric 66 | -------------------------------------------------------------------------------- /6/6.0.0-beta/istio/03-operator_cfg.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | apiVersion: "config.istio.io/v1alpha2" 18 | kind: handler 19 | metadata: 20 | name: sw 21 | namespace: istio-system 22 | spec: 23 | adapter: swadapter 24 | connection: 25 | address: "oap.skywalking.svc.cluster.local:11800" 26 | --- 27 | 28 | # instance for template metric 29 | apiVersion: "config.istio.io/v1alpha2" 30 | kind: instance 31 | metadata: 32 | name: swmetric 33 | namespace: istio-system 34 | spec: 35 | template: metric 36 | params: 37 | value: request.size | 0 38 | dimensions: 39 | sourceService: source.workload.name | "" 40 | sourceNamespace: source.workload.namespace | "" 41 | sourceUID: source.uid | "" 42 | destinationService: destination.workload.name | "" 43 | destinationNamespace: destination.workload.namespace | "" 44 | destinationUID: destination.uid | "" 45 | requestMethod: request.method | "" 46 | requestPath: request.path | "" 47 | requestScheme: request.scheme | "" 48 | requestTime: request.time 49 | responseTime: response.time 50 | responseCode: response.code | 200 51 | reporter: conditional((context.reporter.kind | "inbound") == "outbound", "source", "destination") 52 | apiProtocol: api.protocol | "" 53 | --- 54 | 55 | # rule to dispatch to handler sw 56 | apiVersion: "config.istio.io/v1alpha2" 57 | kind: rule 58 | metadata: 59 | name: swmetric-rule 60 | namespace: istio-system 61 | spec: 62 | actions: 63 | - handler: sw.istio-system 64 | instances: 65 | - swmetric 66 | -------------------------------------------------------------------------------- /smd/elasticsearch/03-statefulset.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | apiVersion: apps/v1 18 | kind: StatefulSet 19 | metadata: 20 | name: elasticsearch 21 | namespace: skywalking 22 | labels: 23 | service: elasticsearch 24 | spec: 25 | serviceName: elasticsearch 26 | # NOTE: This is number of nodes that we want to run 27 | # you may update this 28 | replicas: 3 29 | selector: 30 | matchLabels: 31 | service: elasticsearch 32 | template: 33 | metadata: 34 | labels: 35 | service: elasticsearch 36 | spec: 37 | terminationGracePeriodSeconds: 300 38 | initContainers: 39 | # NOTE: 40 | # This is to fix the permission on the volume 41 | # By default elasticsearch container is not run as 42 | # non root user. 43 | # https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#_notes_for_production_use_and_defaults 44 | - name: fix-the-volume-permission 45 | image: busybox 46 | command: 47 | - sh 48 | - -c 49 | - chown -R 1000:1000 /usr/share/elasticsearch/data 50 | securityContext: 51 | privileged: true 52 | volumeMounts: 53 | - name: data 54 | mountPath: /usr/share/elasticsearch/data 55 | # NOTE: 56 | # To increase the default vm.max_map_count to 262144 57 | # https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#docker-cli-run-prod-mode 58 | - name: increase-the-vm-max-map-count 59 | image: busybox 60 | command: 61 | - sysctl 62 | - -w 63 | - vm.max_map_count=262144 64 | securityContext: 65 | privileged: true 66 | # To increase the ulimit 67 | # https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#_notes_for_production_use_and_defaults 68 | - name: increase-the-ulimit 69 | image: busybox 70 | command: 71 | - sh 72 | - -c 73 | - ulimit -n 65536 74 | securityContext: 75 | privileged: true 76 | containers: 77 | - name: elasticsearch 78 | image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.3.2 79 | ports: 80 | - containerPort: 9200 81 | name: http 82 | - containerPort: 9300 83 | name: tcp 84 | # NOTE: you can increase this resources 85 | resources: 86 | requests: 87 | memory: 8Gi 88 | limits: 89 | memory: 16Gi 90 | env: 91 | # NOTE: the cluster name; update this 92 | - name: cluster.name 93 | value: elasticsearch-cluster 94 | - name: node.name 95 | valueFrom: 96 | fieldRef: 97 | fieldPath: metadata.name 98 | # NOTE: This will tell the elasticsearch node where to connect to other nodes to form a cluster 99 | - name: discovery.zen.ping.unicast.hosts 100 | value: elasticsearch:9300 101 | # NOTE: You can increase the heap size 102 | - name: ES_JAVA_OPTS 103 | value: -Xms4g -Xmx4g 104 | volumeMounts: 105 | - name: data 106 | mountPath: /usr/share/elasticsearch/data 107 | volumeClaimTemplates: 108 | - metadata: 109 | name: data 110 | spec: 111 | accessModes: 112 | - ReadWriteOnce 113 | storageClassName: ssd 114 | # NOTE: You can increase the storage size 115 | resources: 116 | requests: 117 | storage: 500Gi 118 | -------------------------------------------------------------------------------- /6/6.0.0-GA/elasticsearch/03-statefulset.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | apiVersion: apps/v1 18 | kind: StatefulSet 19 | metadata: 20 | name: elasticsearch 21 | namespace: skywalking 22 | labels: 23 | service: elasticsearch 24 | spec: 25 | serviceName: elasticsearch 26 | # NOTE: This is number of nodes that we want to run 27 | # you may update this 28 | replicas: 3 29 | selector: 30 | matchLabels: 31 | service: elasticsearch 32 | template: 33 | metadata: 34 | labels: 35 | service: elasticsearch 36 | spec: 37 | terminationGracePeriodSeconds: 300 38 | initContainers: 39 | # NOTE: 40 | # This is to fix the permission on the volume 41 | # By default elasticsearch container is not run as 42 | # non root user. 43 | # https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#_notes_for_production_use_and_defaults 44 | - name: fix-the-volume-permission 45 | image: busybox 46 | command: 47 | - sh 48 | - -c 49 | - chown -R 1000:1000 /usr/share/elasticsearch/data 50 | securityContext: 51 | privileged: true 52 | volumeMounts: 53 | - name: data 54 | mountPath: /usr/share/elasticsearch/data 55 | # NOTE: 56 | # To increase the default vm.max_map_count to 262144 57 | # https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#docker-cli-run-prod-mode 58 | - name: increase-the-vm-max-map-count 59 | image: busybox 60 | command: 61 | - sysctl 62 | - -w 63 | - vm.max_map_count=262144 64 | securityContext: 65 | privileged: true 66 | # To increase the ulimit 67 | # https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#_notes_for_production_use_and_defaults 68 | - name: increase-the-ulimit 69 | image: busybox 70 | command: 71 | - sh 72 | - -c 73 | - ulimit -n 65536 74 | securityContext: 75 | privileged: true 76 | containers: 77 | - name: elasticsearch 78 | image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.3.2 79 | ports: 80 | - containerPort: 9200 81 | name: http 82 | - containerPort: 9300 83 | name: tcp 84 | # NOTE: you can increase this resources 85 | resources: 86 | requests: 87 | memory: 8Gi 88 | limits: 89 | memory: 16Gi 90 | env: 91 | # NOTE: the cluster name; update this 92 | - name: cluster.name 93 | value: elasticsearch-cluster 94 | - name: node.name 95 | valueFrom: 96 | fieldRef: 97 | fieldPath: metadata.name 98 | # NOTE: This will tell the elasticsearch node where to connect to other nodes to form a cluster 99 | - name: discovery.zen.ping.unicast.hosts 100 | value: elasticsearch:9300 101 | # NOTE: You can increase the heap size 102 | - name: ES_JAVA_OPTS 103 | value: -Xms4g -Xmx4g 104 | volumeMounts: 105 | - name: data 106 | mountPath: /usr/share/elasticsearch/data 107 | volumeClaimTemplates: 108 | - metadata: 109 | name: data 110 | spec: 111 | accessModes: 112 | - ReadWriteOnce 113 | storageClassName: ssd 114 | # NOTE: You can increase the storage size 115 | resources: 116 | requests: 117 | storage: 500Gi 118 | -------------------------------------------------------------------------------- /6/6.0.0-alpha/elasticsearch/03-statefulset.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | apiVersion: apps/v1 18 | kind: StatefulSet 19 | metadata: 20 | name: elasticsearch 21 | namespace: skywalking 22 | labels: 23 | service: elasticsearch 24 | spec: 25 | serviceName: elasticsearch 26 | # NOTE: This is number of nodes that we want to run 27 | # you may update this 28 | replicas: 3 29 | selector: 30 | matchLabels: 31 | service: elasticsearch 32 | template: 33 | metadata: 34 | labels: 35 | service: elasticsearch 36 | spec: 37 | terminationGracePeriodSeconds: 300 38 | initContainers: 39 | # NOTE: 40 | # This is to fix the permission on the volume 41 | # By default elasticsearch container is not run as 42 | # non root user. 43 | # https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#_notes_for_production_use_and_defaults 44 | - name: fix-the-volume-permission 45 | image: busybox 46 | command: 47 | - sh 48 | - -c 49 | - chown -R 1000:1000 /usr/share/elasticsearch/data 50 | securityContext: 51 | privileged: true 52 | volumeMounts: 53 | - name: data 54 | mountPath: /usr/share/elasticsearch/data 55 | # NOTE: 56 | # To increase the default vm.max_map_count to 262144 57 | # https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#docker-cli-run-prod-mode 58 | - name: increase-the-vm-max-map-count 59 | image: busybox 60 | command: 61 | - sysctl 62 | - -w 63 | - vm.max_map_count=262144 64 | securityContext: 65 | privileged: true 66 | # To increase the ulimit 67 | # https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#_notes_for_production_use_and_defaults 68 | - name: increase-the-ulimit 69 | image: busybox 70 | command: 71 | - sh 72 | - -c 73 | - ulimit -n 65536 74 | securityContext: 75 | privileged: true 76 | containers: 77 | - name: elasticsearch 78 | image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.3.2 79 | ports: 80 | - containerPort: 9200 81 | name: http 82 | - containerPort: 9300 83 | name: tcp 84 | # NOTE: you can increase this resources 85 | resources: 86 | requests: 87 | memory: 8Gi 88 | limits: 89 | memory: 16Gi 90 | env: 91 | # NOTE: the cluster name; update this 92 | - name: cluster.name 93 | value: elasticsearch-cluster 94 | - name: node.name 95 | valueFrom: 96 | fieldRef: 97 | fieldPath: metadata.name 98 | # NOTE: This will tell the elasticsearch node where to connect to other nodes to form a cluster 99 | - name: discovery.zen.ping.unicast.hosts 100 | value: elasticsearch:9300 101 | # NOTE: You can increase the heap size 102 | - name: ES_JAVA_OPTS 103 | value: -Xms4g -Xmx4g 104 | volumeMounts: 105 | - name: data 106 | mountPath: /usr/share/elasticsearch/data 107 | volumeClaimTemplates: 108 | - metadata: 109 | name: data 110 | spec: 111 | accessModes: 112 | - ReadWriteOnce 113 | storageClassName: ssd 114 | # NOTE: You can increase the storage size 115 | resources: 116 | requests: 117 | storage: 500Gi 118 | -------------------------------------------------------------------------------- /6/6.0.0-beta/elasticsearch/03-statefulset.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | apiVersion: apps/v1 18 | kind: StatefulSet 19 | metadata: 20 | name: elasticsearch 21 | namespace: skywalking 22 | labels: 23 | service: elasticsearch 24 | spec: 25 | serviceName: elasticsearch 26 | # NOTE: This is number of nodes that we want to run 27 | # you may update this 28 | replicas: 3 29 | selector: 30 | matchLabels: 31 | service: elasticsearch 32 | template: 33 | metadata: 34 | labels: 35 | service: elasticsearch 36 | spec: 37 | terminationGracePeriodSeconds: 300 38 | initContainers: 39 | # NOTE: 40 | # This is to fix the permission on the volume 41 | # By default elasticsearch container is not run as 42 | # non root user. 43 | # https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#_notes_for_production_use_and_defaults 44 | - name: fix-the-volume-permission 45 | image: busybox 46 | command: 47 | - sh 48 | - -c 49 | - chown -R 1000:1000 /usr/share/elasticsearch/data 50 | securityContext: 51 | privileged: true 52 | volumeMounts: 53 | - name: data 54 | mountPath: /usr/share/elasticsearch/data 55 | # NOTE: 56 | # To increase the default vm.max_map_count to 262144 57 | # https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#docker-cli-run-prod-mode 58 | - name: increase-the-vm-max-map-count 59 | image: busybox 60 | command: 61 | - sysctl 62 | - -w 63 | - vm.max_map_count=262144 64 | securityContext: 65 | privileged: true 66 | # To increase the ulimit 67 | # https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#_notes_for_production_use_and_defaults 68 | - name: increase-the-ulimit 69 | image: busybox 70 | command: 71 | - sh 72 | - -c 73 | - ulimit -n 65536 74 | securityContext: 75 | privileged: true 76 | containers: 77 | - name: elasticsearch 78 | image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.3.2 79 | ports: 80 | - containerPort: 9200 81 | name: http 82 | - containerPort: 9300 83 | name: tcp 84 | # NOTE: you can increase this resources 85 | resources: 86 | requests: 87 | memory: 8Gi 88 | limits: 89 | memory: 16Gi 90 | env: 91 | # NOTE: the cluster name; update this 92 | - name: cluster.name 93 | value: elasticsearch-cluster 94 | - name: node.name 95 | valueFrom: 96 | fieldRef: 97 | fieldPath: metadata.name 98 | # NOTE: This will tell the elasticsearch node where to connect to other nodes to form a cluster 99 | - name: discovery.zen.ping.unicast.hosts 100 | value: elasticsearch:9300 101 | # NOTE: You can increase the heap size 102 | - name: ES_JAVA_OPTS 103 | value: -Xms4g -Xmx4g 104 | volumeMounts: 105 | - name: data 106 | mountPath: /usr/share/elasticsearch/data 107 | volumeClaimTemplates: 108 | - metadata: 109 | name: data 110 | spec: 111 | accessModes: 112 | - ReadWriteOnce 113 | storageClassName: ssd 114 | # NOTE: You can increase the storage size 115 | resources: 116 | requests: 117 | storage: 500Gi 118 | -------------------------------------------------------------------------------- /6/6.0.0-alpha/oap/01-config.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | apiVersion: v1 18 | kind: ConfigMap 19 | metadata: 20 | name: oap-config 21 | namespace: skywalking 22 | data: 23 | application.yml: |- 24 | cluster: 25 | kubernetes: 26 | watchTimeoutSeconds: 60 27 | namespace: skywalking 28 | labelSelector: app=oap 29 | uidEnvName: SKYWALKING_COLLECTOR_UID 30 | core: 31 | default: 32 | restHost: 0.0.0.0 33 | restPort: 12800 34 | restContextPath: / 35 | gRPCHost: 0.0.0.0 36 | gRPCPort: 11800 37 | downsampling: 38 | - Hour 39 | - Day 40 | - Month 41 | recordDataTTL: 90 # Unit is minute 42 | minuteMetricsDataTTL: 90 # Unit is minute 43 | hourMetricsDataTTL: 36 # Unit is hour 44 | dayMetricsDataTTL: 45 # Unit is day 45 | monthMetricsDataTTL: 18 # Unit is month 46 | storage: 47 | elasticsearch: 48 | clusterNodes: elasticsearch:9200 49 | indexShardsNumber: 2 50 | indexReplicasNumber: 0 51 | bulkActions: 2000 # Execute the bulk every 2000 requests 52 | bulkSize: 20 # flush the bulk every 20mb 53 | flushInterval: 10 # flush the bulk every 10 seconds whatever the number of requests 54 | concurrentRequests: 2 # the number of concurrent requests 55 | receiver-register: 56 | default: 57 | receiver-trace: 58 | default: 59 | bufferPath: /trace-buffer/ # Path to trace buffer files, suggest to use absolute path 60 | bufferOffsetMaxFileSize: 100 # Unit is MB 61 | bufferDataMaxFileSize: 500 # Unit is MB 62 | bufferFileCleanWhenRestart: false 63 | receiver-jvm: 64 | default: 65 | service-mesh: 66 | default: 67 | bufferPath: /mesh-buffer/ # Path to trace buffer files, suggest to use absolute path 68 | bufferOffsetMaxFileSize: 100 # Unit is MB 69 | bufferDataMaxFileSize: 500 # Unit is MB 70 | bufferFileCleanWhenRestart: false 71 | istio-telemetry: 72 | default: 73 | query: 74 | graphql: 75 | path: /graphql 76 | alarm: 77 | default: 78 | 79 | log4j2.xml: |- 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | alarm-settings.yml: |- 99 | rules: 100 | service_resp_time_rule: 101 | indicator-name: service_resp_time 102 | include-names: 103 | - dubbox-provider 104 | - dubbox-consumer 105 | threshold: 1000 106 | op: ">" 107 | period: 10 108 | count: 1 109 | webhooks: 110 | 111 | component-libraries.yml: |- 112 | Tomcat: 113 | id: 1 114 | languages: Java 115 | HttpClient: 116 | id: 2 117 | languages: Java,C#,Node.js 118 | Dubbo: 119 | id: 3 120 | languages: Java 121 | H2: 122 | id: 4 123 | languages: Java 124 | Mysql: 125 | id: 5 126 | languages: Java,C#,Node.js 127 | ORACLE: 128 | id: 6 129 | languages: Java 130 | Redis: 131 | id: 7 132 | languages: Java,C#,Node.js 133 | Motan: 134 | id: 8 135 | languages: Java 136 | MongoDB: 137 | id: 9 138 | languages: Java,C#,Node.js 139 | Resin: 140 | id: 10 141 | languages: Java 142 | Feign: 143 | id: 11 144 | languages: Java 145 | OKHttp: 146 | id: 12 147 | languages: Java 148 | SpringRestTemplate: 149 | id: 13 150 | languages: Java 151 | SpringMVC: 152 | id: 14 153 | languages: Java 154 | Struts2: 155 | id: 15 156 | languages: Java 157 | NutzMVC: 158 | id: 16 159 | languages: Java 160 | NutzHttp: 161 | id: 17 162 | languages: Java 163 | JettyClient: 164 | id: 18 165 | languages: Java 166 | JettyServer: 167 | id: 19 168 | languages: Java 169 | Memcached: 170 | id: 20 171 | languages: Java 172 | ShardingJDBC: 173 | id: 21 174 | languages: Java 175 | PostgreSQL: 176 | id: 22 177 | languages: Java,C#,Node.js 178 | GRPC: 179 | id: 23 180 | languages: Java 181 | ElasticJob: 182 | id: 24 183 | languages: Java 184 | RocketMQ: 185 | id: 25 186 | languages: Java 187 | httpasyncclient: 188 | id: 26 189 | languages: Java 190 | Kafka: 191 | id: 27 192 | languages: Java 193 | ServiceComb: 194 | id: 28 195 | languages: Java 196 | Hystrix: 197 | id: 29 198 | languages: Java 199 | Jedis: 200 | id: 30 201 | languages: Java 202 | SQLite: 203 | id: 31 204 | languages: Java,C# 205 | h2-jdbc-driver: 206 | id: 32 207 | languages: Java 208 | mysql-connector-java: 209 | id: 33 210 | languages: Java 211 | Spymemcached: 212 | id: 35 213 | languages: Java 214 | Xmemcached: 215 | id: 36 216 | languages: Java 217 | postgresql-jdbc-driver: 218 | id: 37 219 | languages: Java 220 | rocketMQ-producer: 221 | id: 38 222 | languages: Java 223 | rocketMQ-consumer: 224 | id: 39 225 | languages: Java 226 | kafka-producer: 227 | id: 40 228 | languages: Java 229 | kafka-consumer: 230 | id: 41 231 | languages: Java 232 | mongodb-driver: 233 | id: 42 234 | languages: Java 235 | SOFARPC: 236 | id: 43 237 | languages: Java 238 | ActiveMQ: 239 | id: 44 240 | languages: Java 241 | activemq-producer: 242 | id: 45 243 | languages: Java 244 | activemq-consumer: 245 | id: 46 246 | languages: Java 247 | Elasticsearch: 248 | id: 47 249 | languages: Java 250 | transport-client: 251 | id: 48 252 | languages: Java 253 | AspNetCore: 254 | id: 3001 255 | languages: C# 256 | EntityFrameworkCore: 257 | id: 3002 258 | languages: C# 259 | SqlClient: 260 | id: 3003 261 | languages: C# 262 | CAP: 263 | id: 3004 264 | languages: C# 265 | StackExchange.Redis: 266 | id: 3005 267 | languages: C# 268 | SqlServer: 269 | id: 3006 270 | languages: C# 271 | Npgsql: 272 | id: 3007 273 | languages: C# 274 | MySqlConnector: 275 | id: 3008 276 | languages: C# 277 | EntityFrameworkCore.InMemory: 278 | id: 3009 279 | languages: C# 280 | EntityFrameworkCore.SqlServer: 281 | id: 3010 282 | languages: C# 283 | EntityFrameworkCore.Sqlite: 284 | id: 3011 285 | languages: C# 286 | Pomelo.EntityFrameworkCore.MySql: 287 | id: 3012 288 | languages: C# 289 | Npgsql.EntityFrameworkCore.PostgreSQL: 290 | id: 3013 291 | languages: C# 292 | InMemoryDatabase: 293 | id: 3014 294 | languages: C# 295 | AspNet: 296 | id: 3015 297 | languages: C# 298 | 299 | # NoeJS components 300 | # [4000, 5000) for Node.js agent 301 | HttpServer: 302 | id: 4001 303 | languages: Node.js 304 | express: 305 | id: 4002 306 | languages: Node.js 307 | Egg: 308 | id: 4003 309 | languages: Node.js 310 | Koa: 311 | id: 4004 312 | languages: Node.js 313 | Component-Server-Mappings: 314 | mongodb-driver: MongoDB 315 | rocketMQ-producer: RocketMQ 316 | rocketMQ-consumer: RocketMQ 317 | kafka-producer: Kafka 318 | kafka-consumer: Kafka 319 | activemq-producer: ActiveMQ 320 | activemq-consumer: ActiveMQ 321 | postgresql-jdbc-driver: PostgreSQL 322 | Xmemcached: Memcached 323 | Spymemcached: Memcached 324 | h2-jdbc-driver: H2 325 | mysql-connector-java: Mysql 326 | Jedis: Redis 327 | StackExchange.Redis: Redis 328 | SqlClient: SqlServer 329 | Npgsql: PostgreSQL 330 | MySqlConnector: Mysql 331 | EntityFrameworkCore.InMemory: InMemoryDatabase 332 | EntityFrameworkCore.SqlServer: SqlServer 333 | EntityFrameworkCore.Sqlite: SQLite 334 | Pomelo.EntityFrameworkCore.MySql: Mysql 335 | Npgsql.EntityFrameworkCore.PostgreSQL: PostgreSQL 336 | transport-client: Elasticsearch 337 | 338 | 339 | -------------------------------------------------------------------------------- /6/6.0.0-beta/oap/01-config.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | apiVersion: v1 18 | kind: ConfigMap 19 | metadata: 20 | name: oap-config 21 | namespace: skywalking 22 | data: 23 | application.yml: |- 24 | cluster: 25 | kubernetes: 26 | watchTimeoutSeconds: 60 27 | namespace: skywalking 28 | labelSelector: app=oap 29 | uidEnvName: SKYWALKING_COLLECTOR_UID 30 | core: 31 | default: 32 | restHost: 0.0.0.0 33 | restPort: 12800 34 | restContextPath: / 35 | gRPCHost: 0.0.0.0 36 | gRPCPort: 11800 37 | downsampling: 38 | - Hour 39 | - Day 40 | - Month 41 | recordDataTTL: 90 # Unit is minute 42 | minuteMetricsDataTTL: 90 # Unit is minute 43 | hourMetricsDataTTL: 36 # Unit is hour 44 | dayMetricsDataTTL: 45 # Unit is day 45 | monthMetricsDataTTL: 18 # Unit is month 46 | storage: 47 | elasticsearch: 48 | clusterNodes: elasticsearch:9200 49 | indexShardsNumber: 2 50 | indexReplicasNumber: 0 51 | bulkActions: 2000 # Execute the bulk every 2000 requests 52 | bulkSize: 20 # flush the bulk every 20mb 53 | flushInterval: 10 # flush the bulk every 10 seconds whatever the number of requests 54 | concurrentRequests: 2 # the number of concurrent requests 55 | receiver-register: 56 | default: 57 | receiver-trace: 58 | default: 59 | bufferPath: /trace-buffer/ # Path to trace buffer files, suggest to use absolute path 60 | bufferOffsetMaxFileSize: 100 # Unit is MB 61 | bufferDataMaxFileSize: 500 # Unit is MB 62 | bufferFileCleanWhenRestart: false 63 | receiver-jvm: 64 | default: 65 | service-mesh: 66 | default: 67 | bufferPath: /mesh-buffer/ # Path to trace buffer files, suggest to use absolute path 68 | bufferOffsetMaxFileSize: 100 # Unit is MB 69 | bufferDataMaxFileSize: 500 # Unit is MB 70 | bufferFileCleanWhenRestart: false 71 | istio-telemetry: 72 | default: 73 | query: 74 | graphql: 75 | path: /graphql 76 | alarm: 77 | default: 78 | 79 | log4j2.xml: |- 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | alarm-settings.yml: |- 99 | rules: 100 | service_resp_time_rule: 101 | indicator-name: service_resp_time 102 | include-names: 103 | - dubbox-provider 104 | - dubbox-consumer 105 | threshold: 1000 106 | op: ">" 107 | period: 10 108 | count: 1 109 | webhooks: 110 | 111 | component-libraries.yml: |- 112 | Tomcat: 113 | id: 1 114 | languages: Java 115 | HttpClient: 116 | id: 2 117 | languages: Java,C#,Node.js 118 | Dubbo: 119 | id: 3 120 | languages: Java 121 | H2: 122 | id: 4 123 | languages: Java 124 | Mysql: 125 | id: 5 126 | languages: Java,C#,Node.js 127 | ORACLE: 128 | id: 6 129 | languages: Java 130 | Redis: 131 | id: 7 132 | languages: Java,C#,Node.js 133 | Motan: 134 | id: 8 135 | languages: Java 136 | MongoDB: 137 | id: 9 138 | languages: Java,C#,Node.js 139 | Resin: 140 | id: 10 141 | languages: Java 142 | Feign: 143 | id: 11 144 | languages: Java 145 | OKHttp: 146 | id: 12 147 | languages: Java 148 | SpringRestTemplate: 149 | id: 13 150 | languages: Java 151 | SpringMVC: 152 | id: 14 153 | languages: Java 154 | Struts2: 155 | id: 15 156 | languages: Java 157 | NutzMVC: 158 | id: 16 159 | languages: Java 160 | NutzHttp: 161 | id: 17 162 | languages: Java 163 | JettyClient: 164 | id: 18 165 | languages: Java 166 | JettyServer: 167 | id: 19 168 | languages: Java 169 | Memcached: 170 | id: 20 171 | languages: Java 172 | ShardingJDBC: 173 | id: 21 174 | languages: Java 175 | PostgreSQL: 176 | id: 22 177 | languages: Java,C#,Node.js 178 | GRPC: 179 | id: 23 180 | languages: Java 181 | ElasticJob: 182 | id: 24 183 | languages: Java 184 | RocketMQ: 185 | id: 25 186 | languages: Java 187 | httpasyncclient: 188 | id: 26 189 | languages: Java 190 | Kafka: 191 | id: 27 192 | languages: Java 193 | ServiceComb: 194 | id: 28 195 | languages: Java 196 | Hystrix: 197 | id: 29 198 | languages: Java 199 | Jedis: 200 | id: 30 201 | languages: Java 202 | SQLite: 203 | id: 31 204 | languages: Java,C# 205 | h2-jdbc-driver: 206 | id: 32 207 | languages: Java 208 | mysql-connector-java: 209 | id: 33 210 | languages: Java 211 | Spymemcached: 212 | id: 35 213 | languages: Java 214 | Xmemcached: 215 | id: 36 216 | languages: Java 217 | postgresql-jdbc-driver: 218 | id: 37 219 | languages: Java 220 | rocketMQ-producer: 221 | id: 38 222 | languages: Java 223 | rocketMQ-consumer: 224 | id: 39 225 | languages: Java 226 | kafka-producer: 227 | id: 40 228 | languages: Java 229 | kafka-consumer: 230 | id: 41 231 | languages: Java 232 | mongodb-driver: 233 | id: 42 234 | languages: Java 235 | SOFARPC: 236 | id: 43 237 | languages: Java 238 | ActiveMQ: 239 | id: 44 240 | languages: Java 241 | activemq-producer: 242 | id: 45 243 | languages: Java 244 | activemq-consumer: 245 | id: 46 246 | languages: Java 247 | Elasticsearch: 248 | id: 47 249 | languages: Java 250 | transport-client: 251 | id: 48 252 | languages: Java 253 | AspNetCore: 254 | id: 3001 255 | languages: C# 256 | EntityFrameworkCore: 257 | id: 3002 258 | languages: C# 259 | SqlClient: 260 | id: 3003 261 | languages: C# 262 | CAP: 263 | id: 3004 264 | languages: C# 265 | StackExchange.Redis: 266 | id: 3005 267 | languages: C# 268 | SqlServer: 269 | id: 3006 270 | languages: C# 271 | Npgsql: 272 | id: 3007 273 | languages: C# 274 | MySqlConnector: 275 | id: 3008 276 | languages: C# 277 | EntityFrameworkCore.InMemory: 278 | id: 3009 279 | languages: C# 280 | EntityFrameworkCore.SqlServer: 281 | id: 3010 282 | languages: C# 283 | EntityFrameworkCore.Sqlite: 284 | id: 3011 285 | languages: C# 286 | Pomelo.EntityFrameworkCore.MySql: 287 | id: 3012 288 | languages: C# 289 | Npgsql.EntityFrameworkCore.PostgreSQL: 290 | id: 3013 291 | languages: C# 292 | InMemoryDatabase: 293 | id: 3014 294 | languages: C# 295 | AspNet: 296 | id: 3015 297 | languages: C# 298 | 299 | # NoeJS components 300 | # [4000, 5000) for Node.js agent 301 | HttpServer: 302 | id: 4001 303 | languages: Node.js 304 | express: 305 | id: 4002 306 | languages: Node.js 307 | Egg: 308 | id: 4003 309 | languages: Node.js 310 | Koa: 311 | id: 4004 312 | languages: Node.js 313 | Component-Server-Mappings: 314 | mongodb-driver: MongoDB 315 | rocketMQ-producer: RocketMQ 316 | rocketMQ-consumer: RocketMQ 317 | kafka-producer: Kafka 318 | kafka-consumer: Kafka 319 | activemq-producer: ActiveMQ 320 | activemq-consumer: ActiveMQ 321 | postgresql-jdbc-driver: PostgreSQL 322 | Xmemcached: Memcached 323 | Spymemcached: Memcached 324 | h2-jdbc-driver: H2 325 | mysql-connector-java: Mysql 326 | Jedis: Redis 327 | StackExchange.Redis: Redis 328 | SqlClient: SqlServer 329 | Npgsql: PostgreSQL 330 | MySqlConnector: Mysql 331 | EntityFrameworkCore.InMemory: InMemoryDatabase 332 | EntityFrameworkCore.SqlServer: SqlServer 333 | EntityFrameworkCore.Sqlite: SQLite 334 | Pomelo.EntityFrameworkCore.MySql: Mysql 335 | Npgsql.EntityFrameworkCore.PostgreSQL: PostgreSQL 336 | transport-client: Elasticsearch 337 | 338 | 339 | -------------------------------------------------------------------------------- /6/6.0.0-GA/oap/01-config.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | apiVersion: v1 18 | kind: ConfigMap 19 | metadata: 20 | name: oap-config 21 | namespace: skywalking 22 | data: 23 | application.yml: |- 24 | cluster: 25 | kubernetes: 26 | watchTimeoutSeconds: 60 27 | namespace: skywalking 28 | labelSelector: app=oap 29 | uidEnvName: SKYWALKING_COLLECTOR_UID 30 | core: 31 | default: 32 | restHost: 0.0.0.0 33 | restPort: 12800 34 | restContextPath: / 35 | gRPCHost: 0.0.0.0 36 | gRPCPort: 11800 37 | downsampling: 38 | - Hour 39 | - Day 40 | - Month 41 | recordDataTTL: 90 # Unit is minute 42 | minuteMetricsDataTTL: 90 # Unit is minute 43 | hourMetricsDataTTL: 36 # Unit is hour 44 | dayMetricsDataTTL: 45 # Unit is day 45 | monthMetricsDataTTL: 18 # Unit is month 46 | storage: 47 | elasticsearch: 48 | clusterNodes: elasticsearch:9200 49 | indexShardsNumber: 2 50 | indexReplicasNumber: 0 51 | bulkActions: 2000 # Execute the bulk every 2000 requests 52 | bulkSize: 20 # flush the bulk every 20mb 53 | flushInterval: 10 # flush the bulk every 10 seconds whatever the number of requests 54 | concurrentRequests: 2 # the number of concurrent requests 55 | receiver-register: 56 | default: 57 | receiver-trace: 58 | default: 59 | bufferPath: /trace-buffer/ # Path to trace buffer files, suggest to use absolute path 60 | bufferOffsetMaxFileSize: 100 # Unit is MB 61 | bufferDataMaxFileSize: 500 # Unit is MB 62 | bufferFileCleanWhenRestart: false 63 | receiver-jvm: 64 | default: 65 | service-mesh: 66 | default: 67 | bufferPath: /mesh-buffer/ # Path to trace buffer files, suggest to use absolute path 68 | bufferOffsetMaxFileSize: 100 # Unit is MB 69 | bufferDataMaxFileSize: 500 # Unit is MB 70 | bufferFileCleanWhenRestart: false 71 | istio-telemetry: 72 | default: 73 | query: 74 | graphql: 75 | path: /graphql 76 | alarm: 77 | default: 78 | telemetry: 79 | prometheus: 80 | 81 | log4j2.xml: |- 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | alarm-settings.yml: |- 101 | rules: 102 | service_resp_time_rule: 103 | indicator-name: service_resp_time 104 | include-names: 105 | - dubbox-provider 106 | - dubbox-consumer 107 | threshold: 1000 108 | op: ">" 109 | period: 10 110 | count: 1 111 | webhooks: 112 | 113 | component-libraries.yml: |- 114 | Tomcat: 115 | id: 1 116 | languages: Java 117 | HttpClient: 118 | id: 2 119 | languages: Java,C#,Node.js 120 | Dubbo: 121 | id: 3 122 | languages: Java 123 | H2: 124 | id: 4 125 | languages: Java 126 | Mysql: 127 | id: 5 128 | languages: Java,C#,Node.js 129 | ORACLE: 130 | id: 6 131 | languages: Java 132 | Redis: 133 | id: 7 134 | languages: Java,C#,Node.js 135 | Motan: 136 | id: 8 137 | languages: Java 138 | MongoDB: 139 | id: 9 140 | languages: Java,C#,Node.js 141 | Resin: 142 | id: 10 143 | languages: Java 144 | Feign: 145 | id: 11 146 | languages: Java 147 | OKHttp: 148 | id: 12 149 | languages: Java 150 | SpringRestTemplate: 151 | id: 13 152 | languages: Java 153 | SpringMVC: 154 | id: 14 155 | languages: Java 156 | Struts2: 157 | id: 15 158 | languages: Java 159 | NutzMVC: 160 | id: 16 161 | languages: Java 162 | NutzHttp: 163 | id: 17 164 | languages: Java 165 | JettyClient: 166 | id: 18 167 | languages: Java 168 | JettyServer: 169 | id: 19 170 | languages: Java 171 | Memcached: 172 | id: 20 173 | languages: Java 174 | ShardingJDBC: 175 | id: 21 176 | languages: Java 177 | PostgreSQL: 178 | id: 22 179 | languages: Java,C#,Node.js 180 | GRPC: 181 | id: 23 182 | languages: Java 183 | ElasticJob: 184 | id: 24 185 | languages: Java 186 | RocketMQ: 187 | id: 25 188 | languages: Java 189 | httpasyncclient: 190 | id: 26 191 | languages: Java 192 | Kafka: 193 | id: 27 194 | languages: Java 195 | ServiceComb: 196 | id: 28 197 | languages: Java 198 | Hystrix: 199 | id: 29 200 | languages: Java 201 | Jedis: 202 | id: 30 203 | languages: Java 204 | SQLite: 205 | id: 31 206 | languages: Java,C# 207 | h2-jdbc-driver: 208 | id: 32 209 | languages: Java 210 | mysql-connector-java: 211 | id: 33 212 | languages: Java 213 | ojdbc: 214 | id: 34 215 | languages: Java 216 | Spymemcached: 217 | id: 35 218 | languages: Java 219 | Xmemcached: 220 | id: 36 221 | languages: Java 222 | postgresql-jdbc-driver: 223 | id: 37 224 | languages: Java 225 | rocketMQ-producer: 226 | id: 38 227 | languages: Java 228 | rocketMQ-consumer: 229 | id: 39 230 | languages: Java 231 | kafka-producer: 232 | id: 40 233 | languages: Java 234 | kafka-consumer: 235 | id: 41 236 | languages: Java 237 | mongodb-driver: 238 | id: 42 239 | languages: Java 240 | SOFARPC: 241 | id: 43 242 | languages: Java 243 | ActiveMQ: 244 | id: 44 245 | languages: Java 246 | activemq-producer: 247 | id: 45 248 | languages: Java 249 | activemq-consumer: 250 | id: 46 251 | languages: Java 252 | Elasticsearch: 253 | id: 47 254 | languages: Java 255 | transport-client: 256 | id: 48 257 | languages: Java 258 | http: 259 | id: 49 260 | languages: Java,C#,Node.js 261 | rpc: 262 | id: 50 263 | languages: Java,C#,Node.js 264 | RabbitMQ: 265 | id: 51 266 | languages: Java 267 | rabbitmq-producer: 268 | id: 52 269 | languages: Java 270 | rabbitmq-consumer: 271 | id: 53 272 | languages: Java 273 | Canal: 274 | id: 54 275 | languages: Java 276 | Gson: 277 | id: 55 278 | languages: Java 279 | Redisson: 280 | id: 56 281 | languages: Java 282 | AspNetCore: 283 | id: 3001 284 | languages: C# 285 | EntityFrameworkCore: 286 | id: 3002 287 | languages: C# 288 | SqlClient: 289 | id: 3003 290 | languages: C# 291 | CAP: 292 | id: 3004 293 | languages: C# 294 | StackExchange.Redis: 295 | id: 3005 296 | languages: C# 297 | SqlServer: 298 | id: 3006 299 | languages: C# 300 | Npgsql: 301 | id: 3007 302 | languages: C# 303 | MySqlConnector: 304 | id: 3008 305 | languages: C# 306 | EntityFrameworkCore.InMemory: 307 | id: 3009 308 | languages: C# 309 | EntityFrameworkCore.SqlServer: 310 | id: 3010 311 | languages: C# 312 | EntityFrameworkCore.Sqlite: 313 | id: 3011 314 | languages: C# 315 | Pomelo.EntityFrameworkCore.MySql: 316 | id: 3012 317 | languages: C# 318 | Npgsql.EntityFrameworkCore.PostgreSQL: 319 | id: 3013 320 | languages: C# 321 | InMemoryDatabase: 322 | id: 3014 323 | languages: C# 324 | AspNet: 325 | id: 3015 326 | languages: C# 327 | 328 | # NoeJS components 329 | # [4000, 5000) for Node.js agent 330 | HttpServer: 331 | id: 4001 332 | languages: Node.js 333 | express: 334 | id: 4002 335 | languages: Node.js 336 | Egg: 337 | id: 4003 338 | languages: Node.js 339 | Koa: 340 | id: 4004 341 | languages: Node.js 342 | 343 | # Component Server mapping defines the server display names of some components 344 | # e.g. 345 | # Jedis is a client library in Java for Redis server 346 | Component-Server-Mappings: 347 | mongodb-driver: MongoDB 348 | rocketMQ-producer: RocketMQ 349 | rocketMQ-consumer: RocketMQ 350 | kafka-producer: Kafka 351 | kafka-consumer: Kafka 352 | activemq-producer: ActiveMQ 353 | activemq-consumer: ActiveMQ 354 | rabbitmq-producer: RabbitMQ 355 | rabbitmq-consumer: RabbitMQ 356 | postgresql-jdbc-driver: PostgreSQL 357 | Xmemcached: Memcached 358 | Spymemcached: Memcached 359 | h2-jdbc-driver: H2 360 | mysql-connector-java: Mysql 361 | Jedis: Redis 362 | StackExchange.Redis: Redis 363 | Redisson: Redis 364 | SqlClient: SqlServer 365 | Npgsql: PostgreSQL 366 | MySqlConnector: Mysql 367 | EntityFrameworkCore.InMemory: InMemoryDatabase 368 | EntityFrameworkCore.SqlServer: SqlServer 369 | EntityFrameworkCore.Sqlite: SQLite 370 | Pomelo.EntityFrameworkCore.MySql: Mysql 371 | Npgsql.EntityFrameworkCore.PostgreSQL: PostgreSQL 372 | transport-client: Elasticsearch 373 | 374 | 375 | -------------------------------------------------------------------------------- /smd/oap/01-config.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | apiVersion: v1 18 | kind: ConfigMap 19 | metadata: 20 | name: oap-config 21 | namespace: skywalking 22 | data: 23 | application.yml: |- 24 | cluster: 25 | kubernetes: 26 | watchTimeoutSeconds: 60 27 | namespace: skywalking 28 | labelSelector: app=oap 29 | uidEnvName: SKYWALKING_COLLECTOR_UID 30 | core: 31 | default: 32 | role: Mixed 33 | restHost: 0.0.0.0 34 | restPort: 12800 35 | restContextPath: / 36 | gRPCHost: 0.0.0.0 37 | gRPCPort: 11800 38 | downsampling: 39 | - Hour 40 | - Day 41 | - Month 42 | recordDataTTL: 90 # Unit is minute 43 | minuteMetricsDataTTL: 90 # Unit is minute 44 | hourMetricsDataTTL: 36 # Unit is hour 45 | dayMetricsDataTTL: 45 # Unit is day 46 | monthMetricsDataTTL: 18 # Unit is month 47 | storage: 48 | elasticsearch: 49 | clusterNodes: elasticsearch:9200 50 | indexShardsNumber: 2 51 | indexReplicasNumber: 0 52 | bulkActions: 2000 # Execute the bulk every 2000 requests 53 | bulkSize: 20 # flush the bulk every 20mb 54 | flushInterval: 10 # flush the bulk every 10 seconds whatever the number of requests 55 | concurrentRequests: 2 # the number of concurrent requests 56 | receiver-sharing-server: 57 | default: 58 | receiver-register: 59 | default: 60 | receiver-trace: 61 | default: 62 | bufferPath: /trace-buffer/ # Path to trace buffer files, suggest to use absolute path 63 | bufferOffsetMaxFileSize: 100 # Unit is MB 64 | bufferDataMaxFileSize: 500 # Unit is MB 65 | bufferFileCleanWhenRestart: false 66 | receiver-jvm: 67 | default: 68 | service-mesh: 69 | default: 70 | bufferPath: /mesh-buffer/ # Path to trace buffer files, suggest to use absolute path 71 | bufferOffsetMaxFileSize: 100 # Unit is MB 72 | bufferDataMaxFileSize: 500 # Unit is MB 73 | bufferFileCleanWhenRestart: false 74 | envoy-metric: 75 | default: 76 | istio-telemetry: 77 | default: 78 | query: 79 | graphql: 80 | path: /graphql 81 | alarm: 82 | default: 83 | telemetry: 84 | prometheus: 85 | 86 | log4j2.xml: |- 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | alarm-settings.yml: |- 106 | rules: 107 | service_resp_time_rule: 108 | indicator-name: service_resp_time 109 | include-names: 110 | - dubbox-provider 111 | - dubbox-consumer 112 | threshold: 1000 113 | op: ">" 114 | period: 10 115 | count: 1 116 | webhooks: 117 | 118 | component-libraries.yml: |- 119 | Tomcat: 120 | id: 1 121 | languages: Java 122 | HttpClient: 123 | id: 2 124 | languages: Java,C#,Node.js 125 | Dubbo: 126 | id: 3 127 | languages: Java 128 | H2: 129 | id: 4 130 | languages: Java 131 | Mysql: 132 | id: 5 133 | languages: Java,C#,Node.js 134 | ORACLE: 135 | id: 6 136 | languages: Java 137 | Redis: 138 | id: 7 139 | languages: Java,C#,Node.js 140 | Motan: 141 | id: 8 142 | languages: Java 143 | MongoDB: 144 | id: 9 145 | languages: Java,C#,Node.js 146 | Resin: 147 | id: 10 148 | languages: Java 149 | Feign: 150 | id: 11 151 | languages: Java 152 | OKHttp: 153 | id: 12 154 | languages: Java 155 | SpringRestTemplate: 156 | id: 13 157 | languages: Java 158 | SpringMVC: 159 | id: 14 160 | languages: Java 161 | Struts2: 162 | id: 15 163 | languages: Java 164 | NutzMVC: 165 | id: 16 166 | languages: Java 167 | NutzHttp: 168 | id: 17 169 | languages: Java 170 | JettyClient: 171 | id: 18 172 | languages: Java 173 | JettyServer: 174 | id: 19 175 | languages: Java 176 | Memcached: 177 | id: 20 178 | languages: Java 179 | ShardingJDBC: 180 | id: 21 181 | languages: Java 182 | PostgreSQL: 183 | id: 22 184 | languages: Java,C#,Node.js 185 | GRPC: 186 | id: 23 187 | languages: Java 188 | ElasticJob: 189 | id: 24 190 | languages: Java 191 | RocketMQ: 192 | id: 25 193 | languages: Java 194 | httpasyncclient: 195 | id: 26 196 | languages: Java 197 | Kafka: 198 | id: 27 199 | languages: Java 200 | ServiceComb: 201 | id: 28 202 | languages: Java 203 | Hystrix: 204 | id: 29 205 | languages: Java 206 | Jedis: 207 | id: 30 208 | languages: Java 209 | SQLite: 210 | id: 31 211 | languages: Java,C# 212 | h2-jdbc-driver: 213 | id: 32 214 | languages: Java 215 | mysql-connector-java: 216 | id: 33 217 | languages: Java 218 | ojdbc: 219 | id: 34 220 | languages: Java 221 | Spymemcached: 222 | id: 35 223 | languages: Java 224 | Xmemcached: 225 | id: 36 226 | languages: Java 227 | postgresql-jdbc-driver: 228 | id: 37 229 | languages: Java 230 | rocketMQ-producer: 231 | id: 38 232 | languages: Java 233 | rocketMQ-consumer: 234 | id: 39 235 | languages: Java 236 | kafka-producer: 237 | id: 40 238 | languages: Java 239 | kafka-consumer: 240 | id: 41 241 | languages: Java 242 | mongodb-driver: 243 | id: 42 244 | languages: Java 245 | SOFARPC: 246 | id: 43 247 | languages: Java 248 | ActiveMQ: 249 | id: 44 250 | languages: Java 251 | activemq-producer: 252 | id: 45 253 | languages: Java 254 | activemq-consumer: 255 | id: 46 256 | languages: Java 257 | Elasticsearch: 258 | id: 47 259 | languages: Java 260 | transport-client: 261 | id: 48 262 | languages: Java 263 | http: 264 | id: 49 265 | languages: Java,C#,Node.js 266 | rpc: 267 | id: 50 268 | languages: Java,C#,Node.js 269 | RabbitMQ: 270 | id: 51 271 | languages: Java 272 | rabbitmq-producer: 273 | id: 52 274 | languages: Java 275 | rabbitmq-consumer: 276 | id: 53 277 | languages: Java 278 | Canal: 279 | id: 54 280 | languages: Java 281 | Gson: 282 | id: 55 283 | languages: Java 284 | Redisson: 285 | id: 56 286 | languages: Java 287 | AspNetCore: 288 | id: 3001 289 | languages: C# 290 | EntityFrameworkCore: 291 | id: 3002 292 | languages: C# 293 | SqlClient: 294 | id: 3003 295 | languages: C# 296 | CAP: 297 | id: 3004 298 | languages: C# 299 | StackExchange.Redis: 300 | id: 3005 301 | languages: C# 302 | SqlServer: 303 | id: 3006 304 | languages: C# 305 | Npgsql: 306 | id: 3007 307 | languages: C# 308 | MySqlConnector: 309 | id: 3008 310 | languages: C# 311 | EntityFrameworkCore.InMemory: 312 | id: 3009 313 | languages: C# 314 | EntityFrameworkCore.SqlServer: 315 | id: 3010 316 | languages: C# 317 | EntityFrameworkCore.Sqlite: 318 | id: 3011 319 | languages: C# 320 | Pomelo.EntityFrameworkCore.MySql: 321 | id: 3012 322 | languages: C# 323 | Npgsql.EntityFrameworkCore.PostgreSQL: 324 | id: 3013 325 | languages: C# 326 | InMemoryDatabase: 327 | id: 3014 328 | languages: C# 329 | AspNet: 330 | id: 3015 331 | languages: C# 332 | 333 | # NoeJS components 334 | # [4000, 5000) for Node.js agent 335 | HttpServer: 336 | id: 4001 337 | languages: Node.js 338 | express: 339 | id: 4002 340 | languages: Node.js 341 | Egg: 342 | id: 4003 343 | languages: Node.js 344 | Koa: 345 | id: 4004 346 | languages: Node.js 347 | 348 | # Component Server mapping defines the server display names of some components 349 | # e.g. 350 | # Jedis is a client library in Java for Redis server 351 | Component-Server-Mappings: 352 | mongodb-driver: MongoDB 353 | rocketMQ-producer: RocketMQ 354 | rocketMQ-consumer: RocketMQ 355 | kafka-producer: Kafka 356 | kafka-consumer: Kafka 357 | activemq-producer: ActiveMQ 358 | activemq-consumer: ActiveMQ 359 | rabbitmq-producer: RabbitMQ 360 | rabbitmq-consumer: RabbitMQ 361 | postgresql-jdbc-driver: PostgreSQL 362 | Xmemcached: Memcached 363 | Spymemcached: Memcached 364 | h2-jdbc-driver: H2 365 | mysql-connector-java: Mysql 366 | Jedis: Redis 367 | StackExchange.Redis: Redis 368 | Redisson: Redis 369 | SqlClient: SqlServer 370 | Npgsql: PostgreSQL 371 | MySqlConnector: Mysql 372 | EntityFrameworkCore.InMemory: InMemoryDatabase 373 | EntityFrameworkCore.SqlServer: SqlServer 374 | EntityFrameworkCore.Sqlite: SQLite 375 | Pomelo.EntityFrameworkCore.MySql: Mysql 376 | Npgsql.EntityFrameworkCore.PostgreSQL: PostgreSQL 377 | transport-client: Elasticsearch 378 | 379 | 380 | --------------------------------------------------------------------------------