Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
---
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
You can’t perform that action at this time.