Deployed tika and gotenburg

This commit is contained in:
JLP 2025-01-31 10:33:56 -05:00
parent 7d27d74e54
commit 1c19bd81e4
No known key found for this signature in database
GPG key ID: 414E00D1FF7519DC
4 changed files with 162 additions and 0 deletions

View file

@ -0,0 +1,48 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
transformers:
- |-
apiVersion: builtin
kind: NamespaceTransformer
metadata:
name: notImportantHere
namespace: apps
unsetOnly: true
namePrefix: gotenburg-
resources:
- ../../../kustomize/deployservice/
replacements:
- source:
kind: Deployment
name: app
fieldPath: metadata.labels.[app.kubernetes.io/appName]
targets:
- select:
kind: Service
fieldPaths:
- spec.ports.0.name
- spec.ports.0.targetPort
- source:
kind: Deployment
name: app
fieldPath: spec.template.spec.containers.0.ports.0.containerPort
targets:
- select:
kind: Service
fieldPaths:
- spec.ports.0.port
patches:
- path: patches/deployment.yaml
target:
kind: Deployment
labels:
- includeSelectors: true
pairs:
app.kubernetes.io/appName: gotenburg
- pairs:
app.kubernetes.io/appNamespace: apps

View file

@ -0,0 +1,33 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: app
spec:
template:
spec:
containers:
- name: gotenburg
image: docker.io/gotenberg/gotenberg:8.7
imagePullPolicy: IfNotPresent
ports:
- containerPort: 3000
name: web
livenessProbe:
httpGet:
scheme: HTTP
path: /health
port: web
initialDelaySeconds: 60
periodSeconds: 10
readinessProbe:
httpGet:
scheme: HTTP
path: /health
port: web
initialDelaySeconds: 30
periodSeconds: 10
startupProbe:
httpGet:
scheme: HTTP
path: /health
port: web

View file

@ -0,0 +1,48 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
transformers:
- |-
apiVersion: builtin
kind: NamespaceTransformer
metadata:
name: notImportantHere
namespace: apps
unsetOnly: true
namePrefix: tika-
resources:
- ../../../kustomize/deployservice/
replacements:
- source:
kind: Deployment
name: app
fieldPath: metadata.labels.[app.kubernetes.io/appName]
targets:
- select:
kind: Service
fieldPaths:
- spec.ports.0.name
- spec.ports.0.targetPort
- source:
kind: Deployment
name: app
fieldPath: spec.template.spec.containers.0.ports.0.containerPort
targets:
- select:
kind: Service
fieldPaths:
- spec.ports.0.port
patches:
- path: patches/deployment.yaml
target:
kind: Deployment
labels:
- includeSelectors: true
pairs:
app.kubernetes.io/appName: tika
- pairs:
app.kubernetes.io/appNamespace: apps

View file

@ -0,0 +1,33 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: app
spec:
template:
spec:
containers:
- name: tika
image: docker.io/apache/tika:latest
imagePullPolicy: IfNotPresent
ports:
- containerPort: 9998
name: web
livenessProbe:
httpGet:
scheme: HTTP
path: /
port: web
initialDelaySeconds: 60
periodSeconds: 10
readinessProbe:
httpGet:
scheme: HTTP
path: /
port: web
initialDelaySeconds: 30
periodSeconds: 10
startupProbe:
httpGet:
scheme: HTTP
path: /
port: web