Add Jenkins, Harbor, Portainer, Vault, ELK, Semaphore manifests

This commit is contained in:
Vlad
2025-11-26 10:44:46 +00:00
parent 550c67d154
commit e7cff9d8c1
37 changed files with 666 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: harbor
namespace: argocd
spec:
project: default
source:
repoURL: http://gitea-http.gitea.svc.cluster.local:3000/admin/k3s-gitops
path: apps/harbor
targetRevision: HEAD
destination:
server: https://kubernetes.default.svc
namespace: harbor
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true

View File

@@ -0,0 +1,30 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: harbor-registry
namespace: harbor
spec:
replicas: 1
selector:
matchLabels:
app: harbor-registry
template:
metadata:
labels:
app: harbor-registry
spec:
containers:
- name: registry
image: registry:2
env:
- name: REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY
value: /var/lib/registry
ports:
- containerPort: 5000
volumeMounts:
- name: registry-data
mountPath: /var/lib/registry
volumes:
- name: registry-data
persistentVolumeClaim:
claimName: harbor-registry

View File

@@ -0,0 +1,24 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: harbor-registry
namespace: harbor
annotations:
kubernetes.io/ingress.class: traefik
cert-manager.io/cluster-issuer: letsencrypt-http
spec:
tls:
- hosts:
- harbor.thedevops.dev
secretName: harbor-tls
rules:
- host: harbor.thedevops.dev
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: harbor-registry
port:
number: 5000

View File

@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: harbor

View File

@@ -0,0 +1,11 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: harbor-registry
namespace: harbor
spec:
accessModes: ["ReadWriteOnce"]
storageClassName: longhorn
resources:
requests:
storage: 50Gi

View File

@@ -0,0 +1,13 @@
apiVersion: v1
kind: Service
metadata:
name: harbor-registry
namespace: harbor
spec:
type: ClusterIP
selector:
app: harbor-registry
ports:
- name: registry
port: 5000
targetPort: 5000