Created
June 11, 2020 08:55
-
-
Save vamsijakkula/b4b9e441a418d29d2f575945d06d2b60 to your computer and use it in GitHub Desktop.
hellowhale
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: 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