Commit 38ccd012 authored by Nguyễn Văn Vũ's avatar Nguyễn Văn Vũ

Week2 - Write yaml file to deploy web app by Daemon Set

parent a1ba6a41
### Example for nginx image
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: nginx-daemonset
spec:
selector:
matchLabels:
app: nginx
replicas: 3
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx-container
image: nginx:latest
ports:
- containerPort: 80
name: http
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment