Skip to content
Snippets Groups Projects
Select Git revision
  • 3a09d01b98d5d30b9233e520f1bb5d812e5811cd
  • main default protected
  • 1.8.5
  • 1.8.4
  • 1.8.3
  • 1.8.2
  • 1.8.1
  • 1.8.0
  • 1.7.14
  • 1.7.13
  • 1.7.12
  • 1.7.11
  • 1.7.10
  • 1.7.9
  • 1.7.8
  • 1.7.7
  • 1.7.6
  • 1.7.5
  • 1.7.4
  • 1.7.3
  • 1.7.2
  • 1.7.1
22 results

deplserv.yaml

Blame
  • deplserv.yaml 1.16 KiB
    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
            #