apiVersion: apps/v1
kind: Deployment
metadata:
  name: django-netdisk
  labels:
    app: backend
    version: v1.0.0
spec:
  replicas: 2
  selector:
    matchLabels:
      app: django
  template:
    metadata:
      name: backend-api
      labels:
        app: django
        version: v1.0.0
    spec:
      containers:
        - name: django-netdisk
          image: feichaicom/django-netdisk:v1.0.0
          imagePullPolicy: IfNotPresent
          command: ["/start"]
          envFrom:
            - configMapRef:
                name: django-config
            - secretRef:
                name: django-secret
          ports:
            - containerPort: 5000
              name: gunicorn