-
Notifications
You must be signed in to change notification settings - Fork 386
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #99 from qmhu/samples
Add sample and update Getting started
- Loading branch information
Showing
5 changed files
with
381 additions
and
19 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
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,31 @@ | ||
apiVersion: analysis.crane.io/v1alpha1 | ||
kind: Analytics | ||
metadata: | ||
name: craned-hpa | ||
namespace: crane-system | ||
spec: | ||
type: HPA # This can only be "Resource" or "HPA". | ||
completionStrategy: | ||
completionStrategyType: Periodical # This can only be "Once" or "Periodical". | ||
periodSeconds: 600 # analytics selected resources every 10 minutes | ||
resourceSelectors: # defines all the resources to be select with | ||
- kind: Deployment | ||
apiVersion: apps/v1 | ||
name: craned | ||
|
||
--- | ||
|
||
apiVersion: analysis.crane.io/v1alpha1 | ||
kind: Analytics | ||
metadata: | ||
name: metric-adapter-hpa | ||
namespace: crane-system | ||
spec: | ||
type: HPA # This can only be "Resource" or "HPA". | ||
completionStrategy: | ||
completionStrategyType: Periodical # This can only be "Once" or "Periodical". | ||
periodSeconds: 3600 # analytics selected resources every 1 hour | ||
resourceSelectors: # defines all the resources to be select with | ||
- kind: Deployment | ||
apiVersion: apps/v1 | ||
name: metric-adapter |
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,33 @@ | ||
apiVersion: analysis.crane.io/v1alpha1 | ||
kind: Analytics | ||
metadata: | ||
name: craned-resource | ||
namespace: crane-system | ||
spec: | ||
type: Resource # This can only be "Resource" or "HPA". | ||
completionStrategy: | ||
completionStrategyType: Periodical # This can only be "Once" or "Periodical". | ||
periodSeconds: 86400 # analytics selected resources every 1 day | ||
resourceSelectors: # defines all the resources to be select with | ||
- kind: Deployment | ||
apiVersion: apps/v1 | ||
name: craned | ||
|
||
--- | ||
|
||
apiVersion: analysis.crane.io/v1alpha1 | ||
kind: Analytics | ||
metadata: | ||
name: metric-adapter-resource | ||
namespace: crane-system | ||
spec: | ||
type: Resource # This can only be "Resource" or "HPA". | ||
completionStrategy: | ||
completionStrategyType: Periodical # This can only be "Once" or "Periodical". | ||
periodSeconds: 3600 # analytics selected resources every 1 hour | ||
resourceSelectors: # defines all the resources to be select with | ||
- kind: Deployment | ||
apiVersion: apps/v1 | ||
name: metric-adapter | ||
|
||
|
Oops, something went wrong.