Skip to content

Instantly share code, notes, and snippets.

@thoraxe
Created August 17, 2020 14:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thoraxe/ba74d6eb863791fe6b948c3e2e249278 to your computer and use it in GitHub Desktop.
Save thoraxe/ba74d6eb863791fe6b948c3e2e249278 to your computer and use it in GitHub Desktop.
kind: Deployment
apiVersion: apps/v1
metadata:
annotations:
deployment.kubernetes.io/revision: '1'
selfLink: /apis/apps/v1/namespaces/stressy/deployments/stress
resourceVersion: '31943'
name: stress
uid: b3161dca-06f4-46b8-9736-03a0c6258653
creationTimestamp: '2020-08-17T14:30:12Z'
generation: 1
managedFields:
- manager: Mozilla
operation: Update
apiVersion: apps/v1
time: '2020-08-17T14:30:12Z'
fieldsType: FieldsV1
fieldsV1:
'f:metadata':
'f:labels':
.: {}
'f:app': {}
'f:spec':
'f:progressDeadlineSeconds': {}
'f:replicas': {}
'f:revisionHistoryLimit': {}
'f:selector':
'f:matchLabels':
.: {}
'f:app': {}
'f:strategy':
'f:rollingUpdate':
.: {}
'f:maxSurge': {}
'f:maxUnavailable': {}
'f:type': {}
'f:template':
'f:metadata':
'f:labels':
.: {}
'f:app': {}
'f:spec':
'f:containers':
'k:{"name":"stress-container"}':
.: {}
'f:command': {}
'f:image': {}
'f:imagePullPolicy': {}
'f:name': {}
'f:resources': {}
'f:terminationMessagePath': {}
'f:terminationMessagePolicy': {}
'f:dnsPolicy': {}
'f:restartPolicy': {}
'f:schedulerName': {}
'f:securityContext': {}
'f:terminationGracePeriodSeconds': {}
- manager: kube-controller-manager
operation: Update
apiVersion: apps/v1
time: '2020-08-17T14:30:17Z'
fieldsType: FieldsV1
fieldsV1:
'f:metadata':
'f:annotations':
.: {}
'f:deployment.kubernetes.io/revision': {}
'f:status':
'f:availableReplicas': {}
'f:conditions':
.: {}
'k:{"type":"Available"}':
.: {}
'f:lastTransitionTime': {}
'f:lastUpdateTime': {}
'f:message': {}
'f:reason': {}
'f:status': {}
'f:type': {}
'k:{"type":"Progressing"}':
.: {}
'f:lastTransitionTime': {}
'f:lastUpdateTime': {}
'f:message': {}
'f:reason': {}
'f:status': {}
'f:type': {}
'f:observedGeneration': {}
'f:readyReplicas': {}
'f:replicas': {}
'f:updatedReplicas': {}
namespace: stressy
labels:
app: stress
spec:
replicas: 1
selector:
matchLabels:
app: stress
template:
metadata:
creationTimestamp: null
labels:
app: stress
spec:
containers:
- name: stress-container
image: polinux/stress
command:
- stress
- '-c'
- '1'
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
imagePullPolicy: Always
restartPolicy: Always
terminationGracePeriodSeconds: 30
dnsPolicy: ClusterFirst
securityContext: {}
schedulerName: default-scheduler
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 25%
maxSurge: 25%
revisionHistoryLimit: 10
progressDeadlineSeconds: 600
status:
observedGeneration: 1
replicas: 1
updatedReplicas: 1
readyReplicas: 1
availableReplicas: 1
conditions:
- type: Available
status: 'True'
lastUpdateTime: '2020-08-17T14:30:17Z'
lastTransitionTime: '2020-08-17T14:30:17Z'
reason: MinimumReplicasAvailable
message: Deployment has minimum availability.
- type: Progressing
status: 'True'
lastUpdateTime: '2020-08-17T14:30:17Z'
lastTransitionTime: '2020-08-17T14:30:12Z'
reason: NewReplicaSetAvailable
message: ReplicaSet "stress-6774bcf8d9" has successfully progressed.
apiVersion: autoscaling.k8s.io/v1
kind: VerticalPodAutoscaler
metadata:
creationTimestamp: '2020-08-17T14:27:11Z'
generation: 7
managedFields:
- apiVersion: autoscaling.k8s.io/v1
fieldsType: FieldsV1
fieldsV1:
'f:spec':
.: {}
'f:targetRef':
.: {}
'f:apiVersion': {}
'f:kind': {}
'f:name': {}
'f:updatePolicy':
.: {}
'f:updateMode': {}
manager: Mozilla
operation: Update
time: '2020-08-17T14:27:11Z'
- apiVersion: autoscaling.k8s.io/v1
fieldsType: FieldsV1
fieldsV1:
'f:status':
.: {}
'f:conditions': {}
'f:recommendation':
.: {}
'f:containerRecommendations': {}
manager: recommender
operation: Update
time: '2020-08-17T14:35:55Z'
name: stress-recommender
namespace: stressy
resourceVersion: '33654'
selfLink: >-
/apis/autoscaling.k8s.io/v1/namespaces/stressy/verticalpodautoscalers/stress-recommender
uid: bee93227-9b60-4aac-aa4b-fcf35fe1bd27
spec:
targetRef:
apiVersion: apps/v1
kind: Deployment
name: stress
updatePolicy:
updateMode: Auto
status:
conditions:
- lastTransitionTime: '2020-08-17T14:30:55Z'
status: 'True'
type: RecommendationProvided
recommendation:
containerRecommendations:
- containerName: stress-container
lowerBound:
cpu: 353m
memory: 262144k
target:
cpu: 587m
memory: 262144k
uncappedTarget:
cpu: 587m
memory: 262144k
upperBound:
cpu: 169643m
memory: 3323500k
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment