squash all

Mostly copied over from my old repo and modified for app of apps.
Cleaning up the mess from migration

Signed-off-by: gwg313 <gwg313@pm.me>
This commit is contained in:
gwg313 2025-07-03 08:02:33 -04:00
parent 471f30f0b1
commit 52933116f0
Signed by: gwg313
GPG key ID: 60FF63B4826B7400
104 changed files with 2532 additions and 44 deletions

13
yopass/certificate.yaml Normal file
View file

@ -0,0 +1,13 @@
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: yopass-cert
namespace: istio-system
spec:
secretName: yopass-cert
issuerRef:
name: letsencrypt-dns
kind: ClusterIssuer
dnsNames:
- pastebin.local.gwg313.xyz
- pastebin.gwg313.xyz

43
yopass/deployment.yaml Normal file
View file

@ -0,0 +1,43 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: yopass
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: yopass
template:
metadata:
labels:
app.kubernetes.io/name: yopass
spec:
containers:
- name: yopass
image: jhaals/yopass
args:
- "--memcached=localhost:11211"
ports:
- name: http
containerPort: 1337
resources:
limits:
cpu: 100m
memory: 50Mi
requests:
cpu: 100m
memory: 50Mi
- name: yopass-memcached
image: memcached
resources:
limits:
cpu: 100m
memory: 100Mi
requests:
cpu: 100m
memory: 100Mi
args:
- "-m 64"
ports:
- name: memcached
containerPort: 11211

19
yopass/gateway.yaml Normal file
View file

@ -0,0 +1,19 @@
apiVersion: networking.istio.io/v1beta1
kind: Gateway
metadata:
name: yopass-gateway
namespace: yopass
spec:
selector:
istio: gateway
servers:
- port:
number: 443
name: https
protocol: HTTPS
tls:
mode: SIMPLE
credentialName: yopass-cert
hosts:
- pastebin.gwg313.xyz
- pastebin.local.gwg313.xyz

11
yopass/service.yaml Normal file
View file

@ -0,0 +1,11 @@
kind: Service
apiVersion: v1
metadata:
name: yopass
spec:
selector:
app.kubernetes.io/name: yopass
type: ClusterIP
ports:
- name: http
port: 1337

View file

@ -0,0 +1,20 @@
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: yopass
namespace: yopass
spec:
hosts:
- pastebin.gwg313.xyz
- pastebin.local.gwg313.xyz
gateways:
- yopass-gateway
http:
- match:
- uri:
prefix: /
route:
- destination:
host: yopass
port:
number: 1337