-
Notifications
You must be signed in to change notification settings - Fork 110
Test Cases (draft)
Ziming edited this page Dec 16, 2021
·
3 revisions
- install cmctl https://github.com/jetstack/cert-manager/releases/
- renew cert
cmctl renew -n cluster-sample-ns sample-public-certificate
- check date
cmctl inspect secret -n cluster-sample-ns sample-public-certificate
- install jaeger docker run -it --rm -p 16686:16686 -p 14268:14268 -p 14250:14250 jaegertracing/all-in-one:1.26
- add yaml in HarborCluster.spec
trace:
enabled: true
sampleRate: 1
provider: jaeger
jaeger:
mode: collector
collector:
endpoint: http://x.x.x.x:14268/api/traces
- check UI http://10.187.136.211:16686/search
- install otel
docker run -d --rm -v
pwd
/otel.yaml:/etc/otel-collector-config.yaml -p 4318:4318 otel/opentelemetry-collector-contrib-dev:latest --config=/etc/otel-collector-config.yaml - otel.yaml
receivers:
otlp:
protocols:
http:
exporters:
jaeger:
endpoint: <jaeger ip>:14250
tls:
insecure: true
processors:
batch:
timeout: 10s
service:
pipelines:
traces:
receivers: [otlp]
processors: [batch]
exporters: [jaeger]
- add yaml in HarborCluster.spec
trace:
enabled: true
sampleRate: 1
provider: otel
otel:
endpoint: 10.187.136.211:4318
urlPath: /v1/traces
compression: false
insecure: true
timeout: 10s
- day2.yaml
Kind: Configurate
xxxxxx
xxx
-
kubectl apply -f day2.yaml
-
kubectl wait xxx
-
call api or check db to verify
-
cases to test
- cases without trivy to test