Add: archrepo
Some checks failed
Lint yaml / build-package (push) Failing after 9s

This commit is contained in:
2024-11-06 09:29:27 +00:00
parent 111882e511
commit 1c6c639c91
6 changed files with 100 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: archrepo
labels:
app: archrepo
spec:
replicas: 1
selector:
matchLabels:
app: archrepo
template:
metadata:
labels:
app: archrepo
spec:
containers:
- name: repo
image: gitea.konchin.com/service/archrepo:latest
ports:
- name: http
containerPort: 80
env:
- name: MINIO_ACCESSKEY
valueFrom:
secretKeyRef:
name: archrepo
key: MINIO_ACCESSKEY
- name: MINIO_SECRETKEY
valueFrom:
secretKeyRef:
name: archrepo
key: MINIO_SECRETKEY
imagePullSecrets:
- name: regcred

View File

@@ -0,0 +1,17 @@
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: archrepo
spec:
rules:
- host: "repo.konchin.com"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: archrepo
port:
number: 80

View File

@@ -0,0 +1,13 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: archrepo
generatorOptions:
disableNameSuffixHash: true
resources:
- ns.archrepo.yaml
- deploy.archrepo.yaml
- svc.archrepo.yaml
- ing.archrepo.yaml

View File

@@ -0,0 +1,5 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: archrepo

View File

@@ -0,0 +1,15 @@
---
apiVersion: v1
kind: Service
metadata:
name: archrepo
labels:
app: archrepo
spec:
type: ClusterIP
selector:
app: archrepo
ports:
- name: http
port: 80
targetPort: 80

View File

@@ -0,0 +1,14 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: archrepo
namespace: flux-system
spec:
interval: 10m0s
path: ./archrepo/
prune: true
force: false
sourceRef:
kind: GitRepository
name: applications