Last active
May 14, 2020 00:48
-
-
Save mauilion/5273ddb21c169705bac8e69e90ef8546 to your computer and use it in GitHub Desktop.
available at git.io/echoserver.yaml apply with kubectl apply -f https://git.io/echoserver.yaml
This file contains 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: apps/v1 | |
kind: Deployment | |
metadata: | |
labels: | |
run: echoserver | |
name: echoserver | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
run: echoserver | |
strategy: | |
rollingUpdate: | |
maxSurge: 1 | |
maxUnavailable: 1 | |
type: RollingUpdate | |
template: | |
metadata: | |
creationTimestamp: null | |
labels: | |
run: echoserver | |
spec: | |
containers: | |
- env: | |
- name: POD_IP | |
valueFrom: | |
fieldRef: | |
apiVersion: v1 | |
fieldPath: status.podIP | |
- name: POD_NAMESPACE | |
valueFrom: | |
fieldRef: | |
apiVersion: v1 | |
fieldPath: metadata.namespace | |
- name: NODE_NAME | |
valueFrom: | |
fieldRef: | |
apiVersion: v1 | |
fieldPath: spec.nodeName | |
- name: POD_NAME | |
valueFrom: | |
fieldRef: | |
apiVersion: v1 | |
fieldPath: metadata.name | |
image: gcr.io/google-containers/echoserver:1.10 | |
imagePullPolicy: IfNotPresent | |
name: echoserver | |
ports: | |
- containerPort: 8080 | |
protocol: TCP | |
resources: {} | |
terminationMessagePath: /dev/termination-log | |
dnsPolicy: ClusterFirst | |
restartPolicy: Always | |
securityContext: {} | |
terminationGracePeriodSeconds: 30 | |
status: {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment