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