forked from stefanprodan/gitops-linkerd
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathfaces-sync.yaml
More file actions
64 lines (64 loc) · 1.45 KB
/
faces-sync.yaml
File metadata and controls
64 lines (64 loc) · 1.45 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
---
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: GitRepository
metadata:
name: faces
spec:
interval: 10m
url: https://github.com/BuoyantIO/faces-demo
ref:
branch: main
ignore: |
/*
!/k8s/01-base/*-profile.yaml
!/k8s/01-base/faces.yaml
!/k8s/01-base/faces-gui.yaml
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
name: faces
spec:
targetNamespace: faces
interval: 10m
path: "./k8s/"
prune: true
sourceRef:
kind: GitRepository
name: faces
patches:
- patch: |
- op: add
path: /spec/template/spec/containers/0/env
value:
- name: FACES_SERVICE
value: "smiley"
- name: ERROR_FRACTION
value: "0"
- name: DELAY_BUCKETS
value: "0,5,10,15,20,50,200,500,1500"
- name: SMILEY
value: "HeartEyes"
target:
kind: Deployment
name: smiley
- patch: |
- op: replace
path: /spec/template/spec/containers/0/env/1
value:
name: ERROR_FRACTION
value: "0"
target:
kind: Deployment
name: (face|color)
- patch: |
- op: add
path: /spec/template/spec/containers/0/env
value:
- name: ERROR_FRACTION
value: "0"
- name: COLOR_foo
value: lightgray
target:
kind: Deployment
name: faces-gui