This commit is contained in:
36
archrepo/deploy.archrepo.yaml
Normal file
36
archrepo/deploy.archrepo.yaml
Normal 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
|
||||||
17
archrepo/ing.archrepo.yaml
Normal file
17
archrepo/ing.archrepo.yaml
Normal 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
|
||||||
13
archrepo/kustomization.yaml
Normal file
13
archrepo/kustomization.yaml
Normal 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
|
||||||
5
archrepo/ns.archrepo.yaml
Normal file
5
archrepo/ns.archrepo.yaml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: archrepo
|
||||||
15
archrepo/svc.archrepo.yaml
Normal file
15
archrepo/svc.archrepo.yaml
Normal 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
|
||||||
14
flux-applications/archrepo.yaml
Normal file
14
flux-applications/archrepo.yaml
Normal 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
|
||||||
Reference in New Issue
Block a user