Skip to content

Commit 963a977

Browse files
committed
add setup readme
1 parent 92a3294 commit 963a977

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

README.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,20 @@ Refer [heapster docs](https://github.com/kubernetes/heapster/blob/master/docs/so
7373
* `--hostname-override`: A customized node name used for node-problem-detector to update conditions and emit events. node-problem-detector gets node name first from `hostname-override`, then `NODE_NAME` environment variable and finally fall back to `os.Hostname`.
7474

7575
## Build Image
76-
Run `make` in the top directory. It will:
77-
* Build the binary.
78-
* Build the docker image. The binary and `config/` are copied into the docker image.
76+
* `go get` or `git clone` node-problem-detector repo into `$GOPATH/src/k8s.io` or `$GOROOT/src/k8s.io`
77+
with one of the below directions:
78+
* `cd $GOPATH/src/k8s.io && git clone [email protected]:kubernetes/node-problem-detector.git`
79+
* `cd $GOROOT/src/k8s.io && git clone [email protected]:kubernetes/node-problem-detector.git`
80+
* `cd $GOPATH/src/k8s.io && go get k8s.io/node-problem-detector`
81+
82+
* run `make` in the top directory. It will:
83+
* Build the binary.
84+
* Build the docker image. The binary and `config/` are copied into the docker image.
85+
86+
**Note**:
87+
By default node-problem-detector will be built with systemd support with `make` command. This requires systemd develop files.
88+
You should download the systemd develop files first. For Ubuntu, `libsystemd-journal-dev` package should
89+
be installed.
7990

8091
## Push Image
8192
`make push` uploads the docker image to registry. By default, the image will be uploaded to

0 commit comments

Comments
 (0)