Skip to content

Instantly share code, notes, and snippets.

@vamsijakkula
Created June 11, 2020 08:55
Show Gist options
  • Save vamsijakkula/b4b9e441a418d29d2f575945d06d2b60 to your computer and use it in GitHub Desktop.
Save vamsijakkula/b4b9e441a418d29d2f575945d06d2b60 to your computer and use it in GitHub Desktop.
hellowhale
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: hello-blue-whale
spec:
replicas: 3
selector:
matchLabels:
app: hello-whale-app
version: blue
template:
metadata:
name: hello-blue-whale-pod
labels:
app: hello-whale-app
version: blue
spec:
containers:
- name: hello-whale-container
image: vamsijakkula/hellowhale:latest
imagePullPolicy: Always
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: hello-whale-svc
labels:
app: hello-whale-app
spec:
selector:
app: hello-whale-app
version: blue
type: NodePort
ports:
- nodePort: 31113
port: 80
targetPort: 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment