-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add examples/istio-v1.0.2/patches.yml to show how ytt can be used wit…
…h kapp
- Loading branch information
1 parent
d473230
commit 0cc272e
Showing
3 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Istio | ||
|
||
Downloaded from: https://github.com/knative/serving/releases/tag/v0.2.1 | ||
|
||
- `config.yml` can be used to get rid cluster changes | ||
- `patches.yml` can be used with `ytt` to get rid of helm specific and/or template inaccuracies |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#@ load("@ytt:overlay", "overlay") | ||
|
||
#! annotations should be a map | ||
#@overlay/match by=overlay.subset({"kind": "Service", "metadata":{"name": "istio-egressgateway"}}) | ||
--- | ||
metadata: | ||
#@overlay/remove | ||
annotations: | ||
|
||
#! annotations should be a map | ||
#@overlay/match by=overlay.subset({"kind": "Service", "metadata":{"name": "istio-ingressgateway"}}) | ||
--- | ||
metadata: | ||
#@overlay/remove | ||
annotations: | ||
|
||
#@overlay/match by=overlay.subset({"kind": "MutatingWebhookConfiguration"}) | ||
--- | ||
metadata: | ||
#! MWC is cluster-wide config | ||
#@overlay/remove | ||
namespace: | ||
webhooks: | ||
#@overlay/match by="name" | ||
- name: sidecar-injector.istio.io | ||
clientConfig: | ||
#! caBundle is populated by the cluster | ||
#@overlay/remove | ||
caBundle: | ||
|
||
#@overlay/match by=overlay.subset({"kind": "Deployment", "metadata":{"name": "istio-pilot"}}) | ||
--- | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
#@overlay/match by="name" | ||
- name: discovery | ||
resources: | ||
requests: | ||
#! Kubernetes changes 2048Mi to 2Gi | ||
memory: 2Gi | ||
|
||
#! Delete all post-delete hooks as kapp does not run them | ||
#@overlay/match by=overlay.subset({"metadata":{"annotations": {"helm.sh/hook": "post-delete"}}}),expects="1+" | ||
#@overlay/remove | ||
--- |