Skip to content

Instantly share code, notes, and snippets.

@mauilion
Last active May 14, 2020
Embed
What would you like to do?
available at git.io/echoserver.yaml apply with kubectl apply -f https://git.io/echoserver.yaml
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