-
Notifications
You must be signed in to change notification settings - Fork 40k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make addon-manager cross-platform and use it with hyperkube #25631
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
### addon-manager | ||
|
||
The `addon-manager` periodically checks for Kubernetes manifest changes in the `/etc/kubernetes/addons` directory, | ||
and when there's a new or changed addon, the `addon-manager` automatically `kubectl create`s it. | ||
|
||
It supports `ReplicationControllers`, `Deployments`, `DaemonSets`, `Services`, `PersistentVolumes` and `PersistentVolumeClaims`. | ||
|
||
The `addon-manager` is built for multiple architectures. | ||
|
||
#### How to release | ||
|
||
1. Change something in the source | ||
2. Bump `VERSION` in the `Makefile` | ||
3. Bump `KUBECTL_VERSION` in the `Makefile` if required | ||
4. Build the `amd64` image and test it on a cluster | ||
5. Push all images | ||
|
||
```console | ||
# Build for linux/amd64 (default) | ||
$ make push ARCH=amd64 | ||
# ---> gcr.io/google-containers/kube-addon-manager-amd64:VERSION | ||
# ---> gcr.io/google-containers/kube-addon-manager:VERSION (image with backwards-compatible naming) | ||
|
||
$ make push ARCH=arm | ||
# ---> gcr.io/google-containers/kube-addon-manager-arm:VERSION | ||
|
||
$ make push ARCH=arm64 | ||
# ---> gcr.io/google-containers/kube-addon-manager-arm64:VERSION | ||
|
||
$ make push ARCH=ppc64le | ||
# ---> gcr.io/google-containers/kube-addon-manager-ppc64le:VERSION | ||
``` | ||
|
||
If you don't want to push the images, run `make` or `make build` instead | ||
|
||
|
||
[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/cluster/addons/addon-manager/README.md?pixel)]() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Copyright 2016 The Kubernetes Authors All rights reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# This file should be kept in sync with cluster/addons/dashboard/dashboard-controller.yaml | ||
apiVersion: v1 | ||
kind: ReplicationController | ||
metadata: | ||
name: kubernetes-dashboard | ||
namespace: kube-system | ||
labels: | ||
app: kubernetes-dashboard | ||
version: v1.0.1 | ||
kubernetes.io/cluster-service: "true" | ||
spec: | ||
replicas: 1 | ||
selector: | ||
app: kubernetes-dashboard | ||
version: v1.0.1 | ||
kubernetes.io/cluster-service: "true" | ||
template: | ||
metadata: | ||
labels: | ||
app: kubernetes-dashboard | ||
version: v1.0.1 | ||
kubernetes.io/cluster-service: "true" | ||
spec: | ||
containers: | ||
- name: kubernetes-dashboard | ||
# ARCH will be replaced with the architecture it's built for. Check out the Makefile for more details | ||
image: gcr.io/google_containers/kubernetes-dashboard-ARCH:v1.0.1 | ||
imagePullPolicy: Always | ||
ports: | ||
- containerPort: 9090 | ||
protocol: TCP | ||
livenessProbe: | ||
httpGet: | ||
path: / | ||
port: 9090 | ||
initialDelaySeconds: 30 | ||
timeoutSeconds: 30 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
#!/bin/bash | ||
|
||
# Copyright 2015 The Kubernetes Authors All rights reserved. | ||
# Copyright 2016 The Kubernetes Authors All rights reserved. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How does github think these are the same file?? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have no idea... |
||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
|
@@ -14,18 +12,18 @@ | |
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# Tears down an existing cluster. Warning destroys _all_ docker containers on the machine | ||
|
||
set -o errexit | ||
set -o nounset | ||
set -o pipefail | ||
|
||
echo "Warning, this will delete all Docker containers on this machine." | ||
echo "Proceed? [Y/n]" | ||
|
||
read resp | ||
if [[ $resp == "n" || $resp == "N" ]]; then | ||
exit 0 | ||
fi | ||
|
||
docker ps -aq | xargs docker rm -f | ||
# This file should be kept in sync with cluster/addons/dashboard/dashboard-service.yaml | ||
kind: Service | ||
apiVersion: v1 | ||
metadata: | ||
name: kubernetes-dashboard | ||
namespace: kube-system | ||
labels: | ||
app: kubernetes-dashboard | ||
kubernetes.io/cluster-service: "true" | ||
spec: | ||
ports: | ||
- port: 80 | ||
targetPort: 9090 | ||
selector: | ||
app: kubernetes-dashboard |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line 5 also says the same about files in gce/coreos/kube-manifests/addons/dashboard. Can you merge them in one?