运行在SAP Kyma上的一个实际pod的例子

Name: test-lambda-84dbb55ddf-8cm4s
Namespace: cx-garage
Priority: 0
Node: gke-xf-giga-yfus-gke-xf-giga-yfus-gke-3980a7ba-dv2s/10.0.0.3
Start Time: Wed, 10 Jul 2019 14:10:21 +0800
Labels: app=test-lambda
created-by=kubeless
function=test-lambda
pod-template-hash=84dbb55ddf
Annotations: function-size: S
prometheus.io/path: /metrics
prometheus.io/port: 8080
prometheus.io/scrape: true
sidecar.istio.io/inject: true
sidecar.istio.io/status:
{“version”:“c69650e46331b2b430ef1bb30108674e2c60549dbc898fb5dbe39f59418b6fb2”,“initContainers”:[“istio-init”],“containers”:[“istio-proxy”]…
Status: Running
IP: 10.48.2.39
Controlled By: ReplicaSet/test-lambda-84dbb55ddf
Init Containers:
prepare:
Container ID: docker://1b48a639f3e2bf7a7df009e8276abb1db9c6a41e4666b978ce08d1c02788354d
Image: kubeless/unzip@sha256:f162c062973cca05459834de6ed14c039d45df8cdb76097f50b028a1621b3697
Image ID: docker-pullable://kubeless/unzip@sha256:f162c062973cca05459834de6ed14c039d45df8cdb76097f50b028a1621b3697
Port:
Host Port:
Command:
sh
-c
Args:
echo ‘fcc35e3f422aae0e9e6b90d3b374be026e64478dd691af4ac9125ae94390ee8e /src/handler.js’ > /tmp/func.sha256 && sha256sum -c /tmp/func.sha256 && cp /src/handler.js /kubeless/handler.js && cp /src/package.json /kubeless
State: Terminated
Reason: Completed
Exit Code: 0
Started: Wed, 10 Jul 2019 14:10:22 +0800
Finished: Wed, 10 Jul 2019 14:10:22 +0800
Ready: True
Restart Count: 0
Environment:
Mounts:
/kubeless from test-lambda (rw)
/src from test-lambda-deps (rw)
/var/run/secrets/kubernetes.io/serviceaccount from default-token-8pc58 (ro)
istio-init:
Container ID: docker://b3a408795f6f0c4f4f83827beb17271f17340838e369c35f0b4d544d1c208373
Image: docker.io/istio/proxy_init:1.1.6
Image ID: docker-pullable://istio/proxy_init@sha256:54d89fb2b3b0a2365f2d2b0a8862f1f8320a63ab6a09c637c60f13f6021c4609
Port:
Host Port:
Args:
-p
15001
-u
1337
-m
REDIRECT
-i
10.0.0.1/8
-x

  -b
  8080
  -d
  15020
State:          Terminated
  Reason:       Completed
  Exit Code:    0
  Started:      Wed, 10 Jul 2019 14:10:23 +0800
  Finished:     Wed, 10 Jul 2019 14:10:24 +0800
Ready:          True
Restart Count:  0
Limits:
  cpu:     100m
  memory:  50Mi
Requests:
  cpu:        10m
  memory:     10Mi
Environment:  
Mounts:       

Containers:
test-lambda:
Container ID: docker://f34c7ccee36d6d0e93ff11c87524320114291606d36718612c1c4929454a230d
Image: eu.gcr.io/kyma-project/kubeless-images-node8:1.2.2
Image ID: docker-pullable://eu.gcr.io/kyma-project/kubeless-images-node8@sha256:024c594eeefe568366f1c283173eadd21c4d89e12ba43ac784f31ef8e6d5a60d
Port: 8080/TCP
Host Port: 0/TCP
State: Running
Started: Wed, 10 Jul 2019 14:10:25 +0800
Ready: True
Restart Count: 0
Limits:
cpu: 100m
memory: 128Mi
Requests:
cpu: 100m
memory: 100Mi
Liveness: exec [curl -f http://localhost:8080/healthz] delay=5s timeout=30s period=5s #success=1 #failure=3
Environment:
FUNC_HANDLER: main
MOD_NAME: handler
FUNC_TIMEOUT: 180
FUNC_RUNTIME: nodejs8
FUNC_MEMORY_LIMIT: 128Mi
FUNC_PORT: 8080
KUBELESS_INSTALL_VOLUME: /kubeless
NODE_PATH: $(KUBELESS_INSTALL_VOLUME)/node_modules
Mounts:
/kubeless from test-lambda (rw)
/var/run/secrets/kubernetes.io/serviceaccount from default-token-8pc58 (ro)
istio-proxy:
Container ID: docker://b441e4411b9cdf3bbdf20a025c956d7e66025b08053934614c0f9d3dfbfb4502
Image: docker.io/istio/proxyv2:1.1.6
Image ID: docker-pullable://istio/proxyv2@sha256:e7ee1ad38bd5b556ad0527ac691a9f647b66835960417b154c5d28b2ed9219cb
Port: 15090/TCP
Host Port: 0/TCP
Args:
proxy
sidecar
–domain
( P O D N A M E S P A C E ) . s v c . c l u s t e r . l o c a l − − c o n f i g P a t h / e t c / i s t i o / p r o x y − − b i n a r y P a t h / u s r / l o c a l / b i n / e n v o y − − s e r v i c e C l u s t e r t e s t − l a m b d a . (POD_NAMESPACE).svc.cluster.local --configPath /etc/istio/proxy --binaryPath /usr/local/bin/envoy --serviceCluster test-lambda. (PODNAMESPACE).svc.cluster.localconfigPath/etc/istio/proxybinaryPath/usr/local/bin/envoyserviceClustertestlambda.(POD_NAMESPACE)
–drainDuration
45s
–parentShutdownDuration
1m0s
–discoveryAddress
istio-pilot.istio-system:15010
–zipkinAddress
zipkin.kyma-system:9411
–connectTimeout
10s
–proxyAdminPort
15000
–concurrency
2
–controlPlaneAuthPolicy
NONE
–statusPort
15020
–applicationPorts
8080
State: Running
Started: Wed, 10 Jul 2019 14:10:25 +0800
Ready: True
Restart Count: 0
Limits:
cpu: 100m
memory: 128Mi
Requests:
cpu: 10m
memory: 128Mi
Readiness: http-get http://:15020/healthz/ready delay=1s timeout=1s period=2s #success=1 #failure=30
Environment:
POD_NAME: test-lambda-84dbb55ddf-8cm4s (v1:metadata.name)
POD_NAMESPACE: cx-garage (v1:metadata.namespace)
INSTANCE_IP: (v1:status.podIP)
ISTIO_META_POD_NAME: test-lambda-84dbb55ddf-8cm4s (v1:metadata.name)
ISTIO_META_CONFIG_NAMESPACE: cx-garage (v1:metadata.namespace)
ISTIO_META_INTERCEPTION_MODE: REDIRECT
ISTIO_METAJSON_ANNOTATIONS: {“function-size”:“S”,“prometheus.io/path":"/metrics",“prometheus.io/port”:“8080”,“prometheus.io/scrape”:“true”,“sidecar.istio.io/inject”:"true”}

  ISTIO_METAJSON_LABELS:         {"app":"test-lambda","created-by":"kubeless","function":"test-lambda","pod-template-hash":"84dbb55ddf"}
                                 
  ISTIO_KUBE_APP_PROBERS:        {}
Mounts:
  /etc/certs/ from istio-certs (ro)
  /etc/istio/proxy from istio-envoy (rw)
  /var/run/secrets/kubernetes.io/serviceaccount from default-token-8pc58 (ro)

Conditions:
Type Status
Initialized True
Ready True
ContainersReady True
PodScheduled True
Volumes:
test-lambda:
Type: EmptyDir (a temporary directory that shares a pod’s lifetime)
Medium:
SizeLimit:
test-lambda-deps:
Type: ConfigMap (a volume populated by a ConfigMap)
Name: test-lambda
Optional: false
default-token-8pc58:
Type: Secret (a volume populated by a Secret)
SecretName: default-token-8pc58
Optional: false
istio-envoy:
Type: EmptyDir (a temporary directory that shares a pod’s lifetime)
Medium: Memory
SizeLimit:
istio-certs:
Type: Secret (a volume populated by a Secret)
SecretName: istio.default
Optional: true
QoS Class: Burstable
Node-Selectors:
Tolerations: node.kubernetes.io/not-ready:NoExecute for 300s
node.kubernetes.io/unreachable:NoExecute for 300s
Events:

你可能感兴趣的:(Kubernetes)