eval
This commit is contained in:
1 parent
f5015581a4
commit
e046bd86d1
18 files changed
+3020
-46
No files matched your search
@@ -0,0 +1,29 @@
|
||||
# Deploying go-otel with k8s-helper
|
||||
|
||||
Gitea Actions builds and pushes versioned and `latest` `matst80/otel-debug`
|
||||
images on pushes to `main`, uploads the matching source maps, and then sends a
|
||||
signed reconcile webhook. The agent applies the explicit `k8s/kustomization.yaml`
|
||||
resource list into namespace `monitoring`.
|
||||
|
||||
## One-time setup
|
||||
|
||||
The k8s-helper GitOps CRDs and agent must be installed. The GitSource reuses
|
||||
`dev/gitea-k8s-helper`, whose token must have read access to this repository.
|
||||
Configure a Gitea push-only webhook for this repo at
|
||||
`https://ui.k6n.net/api/gitops/webhooks/gitea`, using the same secret as
|
||||
`K8SHELPER_GITOPS_WEBHOOK_SECRET` on the dashboard. Add that value as the Gitea
|
||||
Actions secret `GITOPS_WEBHOOK_SECRET` too; a user- or organization-level
|
||||
secret can be shared by other repos.
|
||||
|
||||
The runner uses its existing Docker login. Bootstrap once with
|
||||
`kubectl apply -f gitops/` after confirming the monitoring namespace and the
|
||||
`otel-sourcemaps` PVC already exist. The PVC is deliberately excluded from the
|
||||
managed kustomization because its lifecycle was called out for separate review.
|
||||
The ClickHouse manifests, auth-dev resources, and ingress-catchall work are also
|
||||
excluded; this kustomization lists only the receiver Deployment, Service, and
|
||||
Ingress resources. Do not run Flux and k8s-helper against the same resources at
|
||||
the same time; check for an active `flux-system/go-otel` Kustomization before
|
||||
bootstrapping this controller.
|
||||
|
||||
Prune is initially disabled. Inspect the GitOps inventory and applied revision
|
||||
before changing it.
|
||||
@@ -0,0 +1,14 @@
|
||||
apiVersion: gitops.k6n.net/v1alpha1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: go-otel
|
||||
namespace: dev
|
||||
spec:
|
||||
sourceRef:
|
||||
kind: GitSource
|
||||
name: go-otel
|
||||
path: ./k8s
|
||||
targetNamespace: monitoring
|
||||
prune: false
|
||||
wait: true
|
||||
deletionPolicy: Orphan
|
||||
@@ -0,0 +1,16 @@
|
||||
# Keep GitOps CRs outside the path they manage.
|
||||
apiVersion: gitops.k6n.net/v1alpha1
|
||||
kind: GitSource
|
||||
metadata:
|
||||
name: go-otel
|
||||
namespace: dev
|
||||
spec:
|
||||
url: https://git.k6n.net/mats/go-otel.git
|
||||
ref:
|
||||
branch: main
|
||||
interval: 5m
|
||||
secretRef:
|
||||
name: gitea-k8s-helper
|
||||
ignore: |
|
||||
.gitea/
|
||||
docs/
|
||||
Reference in new issue
Block a user