Skip to content

Commit d93f87b

Browse files
committed
Modify the out of date guide docs.
1 parent 5248a15 commit d93f87b

File tree

1 file changed

+30
-20
lines changed

1 file changed

+30
-20
lines changed

content/docs/other-guides/usage-reporting.md

+30-20
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ weight = 40
55
+++
66

77
When enabled, Kubeflow will report **anonymous** usage data using [spartakus](https://github.com/kubernetes-incubator/spartakus), Kubernetes' reporting tool. Spartakus **does not report any personal information**. See [here](https://github.com/kubernetes-incubator/spartakus) for more detail.
8-
This is entirely voluntary and you can opt
8+
This is entirely voluntary and you can opt out by doing the following:
99

10-
```
10+
```bash
1111
# Delete any existing deployments of spartakus
1212
kubectl delete -n ${NAMESPACE} deploy spartakus-volunteer
1313
```
@@ -16,28 +16,38 @@ kubectl delete -n ${NAMESPACE} deploy spartakus-volunteer
1616
This command completely deletes any spartakus deployment, while the above
1717
command only restarts spartakus with reportUsage set to `false`
1818

19-
```
19+
```bash
2020
kubectl -n ${NAMESPACE} delete deploy -l app=spartakus
2121
```
2222

23-
**Reporting usage data is one of the most significant contributions you can make to Kubeflow; so please consider turning it on.** This data
24-
allows us to improve the project and helps the many companies working on Kubeflow justify continued investment.
23+
**Reporting usage data is one of the most significant contributions you can make to Kubeflow; so please consider turning it on.** This data allows us to improve the project and helps the many companies working on Kubeflow justify continued investment.
2524

26-
You can improve the quality of the data by giving each Kubeflow deployment a unique id by editing `spartakus.yaml` in your `KF_APP` directory:
25+
**To prevent Spartakus from being deployed,** do the following before running `kfctl apply`:
2726

28-
```
29-
apiVersion: v1
30-
data:
31-
usageId: "your usage id"
32-
kind: ConfigMap
33-
metadata:
34-
labels:
35-
kustomize.component: spartakus
36-
name: spartakus-parameters
37-
namespace: kubeflow
38-
```
27+
- Edit `${KFAPP}/app.yaml`
28+
- Delete the entry in KfDef.Spec.Applications for spartakus
3929

40-
Then deploy your changes:
41-
```
42-
kubectl apply -f spartakus.yaml`
30+
```yaml
31+
- kustomizeConfig:
32+
parameters:
33+
- initRequired: true
34+
name: usageId
35+
value: <randomly-generated-id>
36+
- initRequired: true
37+
name: reportUsage
38+
value: "true"
39+
repoRef:
40+
name: manifests
41+
path: common/spartakus
42+
name: spartakus
4343
```
44+
45+
- Delete the entry in KfDef.Spec.ComponentParams for spartakus
46+
47+
spartakus:
48+
* initRequired: true name: usageId value:
49+
* initRequired: true name: reportUsage value:
50+
51+
- Delete the entry in KfDef.Spec.Components for spartakus
52+
53+
* spartakus

0 commit comments

Comments
 (0)