From 630f4abaee0a04a876a7a2b9cbffdb92612a84cd Mon Sep 17 00:00:00 2001 From: antinix Date: Tue, 10 Feb 2026 13:29:35 +0000 Subject: [PATCH] Upload files to "/" --- antinix-test-ingress.yaml | 66 ++++++++++++++++++++++++++++++++++++ grafana.yaml | 71 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 137 insertions(+) create mode 100644 antinix-test-ingress.yaml create mode 100644 grafana.yaml diff --git a/antinix-test-ingress.yaml b/antinix-test-ingress.yaml new file mode 100644 index 0000000..ee2d2e2 --- /dev/null +++ b/antinix-test-ingress.yaml @@ -0,0 +1,66 @@ +--- +apiVersion: v1 +kind: Service +metadata: + name: memelord +spec: + type: ClusterIP + selector: + app: memelord + ports: + - name: http + port: 80 + targetPort: 8000 +--- +apiVersion: cert-manager.io/v1 +kind: Certificate +metadata: + name: antinix-test +spec: + secretName: antinix-test-app-tls + dnsNames: + - antinix-test-app.ee-lte-1.codemowers.io + issuerRef: + name: letsencrypt + kind: ClusterIssuer +--- +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: antinix-test + annotations: + traefik.ingress.kubernetes.io/router.entrypoints: websecure +spec: + rules: + - host: antinix-test-app.ee-lte-1.codemowers.io + http: + paths: + - pathType: Prefix + path: "/" + backend: + service: + name: memelord + port: + number: 80 + tls: + - secretName: antinix-test-app-tls +--- +apiVersion: codemowers.cloud/v1beta1 +kind: OIDCClient +metadata: + name: antinix-test +spec: + displayName: Antinix test + uri: https://antinix-test-app.ee-lte-1.codemowers.io/oidc/authenticate/ + redirectUris: + - https://antinix-test-app.ee-lte-1.codemowers.io/oidc/callback/ + grantTypes: + - authorization_code + - refresh_token + responseTypes: + - code + availableScopes: + - openid + - profile + pkce: false + diff --git a/grafana.yaml b/grafana.yaml new file mode 100644 index 0000000..aba4442 --- /dev/null +++ b/grafana.yaml @@ -0,0 +1,71 @@ +--- +apiVersion: apps/v1 +kind: StatefulSet +metadata: + name: grafana + labels: + app: grafana +spec: + serviceName: grafana + replicas: 1 + selector: + matchLabels: + app: grafana + template: + metadata: + labels: + app: grafana + spec: + containers: + - name: grafana + image: grafana/grafana:latest + imagePullPolicy: IfNotPresent + ports: + - containerPort: 3000 + name: http + env: + - name: GF_DATABASE_TYPE + value: sqlite3 + - name: GF_DATABASE_PATH + value: /var/lib/grafana/grafana.db + volumeMounts: + - name: grafana-storage + mountPath: /var/lib/grafana + readinessProbe: + httpGet: + path: /api/health + port: 3000 + initialDelaySeconds: 10 + periodSeconds: 10 + livenessProbe: + httpGet: + path: /api/health + port: 3000 + initialDelaySeconds: 30 + periodSeconds: 10 + volumeClaimTemplates: + - metadata: + name: grafana-storage + spec: + accessModes: + - ReadWriteOnce + storageClassName: sqlite + resources: + requests: + storage: 5Gi +--- +apiVersion: v1 +kind: Service +metadata: + name: grafana + labels: + app: grafana +spec: + type: ClusterIP + selector: + app: grafana + ports: + - name: http + port: 3000 + targetPort: 3000 +