Skip to content

Commit 7e61220

Browse files
committed
release v0.11.0
1 parent 8ee602d commit 7e61220

File tree

8 files changed

+41
-69
lines changed

8 files changed

+41
-69
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.17
55
require (
66
github.com/evanphx/json-patch v4.11.0+incompatible
77
github.com/go-echarts/go-echarts/v2 v2.2.4
8-
github.com/gocrane/api v0.10.0
8+
github.com/gocrane/api v0.11.0
99
github.com/google/cadvisor v0.39.2
1010
github.com/jaypipes/ghw v0.9.0
1111
github.com/mjibson/go-dsp v0.0.0-20180508042940-11479a337f12

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,8 @@ github.com/gobwas/pool v0.2.1 h1:xfeeEhW7pwmX8nuLVlqbzVc7udMDrwetjEv+TZIz1og=
348348
github.com/gobwas/pool v0.2.1/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw=
349349
github.com/gobwas/ws v1.1.0-rc.5 h1:QOAag7FoBaBYYHRqzqkhhd8fq5RTubvI4v3Ft/gDVVQ=
350350
github.com/gobwas/ws v1.1.0-rc.5/go.mod h1:nzvNcVha5eUziGrbxFCo6qFIojQHjJV5cLYIbezhfL0=
351-
github.com/gocrane/api v0.10.0 h1:qzYFg9I2NNuvkZ7PZKCOmz4oEnRa+hvl68rEW12ZGdI=
352-
github.com/gocrane/api v0.10.0/go.mod h1:GxI+t9AW8+NsHkz2JkPBIJN//9eLUjTZl1ScYAbXMbk=
351+
github.com/gocrane/api v0.11.0 h1:cS7653Q/V2StBeQJzIxF2oqz/9iDktfiX6qYVSMCWMg=
352+
github.com/gocrane/api v0.11.0/go.mod h1:GxI+t9AW8+NsHkz2JkPBIJN//9eLUjTZl1ScYAbXMbk=
353353
github.com/godbus/dbus/v5 v5.0.3/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
354354
github.com/godbus/dbus/v5 v5.0.4 h1:9349emZab16e7zQvpmsbtjc18ykshndd8y2PG3sgJbA=
355355
github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=

site/content/en/docs/Getting started/Installation/installation.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ weight: 11
99
- Kubernetes 1.18+
1010
- Helm 3.1.0
1111

12+
{{% alert color="warning" %}}
13+
If your Kubernetes version >= 1.26, please referring to [PR](https://github.com/gocrane/crane/pull/839)
14+
{{% /alert %}}
15+
1216
## Steps
1317

1418
### Helm Installation

site/content/en/docs/Getting started/Installation/quick-start.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ Please referring to [Installation](/docs/getting-started/installation/installati
2121
- Helm 3.1.0
2222
- Kind 0.16+
2323

24+
{{% alert color="warning" %}}
25+
If your Kubernetes version >= 1.26, please referring to [PR](https://github.com/gocrane/crane/pull/839)
26+
{{% /alert %}}
27+
2428
## Installation
2529

2630
Following command will install Crane with dependencies applications(Prometheus/Grafana).

site/content/en/docs/Tutorials/Recommendation/recommendation-framework.md

Lines changed: 11 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -57,44 +57,22 @@ kubectl apply -f workload-rules.yaml
5757

5858
This example will analysis Resource and Replicas for Deployments and StatefulSets in all namespace.。
5959

60-
2. Check the RecommendationRule recommendation progress. Observe the progress of recommendation tasks through `Status.recommendations`. Recommendation tasks are executed sequentially. If lastStartTime of all tasks is the latest time and message has value, it indicates that this recommendation is completed.
60+
2. Check the RecommendationRule recommendation progress. Through the annotations of the Recommendation, the start time of the last run of the job and the results can be observed.
6161

6262
```shell
63-
kubectl get rr workloads-rule
63+
kubectl get recommend workloads-rule-replicas-7djlk -o yaml
6464
```
6565

6666
```yaml
67-
status:
68-
lastUpdateTime: "2022-09-28T10:36:02Z"
69-
recommendations:
70-
- apiVersion: analysis.crane.io/v1alpha1
71-
kind: Recommendation
72-
lastStartTime: "2022-09-28T10:36:02Z"
73-
message: Success
74-
name: workloads-rule-replicas-rckvb
75-
namespace: default
76-
recommenderRef:
77-
name: Replicas
78-
targetRef:
79-
apiVersion: apps/v1
80-
kind: Deployment
81-
name: php-apache
82-
namespace: default
83-
uid: b15cbcd7-6fe2-4ace-9ae8-11cc0a6e69c2
84-
- apiVersion: analysis.crane.io/v1alpha1
85-
kind: Recommendation
86-
lastStartTime: "2022-09-28T10:36:02Z"
87-
message: Success
88-
name: workloads-rule-resource-pnnxn
89-
namespace: default
90-
recommenderRef:
91-
name: Resource
92-
targetRef:
93-
apiVersion: apps/v1
94-
kind: Deployment
95-
name: php-apache
96-
namespace: default
97-
uid: 8472013a-bda2-4025-b0df-3fdc69c1c910
67+
apiVersion: analysis.crane.io/v1alpha1
68+
kind: Recommendation
69+
metadata:
70+
annotations:
71+
analysis.crane.io/last-start-time: "2023-07-24 11:43:58"
72+
analysis.crane.io/message: 'Failed to run recommendation flow in recommender Replicas:
73+
Replicas CalculatePodTemplateRequests cpu failed: missing request for cpu'
74+
analysis.crane.io/run-number: "59"
75+
creationTimestamp: "2023-06-01T11:37:16Z"
9876
```
9977

10078
3. Check `Recommendation`

site/content/zh/docs/Getting started/Installation/installation.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ Crane 安装时间在10分钟左右,具体时间也依赖集群规模以及硬
1919
- Kubernetes 1.18+
2020
- Helm 3.1.0
2121

22+
{{% alert color="warning" %}}
23+
如果你的 Kubernetes 版本 >= 1.26, 请参考 [PR](https://github.com/gocrane/crane/pull/839)
24+
{{% /alert %}}
25+
2226
## 安装流程
2327

2428
### 安装 Helm

site/content/zh/docs/Getting started/Installation/quick-start.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ weight: 10
2020
- Helm 3.1.0
2121
- Kind 0.16+
2222

23+
{{% alert color="warning" %}}
24+
如果你的 Kubernetes 版本 >= 1.26, 请参考 [PR](https://github.com/gocrane/crane/pull/839)
25+
{{% /alert %}}
26+
2327
## 安装
2428

2529
以下命令将安装 Crane 以及其依赖 (Prometheus/Grafana).

site/content/zh/docs/Tutorials/Recommendation/recommendation-framework.md

Lines changed: 11 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -57,44 +57,22 @@ kubectl apply -f workload-rules.yaml
5757

5858
这个例子会对所有 namespace 中的 Deployments 和 StatefulSets 做资源推荐和副本数推荐。
5959

60-
2. 检查 RecommendationRule 的推荐进度。通过 Status.recommendations 观察推荐任务的进度,推荐任务是顺序执行,如果所有任务的 lastStartTime 为最近时间且 message 有值,则表示这一次推荐完成
60+
2. 检查 RecommendationRule 的推荐进度。通过 Recommendation 的 Annotation 可观察到任务的上次开始时间和运行的结果。
6161

6262
```shell
63-
kubectl get rr workloads-rule
63+
kubectl get recommend workloads-rule-replicas-7djlk -o yaml
6464
```
6565

6666
```yaml
67-
status:
68-
lastUpdateTime: "2022-09-28T10:36:02Z"
69-
recommendations:
70-
- apiVersion: analysis.crane.io/v1alpha1
71-
kind: Recommendation
72-
lastStartTime: "2022-09-28T10:36:02Z"
73-
message: Success
74-
name: workloads-rule-replicas-rckvb
75-
namespace: default
76-
recommenderRef:
77-
name: Replicas
78-
targetRef:
79-
apiVersion: apps/v1
80-
kind: Deployment
81-
name: php-apache
82-
namespace: default
83-
uid: b15cbcd7-6fe2-4ace-9ae8-11cc0a6e69c2
84-
- apiVersion: analysis.crane.io/v1alpha1
85-
kind: Recommendation
86-
lastStartTime: "2022-09-28T10:36:02Z"
87-
message: Success
88-
name: workloads-rule-resource-pnnxn
89-
namespace: default
90-
recommenderRef:
91-
name: Resource
92-
targetRef:
93-
apiVersion: apps/v1
94-
kind: Deployment
95-
name: php-apache
96-
namespace: default
97-
uid: 8472013a-bda2-4025-b0df-3fdc69c1c910
67+
apiVersion: analysis.crane.io/v1alpha1
68+
kind: Recommendation
69+
metadata:
70+
annotations:
71+
analysis.crane.io/last-start-time: "2023-07-24 11:43:58"
72+
analysis.crane.io/message: 'Failed to run recommendation flow in recommender Replicas:
73+
Replicas CalculatePodTemplateRequests cpu failed: missing request for cpu'
74+
analysis.crane.io/run-number: "59"
75+
creationTimestamp: "2023-06-01T11:37:16Z"
9876
```
9977

10078
3. 查看优化建议 `Recommendation`

0 commit comments

Comments
 (0)