apiVersion: apps/v1
kind: Deployment
metadata:
  name: navix-frontend
spec:
  replicas: 1
  selector:
    matchLabels:
      app: navix-frontend
  template:
    metadata:
      labels:
        app: navix-frontend
    spec:
      containers:
        - name: frontend
          image: "{{ .Values.frontend.image.repository }}:{{ .Values.frontend.tag }}"
          imagePullPolicy: {{ .Values.frontend.image.pullPolicy }}
          ports:
            - containerPort: 80
          env:
            - name: API_BASE
              value: {{ .Values.frontend.env.API_BASE | quote }}
            - name: MINIO_ENDPOINT
              value: {{ .Values.frontend.env.MINIO_ENDPOINT | quote }}
            - name: MINIO_BUCKET
              value: {{ .Values.frontend.env.MINIO_BUCKET | quote }}
