Skip to content

Instantly share code, notes, and snippets.

@aLekSer
Created May 15, 2020 14:25
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 aLekSer/e9103a44ef59b8b9c260f7eb651ee83a to your computer and use it in GitHub Desktop.
Save aLekSer/e9103a44ef59b8b9c260f7eb651ee83a to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Pod
metadata:
annotations:
agones.dev/container: simple-udp
agones.dev/sdk-version: 1.5.0
cluster-autoscaler.kubernetes.io/safe-to-evict: "false"
kubernetes.io/limit-ranger: 'LimitRanger plugin set: cpu request for container
simple-udp'
creationTimestamp: "2020-05-14T16:55:41Z"
labels:
agones.dev/gameserver: gds-example2
agones.dev/role: gameserver
myspeciallabel: myspecialvalue
name: gds-example2
namespace: default
ownerReferences:
- apiVersion: agones.dev/v1
blockOwnerDeletion: true
controller: true
kind: GameServer
name: gds-example2
uid: be4da11f-9603-11ea-8965-42010a8a00e1
resourceVersion: "8676328"
selfLink: /api/v1/namespaces/default/pods/gds-example2
uid: be6d2e7d-9603-11ea-8965-42010a8a00e1
spec:
affinity:
podAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
matchLabels:
agones.dev/role: gameserver
topologyKey: kubernetes.io/hostname
weight: 100
containers:
- env:
- name: AGONES_SDK_GRPC_PORT
value: "9357"
- name: AGONES_SDK_HTTP_PORT
value: "9358"
image: gcr.io/agones-images/udp-server:0.19
imagePullPolicy: Always
livenessProbe:
failureThreshold: 3
httpGet:
path: /gshealthz
port: 8080
scheme: HTTP
initialDelaySeconds: 5
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 1
name: simple-udp
ports:
- containerPort: 7654
hostPort: 7777
protocol: UDP
resources:
requests:
cpu: 100m
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /var/run/secrets/kubernetes.io/serviceaccount
name: empty
readOnly: true
- args:
- --grpc-port=9357
- --http-port=9358
env:
- name: GAMESERVER_NAME
value: gds-example2
- name: POD_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
- name: FEATURE_GATES
value: ContainerPortAllocation=false&Example=true&PlayerTracking=false
image: gcr.io/agones-images/agones-sdk:1.5.0
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 3
httpGet:
path: /healthz
port: 8080
scheme: HTTP
initialDelaySeconds: 3
periodSeconds: 3
successThreshold: 1
timeoutSeconds: 1
name: agones-gameserver-sidecar
resources:
requests:
cpu: 30m
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /var/run/secrets/kubernetes.io/serviceaccount
name: agones-sdk-token-sp4kc
readOnly: true
dnsPolicy: ClusterFirst
enableServiceLinks: true
nodeName: gke-terratest-cluster2-default-f69cbfa3-mvqv
priority: 0
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
serviceAccount: agones-sdk
serviceAccountName: agones-sdk
terminationGracePeriodSeconds: 30
tolerations:
- effect: NoExecute
key: node.kubernetes.io/not-ready
operator: Exists
tolerationSeconds: 300
- effect: NoExecute
key: node.kubernetes.io/unreachable
operator: Exists
tolerationSeconds: 300
volumes:
- emptyDir: {}
name: empty
- name: agones-sdk-token-sp4kc
secret:
defaultMode: 420
secretName: agones-sdk-token-sp4kc
status:
conditions:
- lastProbeTime: null
lastTransitionTime: "2020-05-14T16:55:41Z"
status: "True"
type: Initialized
- lastProbeTime: null
lastTransitionTime: "2020-05-15T12:08:36Z"
message: 'containers with unready status: [simple-udp]'
reason: ContainersNotReady
status: "False"
type: Ready
- lastProbeTime: null
lastTransitionTime: "2020-05-15T12:08:36Z"
message: 'containers with unready status: [simple-udp]'
reason: ContainersNotReady
status: "False"
type: ContainersReady
- lastProbeTime: null
lastTransitionTime: "2020-05-14T16:55:41Z"
status: "True"
type: PodScheduled
containerStatuses:
- containerID: docker://c8d56a86885201794beb1f892cc649af0b0f0229be820de4d624a46fe91d2616
image: gcr.io/agones-images/agones-sdk:1.5.0
imageID: docker-pullable://gcr.io/agones-images/agones-sdk@sha256:27a0ce4735fa7b1bf37ba6e293b0bcd0903cc5e33c50b02d59004aade68aafb8
lastState: {}
name: agones-gameserver-sidecar
ready: true
restartCount: 0
state:
running:
startedAt: "2020-05-14T16:55:46Z"
- containerID: docker://2ea4d6d59182d83ee1d196e1c7f4d78c37f307bf7dee9f4c8278ed162dabc5d3
image: gcr.io/agones-images/udp-server:0.19
imageID: docker-pullable://gcr.io/agones-images/udp-server@sha256:f6106f6e536773cdcc0ac01243297e7d6551534b3b39077f511c0167e5398fe7
lastState:
terminated:
containerID: docker://2ea4d6d59182d83ee1d196e1c7f4d78c37f307bf7dee9f4c8278ed162dabc5d3
exitCode: 0
finishedAt: "2020-05-15T12:08:35Z"
reason: Completed
startedAt: "2020-05-15T12:08:16Z"
name: simple-udp
ready: false
restartCount: 406
state:
waiting:
message: Back-off 5m0s restarting failed container=simple-udp pod=gds-example2_default(be6d2e7d-9603-11ea-8965-42010a8a00e1)
reason: CrashLoopBackOff
hostIP: 10.138.0.19
phase: Running
podIP: 10.36.2.8
qosClass: Burstable
startTime: "2020-05-14T16:55:41Z"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment