Created
January 11, 2022 14:21
-
-
Save vamsijakkula/dab3a6b9a1dd4489e28ab987cdb8b73a to your computer and use it in GitHub Desktop.
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: 1 | |
selector: | |
matchLabels: | |
app: hello-blue-whale-app | |
template: | |
metadata: | |
name: hello-blue-whale-pod | |
labels: | |
app: hello-blue-whale-app | |
spec: | |
containers: | |
- name: hello-blue-whale-container | |
image: vamsijakkula/hello-blue-whale:v1 | |
imagePullPolicy: Always | |
ports: | |
- containerPort: 80 | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: hello-blue-whale-svc | |
labels: | |
app: hello-blue-whale-app | |
spec: | |
selector: | |
app: hello-blue-whale-app | |
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