Created
May 3, 2020 12:04
-
-
Save sakaldeepyadav/dce022bbcd90973d3e78334c010818e5 to your computer and use it in GitHub Desktop.
YAML file to deploy demo image to ASK Cluster. - Image will be pulled form Docker Hub: sakaldeep/demoimage:1 - Will create both deployment and service with public IP
This file contains 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: skl | |
labels: | |
app: web | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: web | |
template: | |
metadata: | |
labels: | |
app: web | |
spec: | |
containers: | |
- name: demoimage | |
image: sakaldeep/demoimage:1 | |
ports: | |
- containerPort: 80 | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: web | |
spec: | |
type: LoadBalancer | |
ports: | |
- port: 80 | |
selector: | |
app: web |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment