mirror of
https://github.com/puppetmaster/typhoon.git
synced 2024-12-27 22:39:32 +01:00
de88fa5457
* Switch to k8s.gcr.io vanity image name * Add service account, Role, and ClusterRole for heapster
61 lines
1.5 KiB
YAML
61 lines
1.5 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: heapster
|
|
namespace: kube-system
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
name: heapster
|
|
phase: prod
|
|
template:
|
|
metadata:
|
|
labels:
|
|
name: heapster
|
|
phase: prod
|
|
spec:
|
|
serviceAccountName: heapster
|
|
containers:
|
|
- name: heapster
|
|
image: k8s.gcr.io/heapster-amd64:v1.5.1
|
|
command:
|
|
- /heapster
|
|
- --source=kubernetes.summary_api:''
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /healthz
|
|
port: 8082
|
|
scheme: HTTP
|
|
initialDelaySeconds: 180
|
|
timeoutSeconds: 5
|
|
- name: heapster-nanny
|
|
image: k8s.gcr.io/addon-resizer:1.7
|
|
command:
|
|
- /pod_nanny
|
|
- --cpu=80m
|
|
- --extra-cpu=0.5m
|
|
- --memory=140Mi
|
|
- --extra-memory=4Mi
|
|
- --threshold=5
|
|
- --deployment=heapster
|
|
- --container=heapster
|
|
- --poll-period=300000
|
|
- --estimator=exponential
|
|
env:
|
|
- name: MY_POD_NAME
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: metadata.name
|
|
- name: MY_POD_NAMESPACE
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: metadata.namespace
|
|
resources:
|
|
limits:
|
|
cpu: 50m
|
|
memory: 90Mi
|
|
requests:
|
|
cpu: 50m
|
|
memory: 90Mi
|