Commit 10b3ef04 authored by Nguyễn Văn Vũ's avatar Nguyễn Văn Vũ

Week6 - Use Daemon set for deploy web app

parent 7475da8b
apiVersion: v1
kind: ConfigMap
metadata:
name: web-app-config
data:
MINIO_ACCESS_KEY_ID: user
MINIO_SECRET_ACCESS_KEY: password
MINIO_STORAGE_BUCKET_NAME: static
MINIO_API: "http://172.17.0.1:9000"
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: web-app
spec:
selector:
matchLabels:
app: django-minio
template:
metadata:
labels:
app: django-minio
spec:
containers:
- name: django
image: garovu/django-minio
envFrom:
- configMapRef:
name: web-app-config
ports:
- containerPort: 8000
resources:
limits:
memory: "1024Mi"
cpu: "1000m"
apiVersion: v1
kind: Service
metadata:
name: web-app-service
spec:
type: NodePort
selector:
app: django-minio
ports:
- port: 8000
nodePort: 30011
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