Skip to content

Instantly share code, notes, and snippets.

@ZachEddy
Last active January 14, 2020 20:44
Show Gist options
  • Save ZachEddy/484db0d27f34b8d1037326b4abc9d978 to your computer and use it in GitHub Desktop.
Save ZachEddy/484db0d27f34b8d1037326b4abc9d978 to your computer and use it in GitHub Desktop.
Easily Accessible Information
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: "1"
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"apps/v1","kind":"Deployment","metadata":{"annotations":{},"labels":{"app":"nginx"},"name":"nginx-deployment","namespace":"default"},"spec":{"replicas":3,"selector":{"matchLabels":{"app":"nginx"}},"template":{"metadata":{"labels":{"app":"nginx"}},"spec":{"containers":[{"image":"nginx:1.7.9","name":"nginx","ports":[{"containerPort":80}]}]}}}}
creationTimestamp: "2020-01-14T20:13:56Z"
generation: 1
labels:
app: nginx
name: nginx-deployment
namespace: default
resourceVersion: "601"
selfLink: /apis/apps/v1/namespaces/default/deployments/nginx-deployment
uid: 4de56c4b-b9cc-43f0-803c-b17fdbb171c2
spec:
progressDeadlineSeconds: 600
replicas: 3
revisionHistoryLimit: 10
selector:
matchLabels:
app: nginx
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
creationTimestamp: null
labels:
app: nginx
spec:
containers:
- image: nginx:1.7.9
imagePullPolicy: IfNotPresent
name: nginx
ports:
- containerPort: 80
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
status:
conditions:
- lastTransitionTime: "2020-01-14T20:13:56Z"
lastUpdateTime: "2020-01-14T20:13:56Z"
message: Deployment does not have minimum availability.
reason: MinimumReplicasUnavailable
status: "False"
type: Available
- lastTransitionTime: "2020-01-14T20:13:56Z"
lastUpdateTime: "2020-01-14T20:13:56Z"
message: ReplicaSet "nginx-deployment-54f57cf6bf" is progressing.
reason: ReplicaSetUpdated
status: "True"
type: Progressing
observedGeneration: 1
replicas: 3
unavailableReplicas: 3
updatedReplicas: 3
apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
annotations:
autoscaling.alpha.kubernetes.io/metrics: '[{"type":"Pods","pods":{"metricName":"packets-per-second","targetAverageValue":"1k"}}]'
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"autoscaling/v2beta2","kind":"HorizontalPodAutoscaler","metadata":{"annotations":{},"name":"apache","namespace":"default"},"spec":{"maxReplicas":10,"metrics":[{"resource":{"name":"cpu","target":{"averageUtilization":50,"type":"Utilization"}},"type":"Resource"},{"pods":{"metric":{"name":"packets-per-second"},"target":{"averageValue":"1k","type":"AverageValue"}},"type":"Pods"}],"minReplicas":1,"scaleTargetRef":{"apiVersion":"apps/v1","kind":"Deployment","name":"apache"}}}
creationTimestamp: "2020-01-14T20:27:29Z"
name: apache
namespace: default
resourceVersion: "1618"
selfLink: /apis/autoscaling/v1/namespaces/default/horizontalpodautoscalers/apache
uid: e6267aed-303e-41bb-a2a7-4a51a3c856ee
spec:
maxReplicas: 10
minReplicas: 1
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: apache
targetCPUUtilizationPercentage: 50
status:
currentReplicas: 0
desiredReplicas: 0
{
"arguments": {
"x-queue-type": "classic"
},
"auto_delete": false,
"backing_queue_status": {
"avg_ack_egress_rate": 0,
"avg_ack_ingress_rate": 0,
"avg_egress_rate": 0,
"avg_ingress_rate": 0,
"delta": [
"delta",
"undefined",
0,
0,
"undefined"
],
"len": 0,
"mode": "default",
"next_seq_id": 0,
"q1": 0,
"q2": 0,
"q3": 0,
"q4": 0,
"target_ram_count": "infinity"
},
"consumer_utilisation": null,
"consumers": 0,
"durable": true,
"effective_policy_definition": {},
"exclusive": false,
"exclusive_consumer_tag": null,
"garbage_collection": {
"fullsweep_after": 65535,
"max_heap_size": 0,
"min_bin_vheap_size": 46422,
"min_heap_size": 233,
"minor_gcs": 3
},
"head_message_timestamp": null,
"idle_since": "2020-01-14 20:43:20",
"memory": 13428,
"message_bytes": 0,
"message_bytes_paged_out": 0,
"message_bytes_persistent": 0,
"message_bytes_ram": 0,
"message_bytes_ready": 0,
"message_bytes_unacknowledged": 0,
"messages": 0,
"messages_details": {
"rate": 0
},
"messages_paged_out": 0,
"messages_persistent": 0,
"messages_ram": 0,
"messages_ready": 0,
"messages_ready_details": {
"rate": 0
},
"messages_ready_ram": 0,
"messages_unacknowledged": 0,
"messages_unacknowledged_details": {
"rate": 0
},
"messages_unacknowledged_ram": 0,
"name": "test-queue",
"node": "rabbit@localhost",
"operator_policy": null,
"policy": null,
"recoverable_slaves": null,
"reductions": 3883,
"reductions_details": {
"rate": 0
},
"single_active_consumer_tag": null,
"state": "running",
"type": "classic",
"vhost": "/"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment