Upload files to "/"

This commit is contained in:
2026-02-10 13:29:35 +00:00
parent 1357bd6cce
commit 630f4abaee
2 changed files with 137 additions and 0 deletions

66
antinix-test-ingress.yaml Normal file
View File

@@ -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

71
grafana.yaml Normal file
View File

@@ -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