apiVersion: apps/v1
kind: Deployment
metadata:
  name: webapp-deployment
  labels: 
    app: webapp
spec:
  replicas: 1
  selector:
    matchLabels:
      app: webapp
  template:
    metadata:
      labels: 
        app: webapp
    spec:
      containers:
      - name: mkube-soda
        image: docker.io/library/soda:latest
        imagePullPolicy: Never
        ports:
        - containerPort: 8080
        env:
        - name: ACCESS_CONTEXT_ROOT
          value: vlkb#datasets
        - name: DEBUG_LEVEL
          value: FINEST
---
apiVersion: v1
kind: Service
metadata:
  name: webapp-service
spec:
  type: NodePort
  selector:
    app: webapp
  ports:
    - protocol: TCP
      port: 8080
      targetPort: 8080
      nodePort: 30100

        # install: https://minikube.sigs.k8s.io/docs/start/?arch=%2Flinux%2Fx86-64%2Fstable%2Fbinary+download
        #
        # minikube ip -> prints access-ip to use:  http://<ip>:30100/vlkb/datasets
        #
        # Image into minikube-docker:
        # a, in term change docker-instance "eval $(minikube docker-env)"
        #    and then build image direcly into minikube-docker
        # b, minikube image load soda:latest
        #
