diff --git a/namespaces/apps/gotenburg/kustomization.yaml b/namespaces/apps/gotenburg/kustomization.yaml new file mode 100644 index 0000000..dfbc8cd --- /dev/null +++ b/namespaces/apps/gotenburg/kustomization.yaml @@ -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 diff --git a/namespaces/apps/gotenburg/patches/deployment.yaml b/namespaces/apps/gotenburg/patches/deployment.yaml new file mode 100644 index 0000000..82565de --- /dev/null +++ b/namespaces/apps/gotenburg/patches/deployment.yaml @@ -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 diff --git a/namespaces/apps/tika/kustomization.yaml b/namespaces/apps/tika/kustomization.yaml new file mode 100644 index 0000000..25c92ab --- /dev/null +++ b/namespaces/apps/tika/kustomization.yaml @@ -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 diff --git a/namespaces/apps/tika/patches/deployment.yaml b/namespaces/apps/tika/patches/deployment.yaml new file mode 100644 index 0000000..22cfc6d --- /dev/null +++ b/namespaces/apps/tika/patches/deployment.yaml @@ -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