Skip to content

Instantly share code, notes, and snippets.

@sturman
Created January 20, 2020 13:00
Show Gist options
  • Save sturman/28448794a4299c8ed3709b9f3e83107b to your computer and use it in GitHub Desktop.
Save sturman/28448794a4299c8ed3709b9f3e83107b to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Namespace
metadata:
name: echoserver
---
apiVersion: v1
kind: Service
metadata:
name: echoserver
namespace: echoserver
spec:
ports:
- port: 80
targetPort: 8080
protocol: TCP
type: NodePort
selector:
app: echoserver
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: echoserver
namespace: echoserver
spec:
selector:
matchLabels:
app: echoserver
replicas: 1
template:
metadata:
labels:
app: echoserver
spec:
containers:
- image: gcr.io/google_containers/echoserver:1.10
imagePullPolicy: Always
name: echoserver
ports:
- containerPort: 8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment