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