This repository has been archived by the owner on Dec 1, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add RBAC rules to the heapster manifests and combine logical API obje…
…cts into the same file
- Loading branch information
Showing
13 changed files
with
186 additions
and
164 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: heapster | ||
namespace: kube-system | ||
--- | ||
apiVersion: extensions/v1beta1 | ||
kind: Deployment | ||
metadata: | ||
name: heapster | ||
namespace: kube-system | ||
spec: | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
task: monitoring | ||
k8s-app: heapster | ||
spec: | ||
serviceAccountName: heapster | ||
containers: | ||
- name: heapster | ||
image: gcr.io/google_containers/heapster-amd64:v1.3.0 | ||
imagePullPolicy: IfNotPresent | ||
command: | ||
- /heapster | ||
- --source=kubernetes:https://kubernetes.default | ||
- --sink=gcm | ||
- --sink=gcl | ||
- --poll_duration=2m | ||
- --stats_resolution=1m | ||
volumeMounts: | ||
- mountPath: /etc/ssl/certs | ||
name: ssl-certs | ||
readOnly: true | ||
volumes: | ||
- name: ssl-certs | ||
hostPath: | ||
path: /etc/ssl/certs | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
task: monitoring | ||
# For use as a Cluster add-on (https://github.com/kubernetes/kubernetes/tree/master/cluster/addons) | ||
# If you are NOT using this as an addon, you should comment out this line. | ||
kubernetes.io/cluster-service: 'true' | ||
kubernetes.io/name: Heapster | ||
name: heapster | ||
namespace: kube-system | ||
spec: | ||
ports: | ||
- port: 80 | ||
targetPort: 8082 | ||
selector: | ||
k8s-app: heapster |
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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: heapster | ||
namespace: kube-system | ||
--- | ||
apiVersion: extensions/v1beta1 | ||
kind: Deployment | ||
metadata: | ||
name: heapster | ||
namespace: kube-system | ||
spec: | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
task: monitoring | ||
k8s-app: heapster | ||
spec: | ||
serviceAccountName: heapster | ||
containers: | ||
- name: heapster | ||
image: gcr.io/google_containers/heapster-amd64:v1.3.0 | ||
imagePullPolicy: IfNotPresent | ||
command: | ||
- /heapster | ||
- --source=kubernetes:https://kubernetes.default | ||
- --sink=influxdb:http://monitoring-influxdb.kube-system.svc:8086 | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
task: monitoring | ||
# For use as a Cluster add-on (https://github.com/kubernetes/kubernetes/tree/master/cluster/addons) | ||
# If you are NOT using this as an addon, you should comment out this line. | ||
kubernetes.io/cluster-service: 'true' | ||
kubernetes.io/name: Heapster | ||
name: heapster | ||
namespace: kube-system | ||
spec: | ||
ports: | ||
- port: 80 | ||
targetPort: 8082 | ||
selector: | ||
k8s-app: heapster |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
kind: ClusterRoleBinding | ||
apiVersion: rbac.authorization.k8s.io/v1beta1 | ||
metadata: | ||
name: heapster | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: system:heapster | ||
subjects: | ||
- kind: ServiceAccount | ||
name: heapster | ||
namespace: kube-system |
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,35 +1,45 @@ | ||
apiVersion: v1 | ||
kind: ReplicationController | ||
kind: ServiceAccount | ||
metadata: | ||
name: heapster | ||
namespace: kube-system | ||
--- | ||
apiVersion: extensions/v1beta1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
k8s-app: heapster | ||
name: heapster | ||
version: v6 | ||
name: heapster | ||
namespace: kube-system | ||
spec: | ||
replicas: 1 | ||
selector: | ||
k8s-app: heapster | ||
version: v6 | ||
template: | ||
metadata: | ||
labels: | ||
task: monitoring | ||
k8s-app: heapster | ||
version: v6 | ||
spec: | ||
serviceAccountName: heapster | ||
containers: | ||
- name: heapster | ||
image: gcr.io/google_containers/heapster-amd64:v1.3.0-beta.1 | ||
imagePullPolicy: Always | ||
image: gcr.io/google_containers/heapster-amd64:v1.3.0 | ||
imagePullPolicy: IfNotPresent | ||
command: | ||
- /heapster | ||
- --source=kubernetes:https://kubernetes.default | ||
volumeMounts: | ||
- name: ssl-certs | ||
mountPath: /etc/ssl/certs | ||
readOnly: true | ||
volumes: | ||
- name: ssl-certs | ||
hostPath: | ||
path: /etc/ssl/certs | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
task: monitoring | ||
# For use as a Cluster add-on (https://github.com/kubernetes/kubernetes/tree/master/cluster/addons) | ||
# If you are NOT using this as an addon, you should comment out this line. | ||
kubernetes.io/cluster-service: 'true' | ||
kubernetes.io/name: Heapster | ||
name: heapster | ||
namespace: kube-system | ||
spec: | ||
ports: | ||
- port: 80 | ||
targetPort: 8082 | ||
selector: | ||
k8s-app: heapster |
This file was deleted.
Oops, something went wrong.