-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
- Loading branch information
1 parent
92dd897
commit ac3b517
Showing
4 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
examples/observability/jaeger-and-prometheus/example/client.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: alpine | ||
labels: | ||
app: alpine | ||
annotations: | ||
networkservicemesh.io: kernel://jaeger-and-prometheus/nsm-1 | ||
spec: | ||
containers: | ||
- name: alpine | ||
image: alpine:3.15.0 | ||
imagePullPolicy: IfNotPresent | ||
stdin: true | ||
tty: true | ||
affinity: | ||
podAffinity: | ||
requiredDuringSchedulingIgnoredDuringExecution: | ||
- topologyKey: kubernetes.io/hostname | ||
labelSelector: | ||
matchExpressions: | ||
- key: app | ||
operator: In | ||
values: | ||
- nse-kernel |
15 changes: 15 additions & 0 deletions
15
examples/observability/jaeger-and-prometheus/example/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
namespace: ns-jaeger-and-prometheus | ||
|
||
resources: | ||
- client.yaml | ||
- netsvc.yaml | ||
|
||
bases: | ||
- https://github.com/networkservicemesh/deployments-k8s/apps/nse-kernel?ref=63e7a206892601b733cfc8cd81ee5e46dbf4e78a | ||
|
||
patchesStrategicMerge: | ||
- patch-nse.yaml |
8 changes: 8 additions & 0 deletions
8
examples/observability/jaeger-and-prometheus/example/netsvc.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
apiVersion: networkservicemesh.io/v1 | ||
kind: NetworkService | ||
metadata: | ||
name: jaeger-and-prometheus | ||
namespace: nsm-system | ||
spec: | ||
payload: ETHERNET |
19 changes: 19 additions & 0 deletions
19
examples/observability/jaeger-and-prometheus/example/patch-nse.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: nse-kernel | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: nse | ||
env: | ||
- name: NSM_CIDR_PREFIX | ||
value: 172.16.1.100/31 | ||
- name: TELEMETRY | ||
value: "true" | ||
- name: NSM_SERVICE_NAMES | ||
value: "jaeger-and-prometheus" | ||
- name: NSM_REGISTER_SERVICE | ||
value: "false" |