Add app: and version: tags to tika as a test
- Determine right replacements to leverage them going forward - Determine how to use `image:` yaml for the deployment
This commit is contained in:
parent
895a7de2c0
commit
2d4c95f5b6
2 changed files with 37 additions and 1 deletions
|
@ -1,6 +1,11 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
images:
|
||||
- name: image
|
||||
newName: docker.io/apache/tika
|
||||
newTag: 3.1.0.0
|
||||
|
||||
transformers:
|
||||
- |-
|
||||
apiVersion: builtin
|
||||
|
@ -16,6 +21,36 @@ resources:
|
|||
- extra/gatus-endpoints.yaml
|
||||
|
||||
replacements:
|
||||
- source:
|
||||
kind: Deployment
|
||||
name: app
|
||||
fieldPath: spec.template.spec.containers.0.image
|
||||
options:
|
||||
delimiter: ":"
|
||||
index: 1
|
||||
targets:
|
||||
- select:
|
||||
kind: Deployment
|
||||
name: app
|
||||
options:
|
||||
create: true
|
||||
fieldPaths:
|
||||
- spec.template.metadata.labels.version
|
||||
- source:
|
||||
kind: Deployment
|
||||
name: app
|
||||
fieldPath: metadata.labels.app
|
||||
options:
|
||||
delimiter: ":"
|
||||
index: 0
|
||||
targets:
|
||||
- select:
|
||||
kind: Deployment
|
||||
name: app
|
||||
options:
|
||||
create: true
|
||||
fieldPaths:
|
||||
- spec.template.metadata.labels.app
|
||||
- source:
|
||||
kind: Deployment
|
||||
name: app
|
||||
|
@ -47,3 +82,4 @@ labels:
|
|||
app.kubernetes.io/appName: tika
|
||||
- pairs:
|
||||
app.kubernetes.io/appNamespace: core
|
||||
app: tika
|
||||
|
|
|
@ -7,7 +7,7 @@ spec:
|
|||
spec:
|
||||
containers:
|
||||
- name: tika
|
||||
image: docker.io/apache/tika:3.1.0.0
|
||||
image: image
|
||||
imagePullPolicy: IfNotPresent
|
||||
ports:
|
||||
- containerPort: 9998
|
||||
|
|
Loading…
Add table
Reference in a new issue