add app stirling-pdf
This commit is contained in:
55
apps/stirling-pdf/base/deployment.yaml
Normal file
55
apps/stirling-pdf/base/deployment.yaml
Normal file
@@ -0,0 +1,55 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: stirling-pdf
|
||||
namespace: stirling-pdf
|
||||
labels:
|
||||
app.kubernetes.io/name: stirling-pdf
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: stirling-pdf
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: stirling-pdf
|
||||
spec:
|
||||
containers:
|
||||
- name: stirling-pdf
|
||||
image: frooodle/s-pdf:0.26.1
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
env:
|
||||
- name: DOCKER_ENABLE_SECURITY
|
||||
value: "true"
|
||||
ports:
|
||||
- protocol: TCP
|
||||
containerPort: 8080
|
||||
name: http
|
||||
volumeMounts:
|
||||
- name: s-pdf-tessdata
|
||||
mountPath: /usr/share/tesseract-ocr/5/tessdata
|
||||
- name: s-pdf-configs
|
||||
mountPath: /configs
|
||||
- name: s-pdf-custom-files
|
||||
mountPath: /customFiles
|
||||
- name: s-pdf-logs
|
||||
mountPath: /logs
|
||||
volumes:
|
||||
- name: s-pdf-tessdata
|
||||
hostPath:
|
||||
path: /mnt/nfs/AppData/stirling-pdf/tessdata
|
||||
type: Directory
|
||||
- name: s-pdf-configs
|
||||
hostPath:
|
||||
path: /mnt/nfs/AppData/stirling-pdf/configs
|
||||
type: Directory
|
||||
- name: s-pdf-custom-files
|
||||
hostPath:
|
||||
path: /mnt/nfs/AppData/stirling-pdf/customFiles
|
||||
type: Directory
|
||||
- name: s-pdf-logs
|
||||
hostPath:
|
||||
path: /mnt/nfs/AppData/stirling-pdf/logs
|
||||
type: Directory
|
||||
|
||||
5
apps/stirling-pdf/base/kustomization.yaml
Normal file
5
apps/stirling-pdf/base/kustomization.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ./deployment.yaml
|
||||
- ./service.yaml
|
||||
17
apps/stirling-pdf/base/service.yaml
Normal file
17
apps/stirling-pdf/base/service.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: stirling-pdf
|
||||
namespace: stirling-pdf
|
||||
labels:
|
||||
app.kubernetes.io/name: stirling-pdf
|
||||
spec:
|
||||
selector:
|
||||
app.kubernetes.io/name: stirling-pdf
|
||||
type: ClusterIP
|
||||
internalTrafficPolicy: Cluster
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 8080
|
||||
targetPort: 8080
|
||||
name: http
|
||||
12
apps/stirling-pdf/env/k3s-cluster/config.json
vendored
Normal file
12
apps/stirling-pdf/env/k3s-cluster/config.json
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"appName": "stirling-pdf",
|
||||
"userGivenName": "stirling-pdf",
|
||||
"namespace": "stirling-pdf",
|
||||
"destNamespace": "stirling-pdf",
|
||||
"destServer": "https://kubernetes.default.svc",
|
||||
"srcPath": "apps/stirling-pdf/env/k3s-cluster",
|
||||
"srcRepoURL": "https://github.com/3dwardch3ng/home-cluster-ops.git",
|
||||
"srcTargetRevision": "",
|
||||
"labels": null,
|
||||
"annotations": null
|
||||
}
|
||||
21
apps/stirling-pdf/env/k3s-cluster/ingress.yaml
vendored
Normal file
21
apps/stirling-pdf/env/k3s-cluster/ingress.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: stirling-pdf-ingress
|
||||
namespace: stirling-pdf
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/ssl-redirect: "false"
|
||||
nginx.ingress.kubernetes.io/use-regex: "true"
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: "s-pdf.cluster.edward.sydney"
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
path: "/"
|
||||
backend:
|
||||
service:
|
||||
name: stirling-pdf
|
||||
port:
|
||||
number: 8080
|
||||
4
apps/stirling-pdf/env/k3s-cluster/kustomization.yaml
vendored
Normal file
4
apps/stirling-pdf/env/k3s-cluster/kustomization.yaml
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../../base
|
||||
Reference in New Issue
Block a user