Skip to content

Commit d4c2cfa

Browse files
committedMay 6, 2016
Initial version of upup: cloudup & nodeup
* GCE support only * Key and secret generation * "Direct mode" makes API calls * "Dry run mode" previews the changes * Terraform output (though key generation not working for master ip) * cloud-init output (though debian image does not ship with cloud-init)
1 parent 7af89bb commit d4c2cfa

File tree

189 files changed

+10086
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

189 files changed

+10086
-0
lines changed
 

‎upup/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
vendor/
2+
.build/

‎upup/DEVELOP.md

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
Random scribblings useful for development...
2+
3+
4+
## Developing nodeup
5+
6+
ssh ${HOST} sudo mkdir -p /opt/nodeup/state
7+
ssh ${HOST} sudo chown -R ${USER} /opt/nodeup
8+
9+
go install k8s.io/kube-deploy/upup/... && rsync ~/k8s/bin/nodeup ${HOST}:/opt/nodeup/nodeup && rsync --delete -avz trees/ ${HOST}:/opt/nodeup/trees/ \
10+
&& rsync state/node.yaml ${HOST}:/opt/nodeup/state/node.yaml \
11+
&& ssh ${HOST} sudo /opt/nodeup/nodeup --v=2 --template=/opt/nodeup/trees/nodeup --state=/opt/nodeup/state --tags=kubernetes_pool,debian_family,gce,systemd
12+
13+
14+
# Random misc
15+
16+
Extract the master node config from a terraform output
17+
18+
cat tf/k8s.tf.json | jq -r '.resource.google_compute_instance["kubernetes-master"].metadata.config' > state/node.yaml
19+
20+
21+
22+
TODOS
23+
======
24+
25+
* Implement number-of-tags prioritization
26+
* Allow files ending in .md to be ignored. Useful for comments.
27+
* Better dependency tracking on systemd services?
28+
* Automatically use different file mode if starts with #! ?
29+
* Support .static under files to allow for files ending in .template?
30+
* How to inherit options
31+
* Allow customization of ordering? Maybe prefix based.
32+
* Cache hashes in-process (along with timestamp?) so we don't hash the kubernetes binary bundle repeatedly
33+
* Fix the fact that we hash assets twice
34+
* Confirm that we drop support for init.d
35+
* Can we just use JSON custom marshalling instead of all our reflection stuff (or at least lighten the load)
36+
37+
* Do we officially publish https://storage.googleapis.com/kubernetes-release/release/v1.2.2/kubernetes-server-linux-amd64.tar.gz (ie just the server tar.gz)?
38+
39+
* Need to start docker-healthcheck once
40+
41+
* Can we replace some or all of nodeup config with pkg/apis/componentconfig/types.go ?
42+

0 commit comments

Comments
 (0)
Please sign in to comment.