add pastebin to apps

This commit is contained in:
Aaron Riedel 2024-10-04 19:45:15 +02:00
parent 04a8b368cc
commit 043f43fbab
Signed by: aaron
GPG key ID: 643004654D40D577
3 changed files with 195 additions and 87 deletions

View file

@ -28,3 +28,24 @@ spec:
- CreateNamespace=true
automated:
prune: false
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: paste
namespace: argocd
spec:
project: default
source:
repoURL: https://git.ar21.de/yolokube/core-deployments.git
targetRevision: HEAD
path: paste
destination:
server: https://kubernetes.default.svc
namespace: paste
syncPolicy:
syncOptions:
- CreateNamespace=true
automated:
selfHeal: false
prune: false

87
paste/manifest.yaml Normal file
View file

@ -0,0 +1,87 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: paste
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: paste-pvc
namespace: paste
spec:
accessModes:
- ReadWriteOnce
volumeMode: Filesystem
resources:
requests:
storage: 8Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: paste-deployment
namespace: paste
labels:
app: paste
spec:
replicas: 1
selector:
matchLabels:
app: paste
template:
metadata:
labels:
app: paste
spec:
securityContext:
fsGroup: 82
containers:
- name: paste
image: privatebin/nginx-fpm-alpine
ports:
- containerPort: 8080
volumeMounts:
- mountPath: "/srv/data"
name: paste-volume
volumes:
- name: paste-volume
persistentVolumeClaim:
claimName: paste-pvc
---
apiVersion: v1
kind: Service
metadata:
name: paste-service
namespace: paste
spec:
selector:
app: paste
ports:
- protocol: TCP
port: 80
targetPort: 8080
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
kubernetes.io/tls-acme: "true"
name: paste-ingress
namespace: paste
spec:
rules:
- host: "paste.apps.yolokube.de"
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: paste-service
port:
number: 80
tls:
- hosts:
- paste.apps.yolokube.de
secretName: paste-tls-key

View file

@ -1,88 +1,88 @@
### example app "privatebin" to test storage
---
apiVersion: v1
kind: Namespace
metadata:
name: paste
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: paste-pvc
namespace: paste
spec:
accessModes:
- ReadWriteOnce
volumeMode: Filesystem
resources:
requests:
storage: 8Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: paste-deployment
namespace: paste
labels:
app: paste
spec:
replicas: 1
selector:
matchLabels:
app: paste
template:
metadata:
labels:
app: paste
spec:
securityContext:
fsGroup: 82
containers:
- name: paste
image: privatebin/nginx-fpm-alpine
ports:
- containerPort: 8080
volumeMounts:
- mountPath: "/srv/data"
name: paste-volume
volumes:
- name: paste-volume
persistentVolumeClaim:
claimName: paste-pvc
---
apiVersion: v1
kind: Service
metadata:
name: paste-service
namespace: paste
spec:
selector:
app: paste
ports:
- protocol: TCP
port: 80
targetPort: 8080
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
kubernetes.io/tls-acme: "true"
name: paste-ingress
namespace: paste
spec:
rules:
- host: "paste.apps.yolokube.de"
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: paste-service
port:
number: 80
tls:
- hosts:
- paste.apps.yolokube.de
secretName: paste-tls-key
#---
#apiVersion: v1
#kind: Namespace
#metadata:
# name: paste
#---
#apiVersion: v1
#kind: PersistentVolumeClaim
#metadata:
# name: paste-pvc
# namespace: paste
#spec:
# accessModes:
# - ReadWriteOnce
# volumeMode: Filesystem
# resources:
# requests:
# storage: 8Gi
#---
#apiVersion: apps/v1
#kind: Deployment
#metadata:
# name: paste-deployment
# namespace: paste
# labels:
# app: paste
#spec:
# replicas: 1
# selector:
# matchLabels:
# app: paste
# template:
# metadata:
# labels:
# app: paste
# spec:
# securityContext:
# fsGroup: 82
# containers:
# - name: paste
# image: privatebin/nginx-fpm-alpine
# ports:
# - containerPort: 8080
# volumeMounts:
# - mountPath: "/srv/data"
# name: paste-volume
# volumes:
# - name: paste-volume
# persistentVolumeClaim:
# claimName: paste-pvc
#---
#apiVersion: v1
#kind: Service
#metadata:
# name: paste-service
# namespace: paste
#spec:
# selector:
# app: paste
# ports:
# - protocol: TCP
# port: 80
# targetPort: 8080
#---
#apiVersion: networking.k8s.io/v1
#kind: Ingress
#metadata:
# annotations:
# kubernetes.io/tls-acme: "true"
# name: paste-ingress
# namespace: paste
#spec:
# rules:
# - host: "paste.apps.yolokube.de"
# http:
# paths:
# - pathType: Prefix
# path: "/"
# backend:
# service:
# name: paste-service
# port:
# number: 80
# tls:
# - hosts:
# - paste.apps.yolokube.de
# secretName: paste-tls-key