Skip to content

Instantly share code, notes, and snippets.

@jlewi
Created February 13, 2023 19:42
Show Gist options
  • Save jlewi/36a0c4fd8ee97200310fd62eccfaa244 to your computer and use it in GitHub Desktop.
Save jlewi/36a0c4fd8ee97200310fd62eccfaa244 to your computer and use it in GitHub Desktop.
get pod
W0213 11:39:11.780602 66135 gcp.go:120] WARNING: the gcp auth plugin is deprecated in v1.22+, unavailable in v1.25+; use gcloud instead.
To learn more, consult https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
autopilot.gke.io/resource-adjustment: '{"input":{"containers":[{"limits":{"cpu":"500m","ephemeral-storage":"1Gi","memory":"8Gi"},"requests":{"cpu":"250m","ephemeral-storage":"1Gi","memory":"1Gi"},"name":"server"}]},"output":{"containers":[{"limits":{"cpu":"250m","ephemeral-storage":"1Gi","memory":"1Gi"},"requests":{"cpu":"250m","ephemeral-storage":"1Gi","memory":"1Gi"},"name":"server"}]},"modified":true}'
deployment.kubernetes.io/revision: "11"
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"apps/v1","kind":"Deployment","metadata":{"annotations":{},"labels":{"app":"service"},"name":"server","namespace":"chat"},"spec":{"replicas":1,"selector":{"matchLabels":{"app":"service"}},"template":{"metadata":{"labels":{"app":"service","component":"pod"}},"spec":{"containers":[{"command":["uvicorn","app:app","--host=0.0.0.0"],"env":[{"name":"WEAVIATE_URL","value":"https://dogfood.weaviate.network"},{"name":"OPENAI_API_KEY","valueFrom":{"secretKeyRef":{"key":"openai-api-key","name":"openai-api-key"}}}],"image":"gcr.io/chat-lewi/chat/server:8a3e73ec-991e-4e18-9731-af60579a439c","name":"server","resources":{"limits":{"cpu":".5","memory":"8Gi"},"requests":{"cpu":".250","memory":"1Gi"}}}]}}}}
creationTimestamp: "2023-02-07T02:15:07Z"
generation: 11
labels:
app: service
name: server
namespace: chat
resourceVersion: "3124257"
uid: b53fdd73-f839-4ce0-82f3-d16c4ed1b70d
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: service
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
creationTimestamp: null
labels:
app: service
component: pod
spec:
containers:
- command:
- uvicorn
- app:app
- --host=0.0.0.0
env:
- name: WEAVIATE_URL
value: https://dogfood.weaviate.network
- name: OPENAI_API_KEY
valueFrom:
secretKeyRef:
key: openai-api-key
name: openai-api-key
image: gcr.io/chat-lewi/chat/server:8a3e73ec-991e-4e18-9731-af60579a439c
imagePullPolicy: IfNotPresent
name: server
resources:
limits:
cpu: 250m
ephemeral-storage: 1Gi
memory: 1Gi
requests:
cpu: 250m
ephemeral-storage: 1Gi
memory: 1Gi
securityContext:
capabilities:
drop:
- NET_RAW
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext:
seccompProfile:
type: RuntimeDefault
terminationGracePeriodSeconds: 30
tolerations:
- effect: NoSchedule
key: kubernetes.io/arch
operator: Equal
value: amd64
status:
availableReplicas: 1
conditions:
- lastTransitionTime: "2023-02-07T02:15:08Z"
lastUpdateTime: "2023-02-10T05:59:18Z"
message: ReplicaSet "server-56c44f998c" has successfully progressed.
reason: NewReplicaSetAvailable
status: "True"
type: Progressing
- lastTransitionTime: "2023-02-10T06:01:11Z"
lastUpdateTime: "2023-02-10T06:01:11Z"
message: Deployment has minimum availability.
reason: MinimumReplicasAvailable
status: "True"
type: Available
observedGeneration: 11
readyReplicas: 1
replicas: 1
updatedReplicas: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment