Created
December 19, 2018 22:16
-
-
Save incfly/4bf8081dac9e26d7a0eeb4905f072e60 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
annotations: | |
deployment.kubernetes.io/revision: "1" | |
kubectl.kubernetes.io/last-applied-configuration: | | |
{"apiVersion":"extensions/v1beta1","kind":"Deployment","metadata":{"annotations":{},"creationTimestamp":null,"labels":{"app":"nginx-default-http-backend"},"name":"nginx-default-http-backend","namespace":"istio-system"},"spec":{"replicas":1,"selector":{"matchLabels":{"app":"nginx-default-http-backend"}},"strategy":{},"template":{"metadata":{"annotations":{"sidecar.istio.io/status":"{\"version\":\"4d97cbe372b31684ae1db7f97ea9b938f4f7ef0aae7269bcf6d15d3b7c09624e\",\"initContainers\":[\"istio-init\"],\"containers\":[\"istio-proxy\"],\"volumes\":[\"istio-envoy\",\"istio-certs\"],\"imagePullSecrets\":null}"},"creationTimestamp":null,"labels":{"app":"nginx-default-http-backend"}},"spec":{"containers":[{"image":"gcr.io/google_containers/defaultbackend:1.4","livenessProbe":{"httpGet":{"path":"/healthz","port":8080,"scheme":"HTTP"},"initialDelaySeconds":30,"timeoutSeconds":5},"name":"backend","ports":[{"containerPort":8080,"name":"http"}],"resources":{"limits":{"cpu":"10m","memory":"20Mi"},"requests":{"cpu":"10m","memory":"20Mi"}}},{"args":["proxy","sidecar","--configPath","/etc/istio/proxy","--binaryPath","/usr/local/bin/envoy","--serviceCluster","nginx-default-http-backend.default","--drainDuration","2s","--parentShutdownDuration","3s","--discoveryAddress","istio-pilot.istio-system:15011","--zipkinAddress","zipkin.istio-system:9411","--connectTimeout","1s","--proxyAdminPort","15000","--controlPlaneAuthPolicy","MUTUAL_TLS","--statusPort","15020","--applicationPorts","8080"],"env":[{"name":"POD_NAME","valueFrom":{"fieldRef":{"fieldPath":"metadata.name"}}},{"name":"POD_NAMESPACE","valueFrom":{"fieldRef":{"fieldPath":"metadata.namespace"}}},{"name":"INSTANCE_IP","valueFrom":{"fieldRef":{"fieldPath":"status.podIP"}}},{"name":"ISTIO_META_POD_NAME","valueFrom":{"fieldRef":{"fieldPath":"metadata.name"}}},{"name":"ISTIO_META_CONFIG_NAMESPACE","valueFrom":{"fieldRef":{"fieldPath":"metadata.namespace"}}},{"name":"ISTIO_META_INTERCEPTION_MODE","value":"REDIRECT"},{"name":"ISTIO_METAJSON_LABELS","value":"{\"app\":\"nginx-default-http-backend\"}\n"}],"image":"gcr.io/jianfeih-test/proxyv2:1215a","imagePullPolicy":"IfNotPresent","name":"istio-proxy","ports":[{"containerPort":15090,"name":"http-envoy-prom","protocol":"TCP"}],"readinessProbe":{"failureThreshold":30,"httpGet":{"path":"/healthz/ready","port":15020},"initialDelaySeconds":1,"periodSeconds":2},"resources":{"requests":{"cpu":"10m"}},"securityContext":{"readOnlyRootFilesystem":true,"runAsUser":1337},"volumeMounts":[{"mountPath":"/etc/istio/proxy","name":"istio-envoy"},{"mountPath":"/etc/certs/","name":"istio-certs","readOnly":true}]}],"initContainers":[{"args":["-p","15001","-u","1337","-m","REDIRECT","-i","*","-x","","-b","8080","-d","15020"],"image":"gcr.io/jianfeih-test/proxy_init:1215a","imagePullPolicy":"IfNotPresent","name":"istio-init","resources":{"limits":{"cpu":"10m","memory":"10Mi"},"requests":{"cpu":"10m","memory":"10Mi"}},"securityContext":{"capabilities":{"add":["NET_ADMIN"]}}}],"terminationGracePeriodSeconds":60,"volumes":[{"emptyDir":{"medium":"Memory"},"name":"istio-envoy"},{"name":"istio-certs","secret":{"optional":true,"secretName":"istio.default"}}]}}},"status":{}} | |
creationTimestamp: 2018-12-19T22:06:35Z | |
generation: 1 | |
labels: | |
app: nginx-default-http-backend | |
name: nginx-default-http-backend | |
namespace: istio-system | |
resourceVersion: "174916" | |
selfLink: /apis/extensions/v1beta1/namespaces/istio-system/deployments/nginx-default-http-backend | |
uid: 59f798fe-03da-11e9-be3f-42010a80023f | |
spec: | |
progressDeadlineSeconds: 600 | |
replicas: 1 | |
revisionHistoryLimit: 10 | |
selector: | |
matchLabels: | |
app: nginx-default-http-backend | |
strategy: | |
rollingUpdate: | |
maxSurge: 1 | |
maxUnavailable: 1 | |
type: RollingUpdate | |
template: | |
metadata: | |
annotations: | |
sidecar.istio.io/status: '{"version":"4d97cbe372b31684ae1db7f97ea9b938f4f7ef0aae7269bcf6d15d3b7c09624e","initContainers":["istio-init"],"containers":["istio-proxy"],"volumes":["istio-envoy","istio-certs"],"imagePullSecrets":null}' | |
creationTimestamp: null | |
labels: | |
app: nginx-default-http-backend | |
spec: | |
containers: | |
- image: gcr.io/google_containers/defaultbackend:1.4 | |
imagePullPolicy: IfNotPresent | |
livenessProbe: | |
failureThreshold: 3 | |
httpGet: | |
path: /healthz | |
port: 8080 | |
scheme: HTTP | |
initialDelaySeconds: 30 | |
periodSeconds: 10 | |
successThreshold: 1 | |
timeoutSeconds: 5 | |
name: backend | |
ports: | |
- containerPort: 8080 | |
name: http | |
protocol: TCP | |
resources: | |
limits: | |
cpu: 10m | |
memory: 20Mi | |
requests: | |
cpu: 10m | |
memory: 20Mi | |
terminationMessagePath: /dev/termination-log | |
terminationMessagePolicy: File | |
- args: | |
- proxy | |
- sidecar | |
- --configPath | |
- /etc/istio/proxy | |
- --binaryPath | |
- /usr/local/bin/envoy | |
- --serviceCluster | |
- nginx-default-http-backend.default | |
- --drainDuration | |
- 2s | |
- --parentShutdownDuration | |
- 3s | |
- --discoveryAddress | |
- istio-pilot.istio-system:15011 | |
- --zipkinAddress | |
- zipkin.istio-system:9411 | |
- --connectTimeout | |
- 1s | |
- --proxyAdminPort | |
- "15000" | |
- --controlPlaneAuthPolicy | |
- MUTUAL_TLS | |
- --statusPort | |
- "15020" | |
- --applicationPorts | |
- "8080" | |
env: | |
- name: POD_NAME | |
valueFrom: | |
fieldRef: | |
apiVersion: v1 | |
fieldPath: metadata.name | |
- name: POD_NAMESPACE | |
valueFrom: | |
fieldRef: | |
apiVersion: v1 | |
fieldPath: metadata.namespace | |
- name: INSTANCE_IP | |
valueFrom: | |
fieldRef: | |
apiVersion: v1 | |
fieldPath: status.podIP | |
- name: ISTIO_META_POD_NAME | |
valueFrom: | |
fieldRef: | |
apiVersion: v1 | |
fieldPath: metadata.name | |
- name: ISTIO_META_CONFIG_NAMESPACE | |
valueFrom: | |
fieldRef: | |
apiVersion: v1 | |
fieldPath: metadata.namespace | |
- name: ISTIO_META_INTERCEPTION_MODE | |
value: REDIRECT | |
- name: ISTIO_METAJSON_LABELS | |
value: | | |
{"app":"nginx-default-http-backend"} | |
image: gcr.io/jianfeih-test/proxyv2:1215a | |
imagePullPolicy: IfNotPresent | |
name: istio-proxy | |
ports: | |
- containerPort: 15090 | |
name: http-envoy-prom | |
protocol: TCP | |
readinessProbe: | |
failureThreshold: 30 | |
httpGet: | |
path: /healthz/ready | |
port: 15020 | |
scheme: HTTP | |
initialDelaySeconds: 1 | |
periodSeconds: 2 | |
successThreshold: 1 | |
timeoutSeconds: 1 | |
resources: | |
requests: | |
cpu: 10m | |
securityContext: | |
readOnlyRootFilesystem: true | |
runAsUser: 1337 | |
terminationMessagePath: /dev/termination-log | |
terminationMessagePolicy: File | |
volumeMounts: | |
- mountPath: /etc/istio/proxy | |
name: istio-envoy | |
- mountPath: /etc/certs/ | |
name: istio-certs | |
readOnly: true | |
dnsPolicy: ClusterFirst | |
initContainers: | |
- args: | |
- -p | |
- "15001" | |
- -u | |
- "1337" | |
- -m | |
- REDIRECT | |
- -i | |
- '*' | |
- -x | |
- "" | |
- -b | |
- "8080" | |
- -d | |
- "15020" | |
image: gcr.io/jianfeih-test/proxy_init:1215a | |
imagePullPolicy: IfNotPresent | |
name: istio-init | |
resources: | |
limits: | |
cpu: 10m | |
memory: 10Mi | |
requests: | |
cpu: 10m | |
memory: 10Mi | |
securityContext: | |
capabilities: | |
add: | |
- NET_ADMIN | |
terminationMessagePath: /dev/termination-log | |
terminationMessagePolicy: File | |
restartPolicy: Always | |
schedulerName: default-scheduler | |
securityContext: {} | |
terminationGracePeriodSeconds: 60 | |
volumes: | |
- emptyDir: | |
medium: Memory | |
name: istio-envoy | |
- name: istio-certs | |
secret: | |
defaultMode: 420 | |
optional: true | |
secretName: istio.default | |
status: | |
availableReplicas: 1 | |
conditions: | |
- lastTransitionTime: 2018-12-19T22:06:35Z | |
lastUpdateTime: 2018-12-19T22:06:35Z | |
message: Deployment has minimum availability. | |
reason: MinimumReplicasAvailable | |
status: "True" | |
type: Available | |
- lastTransitionTime: 2018-12-19T22:06:35Z | |
lastUpdateTime: 2018-12-19T22:06:47Z | |
message: ReplicaSet "nginx-default-http-backend-56889fc4f6" has successfully progressed. | |
reason: NewReplicaSetAvailable | |
status: "True" | |
type: Progressing | |
observedGeneration: 1 | |
readyReplicas: 1 | |
replicas: 1 | |
updatedReplicas: 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment