Added shynet yamls
This commit is contained in:
parent
911c5ff8ec
commit
df30afe181
5 changed files with 134 additions and 0 deletions
13
src/main/resources/matomo/certificate.yaml
Normal file
13
src/main/resources/matomo/certificate.yaml
Normal 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
|
52
src/main/resources/matomo/deployments.yaml
Normal file
52
src/main/resources/matomo/deployments.yaml
Normal 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
|
25
src/main/resources/matomo/ingress.yaml
Normal file
25
src/main/resources/matomo/ingress.yaml
Normal 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: /
|
22
src/main/resources/matomo/services.yaml
Normal file
22
src/main/resources/matomo/services.yaml
Normal 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
|
22
src/main/resources/matomo/statefulsets.yaml
Normal file
22
src/main/resources/matomo/statefulsets.yaml
Normal 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
|
Loading…
Reference in a new issue