-
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
Create a new Deployment in kube-system for every version. #23512
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,21 +11,23 @@ | |
apiVersion: extensions/v1beta1 | ||
kind: Deployment | ||
metadata: | ||
name: heapster-v1.1.0-beta1 | ||
name: heapster-v1.1.0.beta1 | ||
namespace: kube-system | ||
labels: | ||
k8s-app: heapster | ||
kubernetes.io/cluster-service: "true" | ||
version: v1.1.0.beta1 | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
k8s-app: heapster | ||
version: v1.1.0.beta1 | ||
template: | ||
metadata: | ||
labels: | ||
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. With this label removed from the pods and replica sets, what will delete them when the version is upgraded in the future? 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. Addon updater uses kubectl stop. |
||
k8s-app: heapster | ||
kubernetes.io/cluster-service: "true" | ||
version: v1.1.0.beta1 | ||
spec: | ||
containers: | ||
- image: gcr.io/google_containers/heapster:v1.1.0-beta1 | ||
|
@@ -91,7 +93,7 @@ spec: | |
- --memory={{ metrics_memory }} | ||
- --extra-memory={{ metrics_memory_per_node }}Mi | ||
- --threshold=5 | ||
- --deployment=heapster-v1.1.0-beta1 | ||
- --deployment=heapster-v1.1.0.beta1 | ||
- --container=heapster | ||
- --poll-period=300000 | ||
- image: gcr.io/google_containers/addon-resizer:1.0 | ||
|
@@ -119,7 +121,7 @@ spec: | |
- --memory={{ eventer_memory }} | ||
- --extra-memory={{ eventer_memory_per_node }}Ki | ||
- --threshold=5 | ||
- --deployment=heapster-v1.1.0-beta1 | ||
- --deployment=heapster-v1.1.0.beta1 | ||
- --container=eventer | ||
- --poll-period=300000 | ||
volumes: | ||
|
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.
These need a version label or two deployments will select the same set of replicasets
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.
Ack.
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.
@mikedanese, I noticed your comment "need a version label or two deployments will select the same set of replicasets". This is news to me, but I'm a novice so am probably confused. Could you spare a moment explain this concern in more detail, or point me to some relevant docs? Thanks.