Skip to content

Instantly share code, notes, and snippets.

@feiskyer
Created May 25, 2018 02:38
Show Gist options
  • Save feiskyer/6a3cb7e67a11f35d024372366185c14e to your computer and use it in GitHub Desktop.
Save feiskyer/6a3cb7e67a11f35d024372366185c14e to your computer and use it in GitHub Desktop.
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: "1"
generation: 1
labels:
addonmanager.kubernetes.io/mode: EnsureExists
k8s-app: heapster
kubernetes.io/cluster-service: "true"
name: heapster
namespace: kube-system
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
k8s-app: heapster
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
annotations:
scheduler.alpha.kubernetes.io/critical-pod: ""
labels:
k8s-app: heapster
spec:
containers:
- command:
- /heapster
- --source=kubernetes.summary_api:''
image: k8s-gcrio.azureedge.net/heapster-amd64:v1.5.1
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 3
httpGet:
path: /healthz
port: 8082
scheme: HTTP
initialDelaySeconds: 180
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
name: heapster
resources:
limits:
cpu: 88m
memory: 204Mi
requests:
cpu: 88m
memory: 204Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
- command:
- /pod_nanny
- --config-dir=/etc/config
- --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:
apiVersion: v1
fieldPath: metadata.name
- name: MY_POD_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
image: k8s-gcrio.azureedge.net/addon-resizer:1.8.1
imagePullPolicy: IfNotPresent
name: heapster-nanny
resources:
limits:
cpu: 88m
memory: 204Mi
requests:
cpu: 88m
memory: 204Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /etc/config
name: heapster-config-volume
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
serviceAccount: heapster
serviceAccountName: heapster
terminationGracePeriodSeconds: 30
tolerations:
- key: CriticalAddonsOnly
operator: Exists
volumes:
- configMap:
defaultMode: 420
name: heapster-config
name: heapster-config-volume
---
apiVersion: v1
data:
NannyConfiguration: |-
apiVersion: nannyconfig/v1alpha1
kind: NannyConfiguration
kind: ConfigMap
metadata:
labels:
addonmanager.kubernetes.io/mode: EnsureExists
kubernetes.io/cluster-service: "true"
name: heapster-config
namespace: kube-system
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment