---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: odh-notebook-controller-ktunnel
  labels:
    app: odh-notebook-controller
    app.kubernetes.io/part-of: odh-notebook-controller
    kustomize.component: odh-notebook-controller
    component.opendatahub.io/name: odh-notebook-controller
    opendatahub.io/component: "true"
spec:
  replicas: 1
  selector:
    matchLabels:
      app: odh-notebook-controller
      app.kubernetes.io/part-of: odh-notebook-controller
      kustomize.component: odh-notebook-controller
      component.opendatahub.io/name: odh-notebook-controller
      opendatahub.io/component: "true"
  template:
    metadata:
      annotations:
        kubectl.kubernetes.io/default-container: ktunnel
      labels:
        app: odh-notebook-controller
        app.kubernetes.io/part-of: odh-notebook-controller
        kustomize.component: odh-notebook-controller
        component.opendatahub.io/name: odh-notebook-controller
        opendatahub.io/component: "true"
    spec:
      containers:
        - name: ktunnel
          image: quay.io/omrikiei/ktunnel:v1.4.7
          imagePullPolicy: IfNotPresent
          command:
            - /ktunnel/ktunnel
          args:
            - server
            - -p
            - "28688"
          ports:
            - containerPort: 8443
              name: webhook
              protocol: TCP
          resources:
            limits:
              cpu: 500m
              memory: 256Mi
            requests:
              cpu: 500m
              memory: 256Mi
