-
Notifications
You must be signed in to change notification settings - Fork 114
/
Copy pathkustomization.yaml
44 lines (41 loc) · 1.1 KB
/
kustomization.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
# these replacements modify the version label for all resources with the tag specified in images.newTag below for NGF
replacements:
- source:
fieldPath: spec.template.spec.containers.[name=nginx-gateway].image
kind: Deployment
options:
delimiter: ':'
index: 1
targets:
- fieldPaths:
- metadata.labels.[app.kubernetes.io/version]
options:
create: true
select:
name: nginx
- fieldPaths:
- metadata.labels.[app.kubernetes.io/version]
options:
create: true
select:
name: nginx-gateway
- fieldPaths:
- metadata.labels.[app.kubernetes.io/version]
options:
create: true
select:
name: nginx-gateway-config
# replace this with the path to the resources you want to deploy
resources:
- default/deploy.yaml
images:
# NGF image
- name: ghcr.io/nginx/nginx-gateway-fabric
newName: my-registry/nginx-gateway-fabric
newTag: new-tag
# NGINX image
- name: ghcr.io/nginx/nginx-gateway-fabric/nginx
newName: my-registry/nginx-gateway-fabric/nginx
newTag: new-tag