Skip to content

Commit

Permalink
Merge pull request #61 from qmhu/crane-release-v0.5.0
Browse files Browse the repository at this point in the history
Release v0.5.0
  • Loading branch information
qmhu authored Jun 2, 2022
2 parents b8b3f05 + 1169c3f commit c943fa8
Show file tree
Hide file tree
Showing 8 changed files with 55 additions and 28 deletions.
4 changes: 2 additions & 2 deletions charts/crane/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ sources:

type: application

version: 0.4.0
version: 0.5.0

appVersion: v0.4.0
appVersion: v0.5.0
17 changes: 15 additions & 2 deletions charts/crane/crds/analysis.crane.io_analytics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ spec:
format: int64
type: integer
type: object
config:
additionalProperties:
type: string
description: Override Recommendation configs
type: object
resourceSelectors:
description: ResourceSelector indicates how to select resources(e.g.
a set of Deployments) for an Analytics.
Expand Down Expand Up @@ -210,8 +215,8 @@ spec:
format: date-time
type: string
recommendations:
description: Recommendations is a list of pointers to recommendations
that are updated by this analytics.
description: Recommendations is a list of RecommendationMission that
run parallel.
items:
properties:
apiVersion:
Expand All @@ -233,6 +238,14 @@ spec:
kind:
description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
lastStartTime:
description: LastStartTime is last time we start a recommendation
mission.
format: date-time
type: string
message:
description: Message presents the running message for this mission
type: string
name:
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
type: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -785,6 +785,8 @@ spec:
type: string
sampleInterval:
type: string
targetUtilization:
type: string
type: object
type: object
predictionWindowSeconds:
Expand Down
2 changes: 2 additions & 0 deletions charts/crane/crds/ensurance.crane.io_avoidanceactions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ spec:
kind: AvoidanceAction
listKind: AvoidanceActionList
plural: avoidanceactions
shortNames:
- avoid
singular: avoidanceaction
scope: Cluster
versions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ spec:
kind: NodeQOSEnsurancePolicy
listKind: NodeQOSEnsurancePolicyList
plural: nodeqosensurancepolicies
shortNames:
- nep
singular: nodeqosensurancepolicy
scope: Cluster
versions:
Expand Down Expand Up @@ -95,7 +97,8 @@ spec:
type: integer
type: object
timeoutSeconds:
description: TimeoutSeconds is the timeout for request
description: TimeoutSeconds is the timeout for request. Defaults
to 0, no timeout forever.
format: int32
type: integer
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ spec:
kind: PodQOSEnsurancePolicy
listKind: PodQOSEnsurancePolicyList
plural: podqosensurancepolicies
shortNames:
- qep
singular: podqosensurancepolicy
scope: Namespaced
versions:
Expand Down Expand Up @@ -182,12 +184,9 @@ spec:
required:
- port
type: object
initialDelaySeconds:
description: Init delay time for handler Defaults to 5
format: int32
type: integer
timeoutSeconds:
description: Timeout for request. Defaults to 0, instead not timeout
description: TimeoutSeconds is the timeout for request. Defaults
to 0, no timeout forever
format: int32
type: integer
type: object
Expand Down
24 changes: 12 additions & 12 deletions charts/crane/templates/craned-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,18 +121,18 @@ data:
- targets: []
properties:
resource.cpu-request-percentile: "0.98"
ehpa.deployment-min-replicas: "1"
ehpa.statefulset-min-replicas: "1"
ehpa.workload-min-replicas: "1"
ehpa.pod-min-ready-seconds: "30"
ehpa.pod-available-ratio: "0.5"
ehpa.default-min-replicas: "2"
ehpa.max-replicas-factor: "3"
ehpa.min-cpu-usage-threshold: "10"
ehpa.fluctuation-threshold: "1.5"
ehpa.min-cpu-target-utilization: "30"
ehpa.max-cpu-target-utilization: "75"
ehpa.reference-hpa: "true"
replicas.workload-min-replicas: "3"
replicas.pod-min-ready-seconds: "30"
replicas.pod-available-ratio: "0.5"
replicas.default-min-replicas: "3"
replicas.max-replicas-factor: "3"
replicas.min-cpu-usage-threshold: "0.1"
replicas.fluctuation-threshold: "1.0"
replicas.min-cpu-target-utilization: "30"
replicas.max-cpu-target-utilization: "75"
replicas.cpu-target-utilization: "30"
replicas.cpu-percentile: "95"
replicas.reference-hpa: "true"
{{ if .Values.cranedDashboard.enable }}
---
Expand Down
20 changes: 14 additions & 6 deletions integration/prometheus/override_values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,20 @@ extraScrapeConfigs: |-
metrics_path: /metrics
static_configs:
- targets: ['fadvisor.crane-system.svc.cluster.local:8081']
- job_name: "craned"
honor_timestamps: true
scheme: http
metrics_path: /metrics
static_configs:
- targets: ['craned.crane-system.svc.cluster.local:8080']
- job_name: crane
kubernetes_sd_configs:
- role: pod
relabel_configs:
- action: keep
regex: crane-system;craned-(.+)
source_labels:
- __meta_kubernetes_namespace
- __meta_kubernetes_pod_name
- source_labels:
- __address__
regex: (.*)
replacement: "${1}:8080"
target_label: __address__
server:
service:
Expand Down

0 comments on commit c943fa8

Please sign in to comment.