-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
265 additions
and
22 deletions.
There are no files selected for viewing
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,5 @@ | ||
kustomize build ./crds | kubectl apply -f - | ||
|
||
# wait all CRD's are available | ||
kustomize build ./crds | kubectl wait --for condition=established --timeout=60s -f - | ||
kustomize build . | kubectl apply -f - |
49 changes: 49 additions & 0 deletions
49
k8s-kustomize/infrastructure/monitoring/grafana-datasources.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,49 @@ | ||
apiVersion: 1 | ||
|
||
datasources: | ||
- name: Prometheus | ||
type: prometheus | ||
uid: prometheus | ||
access: proxy | ||
orgId: 1 | ||
url: http://prometheus:9090 | ||
basicAuth: false | ||
isDefault: false | ||
version: 1 | ||
editable: false | ||
jsonData: | ||
httpMethod: GET | ||
|
||
- name: Loki | ||
type: loki | ||
access: proxy | ||
url: http://loki:3100 | ||
basicAuth: false | ||
isDefault: true | ||
version: 1 | ||
editable: false | ||
jsonData: | ||
httpHeaderName1: "X-Scope-OrgID" | ||
derivedFields: | ||
- datasourceName: Tempo | ||
matcherRegex: (?:traceID|trace_id):(\\w+) | ||
name: TraceID | ||
url: "$${__value.raw}" | ||
datasourceUid: tempo | ||
secureJsonData: | ||
httpHeaderValue1: "tenant1" | ||
|
||
- name: Tempo | ||
type: tempo | ||
access: proxy | ||
orgId: 1 | ||
url: http://tempo-tempostack-query-frontend:3200 | ||
basicAuth: false | ||
version: 1 | ||
editable: false | ||
apiVersion: 1 | ||
uid: tempo | ||
jsonData: | ||
httpMethod: GET | ||
serviceMap: | ||
datasourceUid: prometheus |
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
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,50 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: jaeger-all-in-one | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: jaeger | ||
template: | ||
metadata: | ||
labels: | ||
app: jaeger | ||
spec: | ||
containers: | ||
- name: jaeger | ||
image: jaegertracing/all-in-one:latest | ||
ports: | ||
- containerPort: 16686 | ||
- containerPort: 14268 | ||
- containerPort: 14250 | ||
- containerPort: 4317 | ||
- containerPort: 4318 | ||
|
||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: jaeger-service | ||
spec: | ||
type: NodePort | ||
selector: | ||
app: jaeger | ||
ports: | ||
- name: ui | ||
port: 16686 | ||
targetPort: 16686 | ||
nodePort: 30001 | ||
- name: collector | ||
port: 14268 | ||
targetPort: 14268 | ||
- name: grpc | ||
port: 14250 | ||
targetPort: 14250 | ||
- name: otlp-grpc | ||
port: 4317 | ||
targetPort: 4317 | ||
- name: otlp-http | ||
port: 4318 | ||
targetPort: 4318 |
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
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
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,33 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: zipkin-all-in-one | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: zipkin | ||
template: | ||
metadata: | ||
labels: | ||
app: zipkin | ||
spec: | ||
containers: | ||
- name: zipkin | ||
image: openzipkin/zipkin:latest | ||
ports: | ||
- containerPort: 9411 | ||
|
||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: zipkin-service | ||
spec: | ||
type: NodePort | ||
selector: | ||
app: zipkin | ||
ports: | ||
- port: 9411 | ||
targetPort: 9411 | ||
nodePort: 30002 |
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,30 @@ | ||
# This compose file is for demonstration only, do not use in prod. | ||
version: "3.9" | ||
services: | ||
app: | ||
depends_on: | ||
postgres: | ||
condition: service_healthy | ||
image: svhd/logto:${TAG-latest} | ||
entrypoint: ["sh", "-c", "npm run cli db seed -- --swe && npm start"] | ||
ports: | ||
- 3001:3001 | ||
- 3002:3002 | ||
environment: | ||
- TRUST_PROXY_HEADER=1 | ||
- DB_URL=postgres://postgres:p0stgr3s@postgres:5432/logto | ||
# Mandatory for GitPod to map host env to the container, thus GitPod can dynamically configure the public URL of Logto; | ||
# Or, you can leverage it for local testing. | ||
- ENDPOINT | ||
- ADMIN_ENDPOINT | ||
postgres: | ||
image: postgres:14-alpine | ||
user: postgres | ||
environment: | ||
POSTGRES_USER: postgres | ||
POSTGRES_PASSWORD: p0stgr3s | ||
healthcheck: | ||
test: ["CMD-SHELL", "pg_isready"] | ||
interval: 10s | ||
timeout: 5s | ||
retries: 5 |
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