-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jianbo Sun <[email protected]>
- Loading branch information
1 parent
fbfe95a
commit 062232b
Showing
2 changed files
with
49 additions
and
5 deletions.
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
apiVersion: core.oam.dev/v1beta1 | ||
kind: Application | ||
metadata: | ||
name: yurt-app | ||
spec: | ||
components: | ||
- name: redis | ||
type: yurt-helm | ||
properties: | ||
repoType: "helm" | ||
url: "https://charts.bitnami.com/bitnami" | ||
chart: "redis" | ||
version: "16.8.5" | ||
values: | ||
customNodeSelectorLabel: "apps.openyurt.io/nodepool" | ||
policies: | ||
- name: override-beijing | ||
type: override | ||
properties: | ||
components: | ||
- name: redis | ||
properties: | ||
subset: beijing | ||
values: | ||
customodeSelectorValues: ["beijing"] | ||
- name: override-hangzhou | ||
type: override | ||
properties: | ||
components: | ||
- name: redis | ||
properties: | ||
subset: hangzhou | ||
values: | ||
customodeSelectorValues: ["hangzhou"] | ||
workflow: | ||
steps: | ||
- name: deploy2beijing | ||
type: deploy | ||
properties: | ||
policies: ["override-beijing"] | ||
- name: deploy2hangzhou | ||
type: deploy | ||
properties: | ||
policies: ["override-hangzhou"] |
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