Added shynet yamls

This commit is contained in:
Clemens Geibel 2022-01-21 13:15:23 +01:00
parent 911c5ff8ec
commit df30afe181
5 changed files with 134 additions and 0 deletions

View file

@ -0,0 +1,13 @@
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: shynet-cert
namespace: default
spec:
secretName: shynet-secret
commonName: fqdn
dnsNames:
- fqdn
issuerRef:
name: letsencrypt-staging-issuer
kind: ClusterIssuer

View file

@ -0,0 +1,52 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: shynet-webserver
namespace: default
labels:
app: shynet-webserver
spec:
selector:
matchLabels:
app: shynet-webserver
strategy:
type: Recreate
replicas: 1
template:
metadata:
labels:
app: shynet-webserver
spec:
containers:
- name: shynet-webserver
image: milesmcc/shynet:edge
imagePullPolicy: IfNotPresent
envFrom:
- secretRef:
name: shynet-settings
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: shynet-celeryworker
namespace: default
labels:
app: shynet-celeryworker
spec:
selector:
matchLabels:
app: shynet-celeryworker
replicas: 1
template:
metadata:
labels:
app: shynet-celeryworker
spec:
containers:
- name: shynet-celeryworker
image: milesmcc/shynet:edge
command: ["./celeryworker.sh"]
imagePullPolicy: IfNotPresent
envFrom:
- secretRef:
name: shynet-settings

View file

@ -0,0 +1,25 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: shynet-webserver-ingress
annotations:
kubernetes.io/ingress.class: addon-http-application-routing
nginx.ingress.kubernetes.io/proxy-body-size: "256m"
nginx.ingress.kubernetes.io/ssl-redirect: "true"
nginx.ingress.kubernetes.io/rewrite-target: /
nginx.ingress.kubernetes.io/proxy-connect-timeout: "300"
nginx.ingress.kubernetes.io/proxy-send-timeout: "300"
nginx.ingress.kubernetes.io/proxy-read-timeout: "300"
spec:
tls:
- hosts:
- fqdn
secretName: jira-secret
rules:
- host: fqdn
http:
paths:
- backend:
serviceName: shynet-webserver-service
servicePort: 8080
path: /

View file

@ -0,0 +1,22 @@
apiVersion: v1
kind: Service
metadata:
name: shynet-redis
spec:
ports:
- port: 6379
name: redis
clusterIP: None
selector:
app: shynet-redis
---
apiVersion: v1
kind: Service
metadata:
name: shynet-webserver-service
spec:
type: ClusterIP
ports:
- port: 8080
selector:
app: shynet-webserver

View file

@ -0,0 +1,22 @@
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: shynet-redis
spec:
selector:
matchLabels:
app: shynet-redis
serviceName: shynet-redis
replicas: 1
template:
metadata:
labels:
app: shynet-redis
spec:
containers:
- name: shynet-redis
image: redis:6.2.6
imagePullPolicy: IfNotPresent
ports:
- containerPort: 6379
name: redis