add: bonus

This commit is contained in:
2025-05-14 10:25:56 +02:00
parent a87dc80ba1
commit 5e4d0ad564
7 changed files with 101 additions and 0 deletions

20
bonus/confs/argocd.yaml Normal file
View File

@ -0,0 +1,20 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: playground
namespace: argocd
spec:
project: default
source:
repoURL: http://gitlab-service.gitlab.svc.cluster.local/root/iot-bonus.git
targetRevision: HEAD
path: .
destination:
server: https://kubernetes.default.svc
namespace: dev
syncPolicy:
automated:
selfHeal: true
prune: true
syncOptions:
- CreateNamespace=true

View File

@ -0,0 +1,42 @@
apiVersion: v1
kind: Service
metadata:
name: gitlab-service
spec:
selector:
app: gitlab
ports:
- name: http
port: 80
targetPort: 80
- name: https
port: 443
targetPort: 443
- name: ssh
port: 22
targetPort: 22
type: LoadBalancer
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: gitlab-deployement
labels:
app: gitlab
spec:
replicas: 1
selector:
matchLabels:
app: gitlab
template:
metadata:
labels:
app: gitlab
spec:
containers:
- name: gitlab
image: gitlab/gitlab-ce:latest
ports:
- containerPort: 80
- containerPort: 443
- containerPort: 22

View File

@ -0,0 +1,16 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: minimal-ingress
spec:
rules:
- host: "gitlab.bonus.com"
http:
paths:
- path: "/"
pathType: Prefix
backend:
service:
name: gitlab
port:
number: 80