[
  {
    "path": ".dockerignore",
    "content": "# More info: https://docs.docker.com/engine/reference/builder/#dockerignore-file\n# Ignore build and test binaries.\nbin/\n"
  },
  {
    "path": ".github/FUNDING.yml",
    "content": "# These are supported funding model platforms\n\ngithub: [nekomeowww]\n# patreon: # Replace with a single Patreon username\n# open_collective: # Replace with a single Open Collective username\n# ko_fi: # Replace with a single Ko-fi username\n# tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel\n# community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry\n# liberapay: # Replace with a single Liberapay username\n# issuehunt: # Replace with a single IssueHunt username\n# otechie: # Replace with a single Otechie username\n# lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry\n# custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']\n"
  },
  {
    "path": ".github/renovate.json",
    "content": "{\n    \"$schema\": \"https://docs.renovatebot.com/renovate-schema.json\",\n    \"automerge\": true,\n    \"extends\": [\n      \"config:recommended\",\n      \":dependencyDashboard\",\n      \":semanticPrefixFixDepsChoreOthers\",\n      \":prHourlyLimitNone\",\n      \":prConcurrentLimitNone\",\n      \":ignoreModulesAndTests\",\n      \"schedule:weekly\",\n      \"group:allNonMajor\",\n      \"replacements:all\",\n      \"workarounds:all\"\n    ]\n  }\n"
  },
  {
    "path": ".github/workflows/ci.yaml",
    "content": "name: CI\n\non:\n  push:\n    paths-ignore:\n      - 'docs/pages/**'\n    branches:\n      - main\n  pull_request:\n    paths-ignore:\n      - 'docs/pages/**'\n    branches:\n      - main\n\nenv:\n  STORE_PATH: ''\n\njobs:\n  build_test:\n    name: Build Test\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v6\n\n      - uses: actions/setup-go@v6\n        with:\n          go-version: \"^1.25\"\n          cache: true\n\n      - name: Test Build\n        run: go build -v ./...\n\n  lint:\n    name: Lint\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/setup-go@v6\n        with:\n          go-version: \"^1.25\"\n          cache: true\n\n      - uses: actions/checkout@v6\n\n      - name: golangci-lint\n        uses: golangci/golangci-lint-action@v9.2.0\n        with:\n          args: --timeout=10m\n\n  unittest:\n    name: Unit Tests\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v6\n\n      - name: Setup Go\n        uses: actions/setup-go@v6\n        with:\n          go-version: \"^1.25\"\n          cache: true\n\n      - name: Unit tests\n        run: |\n          go test ./... -coverprofile=coverage.out -covermode=atomic\n          go tool cover -func coverage.out\n"
  },
  {
    "path": ".github/workflows/pr-docs-build.yaml",
    "content": "name: Build PR Previewing Docs\n\non:\n  pull_request:\n    branches:\n      - main\n    paths:\n      - 'docs/**'\n\njobs:\n  build:\n    strategy:\n      matrix:\n        os: [ubuntu-latest]\n\n    name: Build - ${{ matrix.os }}\n\n    runs-on: ${{ matrix.os }}\n    steps:\n      # This is quite weird.\n      # Even though this is the *intended* solution introduces in official blog post here\n      # https://securitylab.github.com/research/github-actions-preventing-pwn-requests/.\n      # But still, as https://github.com/orgs/community/discussions/25220#discussioncomment-7856118 stated,\n      # this is vulnerable since there is no source of truth about which PR in the triggered workflow.\n      - name: Persist PR number\n        run: |\n          echo \"${{ github.event.number }}\" > pr_num\n\n      - name: Persist branch name\n        run: |\n          echo \"${{ github.head_ref }}\" > branch_name\n\n      - name: Upload PR artifact\n        uses: actions/upload-artifact@v7\n        with:\n          name: pr-num\n          path: ./pr_num\n          overwrite: true\n\n      - name: Upload PR artifact\n        uses: actions/upload-artifact@v7\n        with:\n          name: branch-name\n          path: ./branch_name\n          overwrite: true\n      - uses: actions/checkout@v6\n        with:\n          fetch-depth: 0\n      - uses: pnpm/action-setup@v4\n        with:\n          run_install: false\n          package_json_file: docs/package.json\n      - uses: actions/setup-node@v6\n        with:\n          cache: pnpm\n          node-version: latest\n          registry-url: https://registry.npmjs.org\n          cache-dependency-path: 'docs/pnpm-lock.yaml'\n      - working-directory: docs\n        run: pnpm install --frozen-lockfile\n\n      - working-directory: docs\n        run: pnpm docs:build\n        env:\n          # As suggested in Verbose Build option to be able to track down errors https://github.com/vuejs/vitepress/issues/422\n          # vitepress build command does not have --debug option, so we need to set it manually where the debug package is used.\n          # DEBUG: 'vitepress:*'\n          VUE_PROD_HYDRATION_MISMATCH_DETAILS_FLAG: '1'\n\n      - name: Upload artifact\n        uses: actions/upload-artifact@v7\n        with:\n          name: docs-${{ matrix.os }}-build\n          path: docs/.vitepress/dist\n          overwrite: true\n"
  },
  {
    "path": ".github/workflows/pr-docs-deployment.yaml",
    "content": "name: Push PR Previewing Docs to Cloudflare Pages\n\non:\n  workflow_run:\n    workflows:\n      - Build PR Previewing Docs\n    types:\n      - completed\n\nenv:\n  PR_NUM: 0\n  BRANCH_NAME: main\n\njobs:\n  on-success:\n    name: Deploy to Cloudflare Pages\n    runs-on: ubuntu-latest\n    permissions:\n      pull-requests: write\n    if: ${{ github.event.workflow_run.conclusion == 'success' }}\n    steps:\n      - name: Download artifact - PR\n        uses: dawidd6/action-download-artifact@v18\n        with:\n          workflow_conclusion: success\n          run_id: ${{ github.event.workflow_run.id }}\n          name: pr-num\n          path: pr-num\n          allow_forks: true\n\n      - name: Download artifact - PR\n        uses: dawidd6/action-download-artifact@v18\n        with:\n          workflow_conclusion: success\n          run_id: ${{ github.event.workflow_run.id }}\n          name: branch-name\n          path: branch-name\n          allow_forks: true\n\n      - name: Obtain PR number\n        id: pr-num\n        run: |\n          echo \"PR_NUM=$(cat pr-num/pr_num)\" >> $GITHUB_ENV\n\n      - name: Obtain branch name\n        id: branch-name\n        run: |\n          echo \"BRANCH_NAME=$(cat branch-name/branch_name)\" >> $GITHUB_ENV\n\n      - name: Download artifact - Ubuntu\n        uses: dawidd6/action-download-artifact@v18\n        with:\n          workflow_conclusion: success\n          run_id: ${{ github.event.workflow_run.id }}\n          name: docs-ubuntu-latest-build\n          path: docs-ubuntu-latest-build\n          allow_forks: true\n\n      - name: Publish to Cloudflare Pages\n        id: deploy\n        uses: cloudflare/pages-action@v1\n        with:\n          apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}\n          accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}\n          projectName: ${{ secrets.CLOUDFLARE_PROJECT_NAME }}\n          directory: docs-ubuntu-latest-build\n          # Optional: Switch what branch you are publishing to.\n          # By default this will be the branch which triggered this workflow\n          branch: ${{ env.BRANCH_NAME }}\n          # Optional: Change the Wrangler version, allows you to point to a specific version or a tag such as `beta`\n          wranglerVersion: '3'\n\n      - name: Find Comment\n        uses: peter-evans/find-comment@v4\n        id: fc\n        with:\n          issue-number: ${{ env.PR_NUM }}\n          comment-author: 'github-actions[bot]'\n          body-includes: to Cloudflare Pages\n\n      - name: Create or update comment\n        uses: peter-evans/create-or-update-comment@v5\n        with:\n          comment-id: ${{ steps.fc.outputs.comment-id }}\n          issue-number: ${{ env.PR_NUM }}\n          body: |\n            ## ✅ Successfully deployed to Cloudflare Pages\n\n            | Status      | URL                                |\n            |:------------|:-----------------------------------|\n            | Success     | ${{ steps.deploy.outputs.url }}    |\n          edit-mode: replace\n\n  on-failure:\n    name: Failed to build previewing docs\n    runs-on: ubuntu-latest\n    permissions:\n      pull-requests: write\n\n    if: ${{ github.event.workflow_run.conclusion == 'failure' }}\n    steps:\n      - name: Download artifact - PR\n        uses: dawidd6/action-download-artifact@v18\n        with:\n          workflow_conclusion: success\n          run_id: ${{ github.event.workflow_run.id }}\n          name: pr-num\n          path: pr-num\n          allow_forks: true\n\n      - name: Obtain PR number\n        id: pr-num\n        run: |\n          echo \"PR_NUM=$(cat pr-num/pr_num)\" >> $GITHUB_ENV\n\n      - name: Find Comment\n        uses: peter-evans/find-comment@v4\n        id: fc\n        with:\n          issue-number: ${{ env.PR_NUM }}\n          comment-author: 'github-actions[bot]'\n          body-includes: to Cloudflare Pages\n\n      - name: Create or update comment\n        uses: peter-evans/create-or-update-comment@v5\n        with:\n          comment-id: ${{ steps.fc.outputs.comment-id }}\n          issue-number: ${{ env.PR_NUM }}\n          body: |\n            ## ❌ Failed to deploy to Cloudflare Pages\n\n            | Platform | Status      | URL                                                   |\n            |:---------|:------------|:------------------------------------------------------|\n            | Ubuntu   | Failed      | Please check the status and logs of the workflow run. |\n            | Windows  | Failed      | Please check the status and logs of the workflow run. |\n          edit-mode: replace\n"
  },
  {
    "path": ".github/workflows/production-docs-deployment.yaml",
    "content": "name: Build Docs to Cloudflare Pages\n\non:\n  push:\n    branches:\n      - 'main'\n\njobs:\n  build:\n    name: Build\n    runs-on: ubuntu-latest\n    environment:\n      name: Production Docs\n      url: https://ollama-operator.ayaka.io\n    steps:\n      - uses: actions/checkout@v6\n        with:\n          fetch-depth: 0\n      - uses: pnpm/action-setup@v4\n        with:\n          run_install: false\n          package_json_file: docs/package.json\n      - uses: actions/setup-node@v6\n        with:\n          cache: pnpm\n          node-version: latest\n          registry-url: https://registry.npmjs.org\n          cache-dependency-path: 'docs/pnpm-lock.yaml'\n      - working-directory: docs\n        run: pnpm install --frozen-lockfile\n\n      - working-directory: docs\n        run: pnpm docs:build\n        env:\n          # As suggested in Verbose Build option to be able to track down errors https://github.com/vuejs/vitepress/issues/422\n          # vitepress build command does not have --debug option, so we need to set it manually where the debug package is used.\n          # DEBUG: 'vitepress:*'\n          VUE_PROD_HYDRATION_MISMATCH_DETAILS_FLAG: '1'\n\n      - name: Publish to Cloudflare Pages\n        id: deploy\n        uses: cloudflare/pages-action@v1\n        with:\n          apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}\n          accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}\n          projectName: ${{ secrets.CLOUDFLARE_PROJECT_NAME }}\n          directory: docs/.vitepress/dist\n          # Optional: Switch what branch you are publishing to.\n          # By default this will be the branch which triggered this workflow\n          branch: main\n          # Optional: Change the Wrangler version, allows you to point to a specific version or a tag such as `beta`\n          wranglerVersion: '3'\n"
  },
  {
    "path": ".github/workflows/release-build.yml",
    "content": "name: Release Build\n\non:\n  push:\n    tags:\n      - '**'\n  workflow_dispatch:\n\njobs:\n  goreleaser:\n    name: kollama - Build for GitHub Releases\n    permissions:\n      contents: write\n      packages: write\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout\n        uses: actions/checkout@v6\n      - name: Setup Go\n        uses: actions/setup-go@v6\n        with:\n          go-version: '1.26'\n          cache: true\n\n      - name: GoReleaser\n        uses: goreleaser/goreleaser-action@v7\n        with:\n          version: latest\n          args: release --clean --skip=validate\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n\n      - name: Update new version in krew-index\n        uses: rajatjindal/krew-release-bot@v0.0.51\n\n  ghcr_build:\n    name: ollama-operator - Build for ghcr.io\n    permissions:\n      packages: write\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v6\n\n      - name: Fetch version\n        id: version\n        run: |\n          export LAST_TAGGED_COMMIT=$(git rev-list --tags --max-count=1)\n          export LAST_TAG=$(git describe --tags $LAST_TAGGED_COMMIT)\n          echo \"version=${LAST_TAG#v}\" >> $GITHUB_OUTPUT\n\n      - # Add support for more platforms with QEMU (optional)\n        # https://github.com/docker/setup-qemu-action\n        name: Set up QEMU\n        uses: docker/setup-qemu-action@v4\n\n      - name: Set up Docker Buildx\n        uses: docker/setup-buildx-action@v4\n        with:\n          platforms: linux/amd64,linux/arm64\n\n      - name: Sign in to GitHub Container Registry\n        uses: docker/login-action@v4\n        with:\n          registry: ghcr.io\n          username: ${{ github.repository_owner }}\n          password: ${{ secrets.GITHUB_TOKEN }}\n\n      - name: Create image tags\n        id: dockerinfo\n        run: |\n          echo \"taglatest=ghcr.io/${{ github.repository }}:latest\" >> $GITHUB_OUTPUT\n          echo \"tag=ghcr.io/${{ github.repository }}:${{ steps.version.outputs.version }}\" >> $GITHUB_OUTPUT\n\n      - name: Build and Push\n        uses: docker/build-push-action@v7\n        with:\n          platforms: linux/amd64,linux/arm64\n          context: ./\n          file: ./Dockerfile\n          push: true\n          no-cache: false\n          tags: |\n            ${{ steps.dockerinfo.outputs.taglatest }}\n            ${{ steps.dockerinfo.outputs.tag }}\n\n      - name: Build installer\n        run: |\n          make build-installer IMG=ghcr.io/${{ github.repository }}:${{ steps.version.outputs.version }}\n\n      - name: Upload installer\n        uses: actions/upload-artifact@v7\n        with:\n          name: ollama-operator-installer-${{ steps.version.outputs.version }}\n          path: dist/install.yaml\n"
  },
  {
    "path": ".github/workflows/unstable-build.yml",
    "content": "name: Unstable Build\n\non:\n  workflow_dispatch:\n\njobs:\n  ghcr_build:\n    name: Build for GitHub Container Registry\n    permissions:\n      packages: write\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v6\n\n      - # Add support for more platforms with QEMU (optional)\n        # https://github.com/docker/setup-qemu-action\n        name: Set up QEMU\n        uses: docker/setup-qemu-action@v4\n\n      - name: Set up Docker Buildx\n        uses: docker/setup-buildx-action@v4\n        with:\n          platforms: linux/amd64,linux/arm64\n\n      - name: Sign in to GitHub Container Registry\n        uses: docker/login-action@v4\n        with:\n          registry: ghcr.io\n          username: ${{ github.repository_owner }}\n          password: ${{ secrets.GITHUB_TOKEN }}\n\n      - name: Create image tags\n        id: dockerinfo\n        run: |\n          echo \"tagunstable=ghcr.io/${{ github.repository }}:unstable\" >> $GITHUB_OUTPUT\n\n      - name: Build and Push\n        uses: docker/build-push-action@v7\n        with:\n          platforms: linux/amd64,linux/arm64\n          context: ./\n          file: ./Dockerfile\n          push: true\n          no-cache: false\n          tags: |\n            ${{ steps.dockerinfo.outputs.tagunstable }}\n\n      - name: Build installer\n        run: |\n          make build-installer IMG=ghcr.io/${{ github.repository }}:unstable\n\n      - name: Upload installer\n        uses: actions/upload-artifact@v7\n        with:\n          name: ollama-operator-installer-unstable\n          path: dist/install.yaml\n\n"
  },
  {
    "path": ".gitignore",
    "content": "# Binaries for programs and plugins\n*.exe\n*.exe~\n*.dll\n*.so\n*.dylib\nbin/*\nDockerfile.cross\n\n# Built application files\n!dist/install.yaml\ndist/\n\n# Test binary, built with `go test -c`\n*.test\n\n# Output of the go coverage tool, specifically when used with LiteIDE\n*.out\n\n# Go workspace file\ngo.work\n\n# Kubernetes Generated files - skip generated files, except for vendored files\n!vendor/**/zz_generated.*\n\n# editor and IDE paraphernalia\n.idea\n!.vscode/settings.json\n*.swp\n*.swo\n*~\n.obsidian/\n\n# Node.js related\n.eslintcache\n.npmrc\nnode_modules/\n\n# Vite.js related\n.temp\n.vite-inspect\n\n# Vitepress related\n**/.vitepress/dist/\n**/.vitepress/cache/\n\n# Netlify related\n**/.netlify/*\n**/.netlify/functions-serve/*\n"
  },
  {
    "path": ".golangci.yml",
    "content": "version: \"2\"\nrun:\n  allow-parallel-runners: true\nlinters:\n  default: all\n  disable:\n    - containedctx\n    - contextcheck\n    - cyclop\n    - depguard\n    - err113\n    - exhaustruct\n    - funlen\n    - gochecknoglobals\n    - gochecknoinits\n    - gocognit\n    - gocyclo\n    - godot\n    - godox\n    - ireturn\n    - lll\n    - maintidx\n    - mnd\n    - nilnil\n    - nlreturn\n    - paralleltest\n    - tagalign\n    - tagliatelle\n    - testpackage\n    - varnamelen\n    - wrapcheck\n    - noinlineerr\n  settings:\n    dupl:\n      threshold: 1000\n    gocritic:\n      disabled-checks:\n        - ifElseChain\n    gosec:\n      excludes:\n        - G115\n    mnd:\n      ignored-files:\n        - examples/.*\n      ignored-functions:\n        - context.WithTimeout\n        - strconv.ParseComplex\n    nestif:\n      min-complexity: 9\n    revive:\n      rules:\n        - name: blank-imports\n          disabled: true\n    wsl_v5:\n      allow-first-in-block: true\n      allow-whole-block: false\n      branch-max-lines: 2\n      enable:\n        - assign-expr\n      disable:\n        - append\n        - decl\n  exclusions:\n    generated: lax\n    presets:\n      - comments\n      - common-false-positives\n      - legacy\n      - std-error-handling\n    rules:\n      - linters:\n          - perfsprint\n        path: _test\\.go\n      - linters:\n          - forbidigo\n        path: internal\\/cli\\/.*\\.go\n      - path: (.+)\\.go$\n        text: if statements should only be cuddled with assignments\n      - path: (.+)\\.go$\n        text: if statements should only be cuddled with assignments used in the if statement itself\n      - path: (.+)\\.go$\n        text: assignments should only be cuddled with other assignments\n      - path: (.+)\\.go$\n        text: declarations should never be cuddled\n      - path: (.+)\\.go$\n        text: block should not end with a whitespace\n    paths:\n      - apis\n      - api\n      - third_party$\n      - builtin$\n      - examples$\nformatters:\n  enable:\n    - gofmt\n    - goimports\n  exclusions:\n    generated: lax\n    paths:\n      - apis\n      - api\n      - third_party$\n      - builtin$\n      - examples$\n"
  },
  {
    "path": ".goreleaser.yml",
    "content": "project_name: kollama\nrelease:\n  github:\n    owner: nekomeowww\n    name: ollama-operator\nbuilds:\n  - id: kollama\n    goos:\n    - linux\n    - windows\n    - darwin\n    goarch:\n    - arm64\n    - amd64\n    - \"386\"\n    env:\n      - CGO_ENABLED=0\n      - GO111MODULE=on\n    main: cmd/kollama/main.go\narchives:\n  - id: kollama\n    builds:\n    - kollama\n    name_template: \"{{ .ProjectName }}_{{ .Tag }}_{{ .Os }}_{{ .Arch }}\"\n    format_overrides:\n    - goos: windows\n      format: zip\n"
  },
  {
    "path": ".krew.yaml",
    "content": "apiVersion: krew.googlecontainertools.github.com/v1alpha2\nkind: Plugin\nmetadata:\n  name: kollama\nspec:\n  version: {{ .TagName }}\n  homepage: https://github.com/nekomeowww/ollama-operator\n  platforms:\n  - selector:\n      matchLabels:\n        os: darwin\n        arch: amd64\n    {{addURIAndSha \"https://github.com/nekomeowww/ollama-operator/releases/download/{{ .TagName }}/kollama_{{ .TagName }}_darwin_amd64.tar.gz\" .TagName }}\n    bin: kollama\n  - selector:\n      matchLabels:\n        os: darwin\n        arch: arm64\n    {{addURIAndSha \"https://github.com/nekomeowww/ollama-operator/releases/download/{{ .TagName }}/kollama_{{ .TagName }}_darwin_arm64.tar.gz\" .TagName }}\n    bin: kollama\n  - selector:\n      matchLabels:\n        os: linux\n        arch: amd64\n    {{addURIAndSha \"https://github.com/nekomeowww/ollama-operator/releases/download/{{ .TagName }}/kollama_{{ .TagName }}_linux_amd64.tar.gz\" .TagName }}\n    bin: kollama\n  - selector:\n      matchLabels:\n        os: linux\n        arch: arm64\n    {{addURIAndSha \"https://github.com/nekomeowww/ollama-operator/releases/download/{{ .TagName }}/kollama_{{ .TagName }}_linux_arm64.tar.gz\" .TagName }}\n    bin: kollama\n  - selector:\n      matchLabels:\n        os: windows\n        arch: amd64\n    {{addURIAndSha \"https://github.com/nekomeowww/ollama-operator/releases/download/{{ .TagName }}/kollama_{{ .TagName }}_windows_amd64.zip\" .TagName }}\n    bin: kollama.exe\n  shortDescription: Interact with the Ollama Operator\n  description: |\n    Usage:\n      kubectl kollama deploy llama2\n      This plugin will help you to interact with the Ollama Operator to deploy any LLM (Llama Language Model) to your Kubernetes cluster.\n      Read more documentation at: https://github.com/nekomeowww/ollama-operator\n"
  },
  {
    "path": ".tool-versions",
    "content": "golang 1.26.1\ngolangci-lint 2.11.3\n"
  },
  {
    "path": ".vscode/settings.json",
    "content": "{\n    \"editor.formatOnSave\": false,\n    \"editor.codeActionsOnSave\": {\n        \"source.fixAll.eslint\": \"explicit\",\n        \"source.organizeImports\": \"never\"\n    },\n    // The following is optional.\n    // It's better to put under project setting `.vscode/settings.json`\n    // to avoid conflicts with working with different eslint configs\n    // that does not support all formats.\n    \"eslint.validate\": [\n        \"javascript\",\n        \"javascriptreact\",\n        \"typescript\",\n        \"typescriptreact\",\n        \"vue\",\n        \"json\",\n        \"jsonc\",\n    ],\n}\n"
  },
  {
    "path": "CONTRIBUTING.md",
    "content": "# Contributing to Ollama Operator\n\n### Prerequisites\n\n- `go` version `v1.24.0+`\n- `docker` version `17.03+`.\n- `kubectl` version `v1.11.3+`.\n- Access to a Kubernetes `v1.11.3+` cluster (Either kind, minikube is suitable for local development).\n\n## Development\n\n### Develop with `kind`\n\nWe have pre-defined `kind` configurations in the `hack` directory to help you get started with the development environment.\n\n> [!NOTE]\n> Install kind if you haven't already. You can install it using the following command:\n>\n> ```shell\n> go install sigs.k8s.io/kind@latest\n> ```\n\nTo create a `kind` cluster with the configurations defined in `hack/kind-config.yaml`, run the following command:\n\n```sh\nkind create cluster --config hack/kind-config.yaml\n```\n\n### Test controller locally\n\n#### Build and install CRD to local cluster\n\n```shell\nmake manifests && make install\n```\n\n#### Run the controller locally\n\n```shell\nmake run\n```\n\n#### Create a CRD to test the controller\n\n```shell\nkubectl apply -f hack/ollama-model-phi-kind-cluster.yaml\n```\n\n#### Verify the resources is reconciling\n\n```shell\nkubectl describe models\n```\n\n## Deployment\n\n### To Deploy on the cluster\n\n**Build and push your image to the location specified by `IMG`:**\n\n```sh\nmake docker-build docker-push IMG=<some-registry>/ollama-operator:tag\n```\n\n> [!NOTE]\n> This image ought to be published in the personal registry you specified.\n> And it is required to have access to pull the image from the working environment.\n> Make sure you have the proper permission to the registry if the above commands don’t work.\n\n**Install the CRDs into the cluster:**\n\n```sh\nmake install\n```\n\n**Deploy the Manager to the cluster with the image specified by `IMG`:**\n\n```sh\nmake deploy IMG=<some-registry>/ollama-operator:tag\n```\n\n> [!NOTE]\n> If you encounter RBAC errors, you may need to grant yourself cluster-admin\n> privileges or be logged in as admin.\n\n**Create instances of your solution**\nYou can apply the samples (examples) from the config/sample:\n\n```sh\nkubectl apply -k config/samples/\n```\n\n> [!NOTE]\n> Ensure that the samples has default values to test it out.\n\n### To Uninstall\n\n**Delete the instances (CRs) from the cluster:**\n\n```sh\nkubectl delete -k config/samples/\n```\n\n**Delete the APIs(CRDs) from the cluster:**\n\n```sh\nmake uninstall\n```\n\n**UnDeploy the controller from the cluster:**\n\n```sh\nmake undeploy\n```\n\n> [!NOTE]\n> Run `make help` for more information on all potential `make` targets\n\n## Project Distribution\n\n### Test your build locally\n\nDevelopers should test their builds locally before pushing the changes to the repository.\n\n#### Test the build of `kollama` locally\n\nThis reporsitory has been configured to build and release by using [GoReleaser](https://goreleaser.com/):\n\n> [!NOTE]\n> Install GoReleaser if you haven't already by going through the steps in [GoReleaser Install](https://goreleaser.com/install/)\n\n```shell\ngoreleaser release --snapshot --clean\n```\n\n#### Test the build of `ollama-operator` locally\n\nTo build the image for `ollama-operator` locally, run the following command:\n\n```shell\ndocker buildx build --platform linux/amd64,linux/arm64 .\n```\n\n#### Test the release of `kollama` to `krew` locally\n\nPlease replace `<Your Tag>` with the tag you want to release.\n\n```shell\ndocker run -v $(pwd)/.krew.yaml:/tmp/template-file.yaml ghcr.io/rajatjindal/krew-release-bot:v0.0.46 krew-release-bot template --tag <Your Tag> --template-file /tmp/template-file.yaml\n```\n\n### Build and distribute the project\n\nFollowing are the steps to build the installer and distribute this project to users.\n\n1. Build the installer for the image built and published in the registry:\n\n```sh\nmake build-installer IMG=<some-registry>/ollama-operator:tag\n```\n\nNOTE: The makefile target mentioned above generates an 'install.yaml'\nfile in the dist directory. This file contains all the resources built\nwith Kustomize, which are necessary to install this project without\nits dependencies.\n\n2. Using the installer\n\nUsers can just run `kubectl apply -f <URL for YAML BUNDLE>` to install the project, i.e.:\n\n```sh\nkubectl apply -f https://raw.githubusercontent.com/<org>/ollama-operator/<tag or branch>/dist/install.yaml\n```\n"
  },
  {
    "path": "Dockerfile",
    "content": "# Build the manager binary\nFROM golang:1.26 AS builder\n\nARG TARGETOS\nARG TARGETARCH\n\nWORKDIR /workspace\n\n# Copy the Go Modules manifests\nCOPY go.mod go.mod\nCOPY go.sum go.sum\n\n# cache deps before building and copying source so that we don't need to re-download as much\n# and so that source changes don't invalidate our downloaded layer\nRUN go mod download\n\n# Copy the go source\nCOPY cmd/ cmd/\nCOPY api/ api/\nCOPY internal/ internal/\nCOPY pkg/ pkg/\n\n# Build\n# the GOARCH has not a default value to allow the binary be built according to the host where the command\n# was called. For example, if we call make docker-build in a local env which has the Apple Silicon M1 SO\n# the docker BUILDPLATFORM arg will be linux/arm64 when for Apple x86 it will be linux/amd64. Therefore,\n# by leaving it empty we can ensure that the container and binary shipped on it will have the same platform.\nRUN go env -w CGO_ENABLED=0\nRUN go env -w GOOS=${TARGETOS:-linux}\nRUN go env -w GOARCH=${TARGETARCH}\n\nRUN go build -a -o manager cmd/ollama-operator/main.go\nRUN go build -a -o kollama cmd/kollama/main.go\n\n# Use distroless as minimal base image to package the manager binary\n# Refer to https://github.com/GoogleContainerTools/distroless for more details\nFROM gcr.io/distroless/static:nonroot\n\nWORKDIR /\n\nCOPY --from=builder /workspace/manager .\nCOPY --from=builder /workspace/kollama .\n\nUSER 65532:65532\n\nENTRYPOINT [\"/manager\"]\n"
  },
  {
    "path": "LICENSE",
    "content": "                                 Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets \"[]\"\n      replaced with your own identifying information. (Don't include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same \"printed page\" as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright [yyyy] [name of copyright owner]\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n"
  },
  {
    "path": "Makefile",
    "content": "# Image URL to use all building/pushing image targets\nIMG ?= ghcr.io/nekomeowww/ollama-operator:0.10.7\n# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.\nENVTEST_K8S_VERSION = 1.32.0\n\n# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)\nifeq (,$(shell go env GOBIN))\nGOBIN=$(shell go env GOPATH)/bin\nelse\nGOBIN=$(shell go env GOBIN)\nendif\n\n# CONTAINER_TOOL defines the container tool to be used for building images.\n# Be aware that the target commands are only tested with Docker which is\n# scaffolded by default. However, you might want to replace it to use other\n# tools. (i.e. podman)\nCONTAINER_TOOL ?= docker\n\n# Setting SHELL to bash allows bash commands to be executed by recipes.\n# Options are set to exit when a recipe line exits non-zero or a piped command fails.\nSHELL = /usr/bin/env bash -o pipefail\n.SHELLFLAGS = -ec\n\n.PHONY: all\nall: build\n\n##@ General\n\n# The help target prints out all targets with their descriptions organized\n# beneath their categories. The categories are represented by '##@' and the\n# target descriptions by '##'. The awk command is responsible for reading the\n# entire set of makefiles included in this invocation, looking for lines of the\n# file as xyz: ## something, and then pretty-format the target and help. Then,\n# if there's a line with ##@ something, that gets pretty-printed as a category.\n# More info on the usage of ANSI control characters for terminal formatting:\n# https://en.wikipedia.org/wiki/ANSI_escape_code#SGR_parameters\n# More info on the awk command:\n# http://linuxcommand.org/lc3_adv_awk.php\n\n.PHONY: help\nhelp: ## Display this help.\n\t@awk 'BEGIN {FS = \":.*##\"; printf \"\\nUsage:\\n  make \\033[36m<target>\\033[0m\\n\"} /^[a-zA-Z_0-9-]+:.*?##/ { printf \"  \\033[36m%-15s\\033[0m %s\\n\", $$1, $$2 } /^##@/ { printf \"\\n\\033[1m%s\\033[0m\\n\", substr($$0, 5) } ' $(MAKEFILE_LIST)\n\n##@ Development\n\n.PHONY: manifests\nmanifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and CustomResourceDefinition objects.\n\t$(CONTROLLER_GEN) rbac:roleName=manager-role crd webhook paths=\"./...\" output:crd:artifacts:config=config/crd/bases\n\n.PHONY: generate\ngenerate: controller-gen ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.\n\t$(CONTROLLER_GEN) object:headerFile=\"hack/boilerplate.go.txt\" paths=\"./...\"\n\n.PHONY: fmt\nfmt: ## Run go fmt against code.\n\tgo fmt ./...\n\n.PHONY: vet\nvet: ## Run go vet against code.\n\tgo vet ./...\n\n.PHONY: test\ntest: manifests generate fmt vet envtest ## Run tests.\n\tKUBEBUILDER_ASSETS=\"$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) --bin-dir $(LOCALBIN) -p path)\" go test $$(go list ./... | grep -v /e2e) -coverprofile cover.out\n\n# Utilize Kind or modify the e2e tests to load the image locally, enabling compatibility with other vendors.\n.PHONY: test-e2e  # Run the e2e tests against a Kind k8s instance that is spun up.\ntest-e2e:\n\tgo test ./test/e2e/ -v -ginkgo.v\n\n.PHONY: lint\nlint: golangci-lint ## Run golangci-lint linter & yamllint\n\t$(GOLANGCI_LINT) run\n\n.PHONY: lint-fix\nlint-fix: golangci-lint ## Run golangci-lint linter and perform fixes\n\t$(GOLANGCI_LINT) run --fix\n\n##@ Build\n\n.PHONY: build\nbuild: manifests generate fmt vet ## Build manager binary.\n\tgo build -o bin/manager cmd/ollama-operator/main.go\n\tgo build -o bin/kollama cmd/kollama/main.go\n\n.PHONY: run\nrun: manifests generate fmt vet ## Run a controller from your host.\n\tgo run ./cmd/ollama-operator/main.go\n\n# If you wish to build the manager image targeting other platforms you can use the --platform flag.\n# (i.e. docker build --platform linux/arm64). However, you must enable docker buildKit for it.\n# More info: https://docs.docker.com/develop/develop-images/build_enhancements/\n.PHONY: docker-build\ndocker-build: ## Build docker image with the manager.\n\t$(CONTAINER_TOOL) build -t ${IMG} .\n\n.PHONY: docker-push\ndocker-push: ## Push docker image with the manager.\n\t$(CONTAINER_TOOL) push ${IMG}\n\n# PLATFORMS defines the target platforms for the manager image be built to provide support to multiple\n# architectures. (i.e. make docker-buildx IMG=myregistry/mypoperator:0.0.1). To use this option you need to:\n# - be able to use docker buildx. More info: https://docs.docker.com/build/buildx/\n# - have enabled BuildKit. More info: https://docs.docker.com/develop/develop-images/build_enhancements/\n# - be able to push the image to your registry (i.e. if you do not set a valid value via IMG=<myregistry/image:<tag>> then the export will fail)\n# To adequately provide solutions that are compatible with multiple platforms, you should consider using this option.\nPLATFORMS ?= linux/arm64,linux/amd64,linux/s390x,linux/ppc64le\n.PHONY: docker-buildx\ndocker-buildx: ## Build and push docker image for the manager for cross-platform support\n\t# copy existing Dockerfile and insert --platform=${BUILDPLATFORM} into Dockerfile.cross, and preserve the original Dockerfile\n\tsed -e '1 s/\\(^FROM\\)/FROM --platform=\\$$\\{BUILDPLATFORM\\}/; t' -e ' 1,// s//FROM --platform=\\$$\\{BUILDPLATFORM\\}/' Dockerfile > Dockerfile.cross\n\t- $(CONTAINER_TOOL) buildx create --name project-v3-builder\n\t$(CONTAINER_TOOL) buildx use project-v3-builder\n\t- $(CONTAINER_TOOL) buildx build --push --platform=$(PLATFORMS) --tag ${IMG} -f Dockerfile.cross .\n\t- $(CONTAINER_TOOL) buildx rm project-v3-builder\n\trm Dockerfile.cross\n\n.PHONY: build-installer\nbuild-installer: manifests generate kustomize ## Generate a consolidated YAML with CRDs and deployment.\n\tmkdir -p dist\n\tcd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}\n\t$(KUSTOMIZE) build config/default > dist/install.yaml\n\n##@ Deployment\n\nifndef ignore-not-found\n  ignore-not-found = false\nendif\n\n.PHONY: install\ninstall: manifests kustomize ## Install CRDs into the K8s cluster specified in ~/.kube/config.\n\t$(KUSTOMIZE) build config/crd | $(KUBECTL) apply --server-side=true -f -\n\n.PHONY: uninstall\nuninstall: manifests kustomize ## Uninstall CRDs from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.\n\t$(KUSTOMIZE) build config/crd | $(KUBECTL) delete --ignore-not-found=$(ignore-not-found) -f -\n\n.PHONY: deploy\ndeploy: manifests kustomize ## Deploy controller to the K8s cluster specified in ~/.kube/config.\n\tcd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}\n\t$(KUSTOMIZE) build config/default | $(KUBECTL) apply --server-side=true -f -\n\n.PHONY: undeploy\nundeploy: kustomize ## Undeploy controller from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.\n\t$(KUSTOMIZE) build config/default | $(KUBECTL) delete --ignore-not-found=$(ignore-not-found) -f -\n\n##@ Dependencies\n\n## Location to install dependencies to\nLOCALBIN ?= $(shell pwd)/bin\n$(LOCALBIN):\n\tmkdir -p $(LOCALBIN)\n\n## Tool Binaries\nKUBECTL ?= kubectl\nKUSTOMIZE ?= $(LOCALBIN)/kustomize-$(KUSTOMIZE_VERSION)\nCONTROLLER_GEN ?= $(LOCALBIN)/controller-gen-$(CONTROLLER_TOOLS_VERSION)\nENVTEST ?= $(LOCALBIN)/setup-envtest-$(ENVTEST_VERSION)\nGOLANGCI_LINT = $(LOCALBIN)/golangci-lint-$(GOLANGCI_LINT_VERSION)\n\n## Tool Versions\nKUSTOMIZE_VERSION ?= v5.6.0\nCONTROLLER_TOOLS_VERSION ?= v0.17.2\nENVTEST_VERSION ?= release-0.20\nGOLANGCI_LINT_VERSION ?= v1.63.4\n\n.PHONY: kustomize\nkustomize: $(KUSTOMIZE) ## Download kustomize locally if necessary.\n$(KUSTOMIZE): $(LOCALBIN)\n\t$(call go-install-tool,$(KUSTOMIZE),sigs.k8s.io/kustomize/kustomize/v5,$(KUSTOMIZE_VERSION))\n\n.PHONY: controller-gen\ncontroller-gen: $(CONTROLLER_GEN) ## Download controller-gen locally if necessary.\n$(CONTROLLER_GEN): $(LOCALBIN)\n\t$(call go-install-tool,$(CONTROLLER_GEN),sigs.k8s.io/controller-tools/cmd/controller-gen,$(CONTROLLER_TOOLS_VERSION))\n\n.PHONY: envtest\nenvtest: $(ENVTEST) ## Download setup-envtest locally if necessary.\n$(ENVTEST): $(LOCALBIN)\n\t$(call go-install-tool,$(ENVTEST),sigs.k8s.io/controller-runtime/tools/setup-envtest,$(ENVTEST_VERSION))\n\n.PHONY: golangci-lint\ngolangci-lint: $(GOLANGCI_LINT) ## Download golangci-lint locally if necessary.\n$(GOLANGCI_LINT): $(LOCALBIN)\n\t$(call go-install-tool,$(GOLANGCI_LINT),github.com/golangci/golangci-lint/cmd/golangci-lint,${GOLANGCI_LINT_VERSION})\n\n# go-install-tool will 'go install' any package with custom target and name of binary, if it doesn't exist\n# $1 - target path with name of binary (ideally with version)\n# $2 - package url which can be installed\n# $3 - specific version of package\ndefine go-install-tool\n@[ -f $(1) ] || { \\\nset -e; \\\npackage=$(2)@$(3) ;\\\necho \"Downloading $${package}\" ;\\\nGOBIN=$(LOCALBIN) go install $${package} ;\\\nmv \"$$(echo \"$(1)\" | sed \"s/-$(3)$$//\")\" $(1) ;\\\n}\nendef\n"
  },
  {
    "path": "PROJECT",
    "content": "# Code generated by tool. DO NOT EDIT.\n# This file is used to track the info used to scaffold your project\n# and allow the plugins properly work.\n# More info: https://book.kubebuilder.io/reference/project-config.html\ndomain: ayaka.io\nlayout:\n- go.kubebuilder.io/v4\nprojectName: ollama-operator\nrepo: github.com/nekomeowww/ollama-operator\nresources:\n- api:\n    crdVersion: v1\n    namespaced: true\n  controller: true\n  domain: ayaka.io\n  group: ollama\n  kind: Model\n  path: github.com/nekomeowww/ollama-operator/api/v1\n  version: v1\nversion: \"3\"\n"
  },
  {
    "path": "README.md",
    "content": "<div align=\"center\">\n  <img alt=\"ollama\" height=\"200px\" src=\"./docs/public/logo.png\">\n</div>\n\n# Ollama Operator\n\n[![Discord](https://dcbadge.vercel.app/api/server/ollama?style=flat&compact=true)](https://discord.gg/ollama)\n\n> Yet another operator for running large language models on Kubernetes with ease. 🙀\n>\n> Powered by **[Ollama](https://github.com/ollama/ollama)**! 🐫\n\nWhile [Ollama](https://github.com/ollama/ollama) is a powerful tool for running large language models locally, and the user experience of CLI is just the same as using Docker CLI, it's not possible yet to replicate the same user experience on Kubernetes, especially when it comes to running multiple models on the same cluster with loads of resources and configurations.\n\nThat's where the Ollama Operator kicks in:\n\n- Install the operator on your Kubernetes cluster\n- Apply the needed CRDs\n- Create your models\n- Wait for the models to be fetched and loaded, that's it!\n\nThanks to the great works of [llama.cpp](https://github.com/ggerganov/llama.cpp), **no more worries about Python environment, CUDA drivers.**\n\nThe journey to large language models, AIGC, localized agents, [🦜🔗 Langchain](https://www.langchain.com/) and more is just a few steps away!\n\n## Features\n\n- ✅ Abilities to run multiple models on the same cluster.\n- ✅ Compatible with all Ollama models, APIs, and CLI.\n- ✅ Able to run on [general Kubernetes clusters](https://kubernetes.io/), [K3s clusters](https://k3s.io/) (Respberry Pi, TrueNAS SCALE, etc.), [kind](https://kind.sigs.k8s.io/), [minikube](https://minikube.sigs.k8s.io/docs/), etc. You name it!\n- ✅ Easy to install, uninstall, and upgrade.\n- ✅ Pull image once, share across the entire node (just like normal images).\n- ✅ Easy to expose with existing Kubernetes services, ingress, etc.\n- ✅ Doesn't require any additional dependencies, just Kubernetes\n\n## Getting started\n\n### Install operator\n\n```shell\nkubectl apply \\\n  --server-side=true \\\n  -f https://raw.githubusercontent.com/nekomeowww/ollama-operator/v0.10.1/dist/install.yaml\n```\n\n### Wait for the operator to be ready\n\n```shell\nkubectl wait \\\n  -n ollama-operator-system \\\n  --for=jsonpath='{.status.readyReplicas}'=1 \\\n  deployment/ollama-operator-controller-manager\n```\n\n### Deploy a model\n\n> [!NOTE]\n> You can also use the `kollama` CLI natively shipped by Ollama Operator, and will be easier to interact with the operator.\n>\n> Install `kollama` CLI:\n>\n> ```shell\n> go install github.com/nekomeowww/ollama-operator/cmd/kollama@latest\n> ```\n>\n> Deploy a model can be done with the following command:\n>\n> ```shell\n> kollama deploy phi --expose --node-port 30001\n> ```\n>\n> More information can be found at [CLI](https://ollama-operator.ayaka.io/pages/en/guide/getting-started/cli.html)\n\n> [!IMPORTANT]\n> Working with `kind`?\n>\n> The default provisioned `StorageClass` in `kind` is `standard`, and will only work with `ReadWriteOnce` access mode, therefore if you would need to run the operator with `kind`, you should specify `persistentVolume` with `accessMode: ReadWriteOnce` in the `Model` CRD:\n> ```yaml\n> apiVersion: ollama.ayaka.io/v1\n> kind: Model\n> metadata:\n>   name: phi\n> spec:\n>   image: phi\n>   persistentVolume:\n>     accessMode: ReadWriteOnce\n> ```\n\nLet's create a `Model` CR for the model `phi`:\n\n```yaml\napiVersion: ollama.ayaka.io/v1\nkind: Model\nmetadata:\n  name: phi\nspec:\n  image: phi\n```\n\nApply the `Model` CR to your Kubernetes cluster:\n\n```shell\nkubectl apply -f ollama-model-phi.yaml\n```\n\nWait for the model to be ready:\n\n```shell\nkubectl wait --for=jsonpath='{.status.readyReplicas}'=1 deployment/ollama-model-phi\n```\n\n### Access the model\n\n1. Ready! Now let's forward the ports to access the model:\n\n```shell\nkubectl port-forward svc/ollama-model-phi ollama\n```\n\n2. Interact with the model:\n\n```shell\nollama run phi\n```\n\n### Full options\n\n```yaml\napiVersion: ollama.ayaka.io/v1\nkind: Model\nmetadata:\n  name: phi\nspec:\n  # Scale the model to 2 replicas\n  replicas: 2\n  # Use the model image `phi`\n  image: phi\n  imagePullPolicy: IfNotPresent\n  storageClassName: local-path\n  # If you have your own PersistentVolumeClaim created\n  persistentVolumeClaim: your-pvc\n  # If you need to specify the access mode for the PersistentVolume\n  persistentVolume:\n    accessMode: ReadWriteOnce\n```\n\n## Supported models\n\nUnlock the abilities to run the following models with the Ollama Operator over Kubernetes:\n\n> [!TIP]\n> By the power of [`Modelfile`](https://github.com/ollama/ollama/blob/main/docs/modelfile.md) backed by Ollama, you can create and bundle any of your own model. **As long as it's a GGUF formatted model.**\n>\n> Full list of available images can be found at [Ollama Library](https://ollama.com/library).\n\n> [!WARNING]\n> You should have at least 8 GB of RAM available on your node to run the 7B models, 16 GB to run the 13B models, and 32 GB to run the 33B models.\n\n> [!WARNING]\n> The actual size of downloaded large language models are huge by comparing to the size of general container images.\n>\n> 1. Fast and stable network connection is recommended to download the models.\n> 2. Efficient storage is required to store the models if you want to run models larger than 13B.\n\n## Architecture Overview\n\nThere are two major components that the Ollama Operator will create for:\n\n1. **Model Inferencing Server**: The model inferencing server is a gRPC server that runs the model and serves the model's API. It is created as a `Deployment` in the Kubernetes cluster.\n2. **Model Image Storage**: The model image storage is a `PersistentVolume` that stores the model image. It is created as a `StatefulSet` along with a `PersistentVolumeClaim` in the Kubernetes cluster.\n\n> [!NOTE]\n> The image that created by [`Modelfile`](https://github.com/ollama/ollama/blob/main/docs/modelfile.md) of Ollama is a valid OCI format image, however, due to the incompatible `contentType` value, and the overall structure of the `Modelfile` image to the general container image, it's not possible to run the model directly with the general container runtime. Therefore a standalone service/deployment of **Model Image Storage** is required to be persisted on the Kubernetes cluster in order to hold and cache the previously downloaded model image.\n\nThe detailed resources it creates, and the relationships between them are shown in the following diagram:\n\n<picture>\n  <source\n    srcset=\"./docs/public/architecture-theme-night.png\"\n    media=\"(prefers-color-scheme: dark)\"\n  />\n  <source\n    srcset=\"./docs/public/architecture-theme-day.png\"\n    media=\"(prefers-color-scheme: light), (prefers-color-scheme: no-preference)\"\n  />\n  <img src=\"./docs/public/architecture-theme-day.png\" />\n</picture>\n\n## Contributing\n\n- Refer to the [CONTRIBUTING.md](CONTRIBUTING.md) for more information.\n- More information can be found via the [Kubebuilder Documentation](https://book.kubebuilder.io/introduction.html)\n\n## Acknowledgements\n\nGratefully thanks to the following projects and their authors, contributors:\n\n- [Ollama](https://github.com/ollama/ollama)\n- [llama.cpp](https://github.com/ggerganov/llama.cpp)\n- [Kubebuilder](https://book.kubebuilder.io/introduction.html)\n\nIt is because of their hard work and contributions that this program exists.\n"
  },
  {
    "path": "api/ollama/v1/groupversion_info.go",
    "content": "/*\nCopyright 2024.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\n// Package v1 contains API Schema definitions for the ollama v1 API group\n// +kubebuilder:object:generate=true\n// +groupName=ollama.ayaka.io\npackage v1\n\nimport (\n\t\"k8s.io/apimachinery/pkg/runtime/schema\"\n\t\"sigs.k8s.io/controller-runtime/pkg/scheme\"\n)\n\nvar (\n\t// GroupVersion is group version used to register these objects\n\tGroupVersion = schema.GroupVersion{Group: \"ollama.ayaka.io\", Version: \"v1\"}\n\n\t// SchemeBuilder is used to add go types to the GroupVersionKind scheme\n\tSchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}\n\n\t// AddToScheme adds the types in this group-version to the given scheme.\n\tAddToScheme = SchemeBuilder.AddToScheme\n)\n"
  },
  {
    "path": "api/ollama/v1/model_types.go",
    "content": "/*\nCopyright 2024.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\npackage v1\n\nimport (\n\tcorev1 \"k8s.io/api/core/v1\"\n\tmetav1 \"k8s.io/apimachinery/pkg/apis/meta/v1\"\n)\n\ntype ModelPersistentVolumeSpec struct {\n\t// accessModes contains all ways the volume can be mounted.\n\t// More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes\n\t// +optional\n\tAccessMode *corev1.PersistentVolumeAccessMode `json:\"accessMode,omitempty\" protobuf:\"bytes,1,opt,name=accessMode,casttype=PersistentVolumeAccessMode\"`\n}\n\n// EDIT THIS FILE!  THIS IS SCAFFOLDING FOR YOU TO OWN!\n// NOTE: json tags are required.  Any new fields you add must have json tags for the fields to be serialized.\n\n// ModelSpec defines the desired state of Model\ntype ModelSpec struct {\n\t// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster\n\t// Important: Run \"make\" to regenerate code after modifying this file\n\n\t// Number of desired pods. This is a pointer to distinguish between explicit\n\t// zero and not specified. Defaults to 1.\n\t// +optional\n\tReplicas *int32 `json:\"replicas,omitempty\" protobuf:\"varint,1,opt,name=replicas\"`\n\t// Container image name.\n\t// More info: https://kubernetes.io/docs/concepts/containers/images\n\t// This field is optional to allow higher level config management to default or override\n\t// container images in workload controllers like Deployments and StatefulSets.\n\tImage string `json:\"image\" protobuf:\"bytes,2,name=image\"`\n\t// Image pull policy.\n\t// One of Always, Never, IfNotPresent.\n\t// Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.\n\t// Cannot be updated.\n\t// More info: https://kubernetes.io/docs/concepts/containers/images#updating-images\n\t// +optional\n\tImagePullPolicy corev1.PullPolicy `json:\"imagePullPolicy,omitempty\" protobuf:\"bytes,3,opt,name=imagePullPolicy,casttype=PullPolicy\"`\n\t// ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec.\n\t// If specified, these secrets will be passed to individual puller implementations for them to use.\n\t// More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod\n\t// +optional\n\t// +patchMergeKey=name\n\t// +patchStrategy=merge\n\tImagePullSecrets []corev1.LocalObjectReference `json:\"imagePullSecrets,omitempty\" patchStrategy:\"merge\" patchMergeKey:\"name\" protobuf:\"bytes,4,rep,name=imagePullSecrets\"`\n\t// Compute Resources required by this container.\n\t// Cannot be updated.\n\t// More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/\n\t// +optional\n\tResources corev1.ResourceRequirements `json:\"resources,omitempty\" protobuf:\"bytes,5,opt,name=resources\"`\n\t// storageClassName is the name of StorageClass to which this persistent volume belongs. Empty value\n\t// means that this volume does not belong to any StorageClass.\n\t// +optional\n\tStorageClassName *string `json:\"storageClassName,omitempty\" protobuf:\"bytes,6,opt,name=storageClassName\"`\n\t// persistentVolumeClaimVolumeSource represents a reference to a\n\t// PersistentVolumeClaim in the same namespace.\n\t// More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims\n\t// +optional\n\tPersistentVolumeClaim *corev1.PersistentVolumeClaimVolumeSource `json:\"persistentVolumeClaim,omitempty\" protobuf:\"bytes,7,opt,name=persistentVolumeClaim\"`\n\t// spec defines a specification of a persistent volume owned by the cluster.\n\t// Provisioned by an administrator.\n\t// More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes\n\t// +optional\n\tPersistentVolume *ModelPersistentVolumeSpec `json:\"persistentVolume,omitempty\" protobuf:\"bytes,8,opt,name=persistentVolume\"`\n\t// RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used\n\t// to run this pod.  If no RuntimeClass resource matches the named class, the pod will not be run.\n\t// If unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an\n\t// empty definition that uses the default runtime handler.\n\t// More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class\n\t// +optional\n\tRuntimeClassName *string `json:\"runtimeClassName,omitempty\" protobuf:\"bytes,9,opt,name=runtimeClassName\"`\n\t// List of sources to populate environment variables in the container.\n\t// The keys defined within a source must be a C_IDENTIFIER. All invalid keys\n\t// will be reported as an event when the container is starting. When a key exists in multiple\n\t// sources, the value associated with the last source will take precedence.\n\t// Values defined by an Env with a duplicate key will take precedence.\n\t// Cannot be updated.\n\t// +optional\n\tExtraEnvFrom []corev1.EnvFromSource `json:\"extraEnvFrom,omitempty\" protobuf:\"bytes,10,rep,name=extraEnvFrom\"`\n\t// List of environment variables to set in the container.\n\t// Cannot be updated.\n\t// +optional\n\t// +patchMergeKey=name\n\t// +patchStrategy=merge\n\tEnv []corev1.EnvVar `json:\"extraEnv,omitempty\" patchStrategy:\"merge\" patchMergeKey:\"name\" protobuf:\"bytes,11,rep,name=extraEnv\"`\n\t// PodTemplateSpec describes the data a pod should have when created from a template\n\t// +optional\n\tPodTemplate *corev1.PodTemplateSpec `json:\"podTemplate\" protobuf:\"bytes,12,opt,name=podTemplate\"`\n}\n\ntype ConditionType string\n\n// These are valid condition statuses. \"ConditionTrue\" means a resource is in the condition.\n// \"ConditionFalse\" means a resource is not in the condition. \"ConditionUnknown\" means kubernetes\n// can't decide if a resource is in the condition or not. In the future, we could add other\n// intermediate conditions, e.g. ConditionDegraded.\nconst (\n\tModelUnknown ConditionType = \"Unknown\"\n\t// Available means the deployment is available, ie. at least the minimum available\n\t// replicas required are up and running for at least minReadySeconds.\n\tModelAvailable ConditionType = \"Available\"\n\t// Progressing means the deployment is progressing. Progress for a deployment is\n\t// considered when a new replica set is created or adopted, and when new pods scale\n\t// up or old pods scale down. Progress is not estimated for paused deployments or\n\t// when progressDeadlineSeconds is not specified.\n\tModelProgressing ConditionType = \"Progressing\"\n\t// ReplicaFailure is added in a deployment when one of its pods fails to be created\n\t// or deleted.\n\tModelReplicaFailure ConditionType = \"ReplicaFailure\"\n)\n\ntype ModelStatusCondition struct {\n\t// Type of deployment condition.\n\tType ConditionType `json:\"type\" protobuf:\"bytes,1,opt,name=type,casttype=ConditionType\"`\n\t// Status of the condition, one of True, False, Unknown.\n\tStatus corev1.ConditionStatus `json:\"status\" protobuf:\"bytes,2,opt,name=status,casttype=k8s.io/api/core/v1.ConditionStatus\"`\n\t// The last time this condition was updated.\n\tLastUpdateTime metav1.Time `json:\"lastUpdateTime,omitempty\" protobuf:\"bytes,6,opt,name=lastUpdateTime\"`\n\t// Last time the condition transitioned from one status to another.\n\tLastTransitionTime metav1.Time `json:\"lastTransitionTime,omitempty\" protobuf:\"bytes,7,opt,name=lastTransitionTime\"`\n\t// The reason for the condition's last transition.\n\tReason string `json:\"reason,omitempty\" protobuf:\"bytes,4,opt,name=reason\"`\n\t// A human readable message indicating details about the transition.\n\tMessage string `json:\"message,omitempty\" protobuf:\"bytes,5,opt,name=message\"`\n}\n\n// ModelStatus defines the observed state of Model\ntype ModelStatus struct {\n\t// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster\n\t// Important: Run \"make\" to regenerate code after modifying this file\n\n\t// Total number of non-terminated pods targeted by this deployment (their labels match the selector).\n\t// +optional\n\tReplicas int32 `json:\"replicas,omitempty\" protobuf:\"varint,2,opt,name=replicas\"`\n\n\t// readyReplicas is the number of pods targeted by this Deployment with a Ready Condition.\n\t// +optional\n\tReadyReplicas int32 `json:\"readyReplicas,omitempty\" protobuf:\"varint,7,opt,name=readyReplicas\"`\n\n\t// Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.\n\t// +optional\n\tAvailableReplicas int32 `json:\"availableReplicas,omitempty\" protobuf:\"varint,4,opt,name=availableReplicas\"`\n\n\t// Total number of unavailable pods targeted by this deployment. This is the total number of\n\t// pods that are still required for the deployment to have 100% available capacity. They may\n\t// either be pods that are running but not yet available or pods that still have not been created.\n\t// +optional\n\tUnavailableReplicas int32 `json:\"unavailableReplicas,omitempty\" protobuf:\"varint,5,opt,name=unavailableReplicas\"`\n\n\t// +kubebuilder:validation:Optional\n\tConditions []ModelStatusCondition `json:\"conditions,omitempty\"`\n}\n\n// Model is the Schema for the models API\n// +genclient\n// +kubebuilder:object:root=true\n// +kubebuilder:subresource:status\n// +kubebuilder:printcolumn:name=\"Model\",type=string,JSONPath=`.spec.image`\n// +kubebuilder:printcolumn:name=\"Status\",type=string,JSONPath=`.status.conditions[0].type`\ntype Model struct {\n\tmetav1.TypeMeta   `json:\",inline\"`\n\tmetav1.ObjectMeta `json:\"metadata,omitempty\"`\n\n\tSpec   ModelSpec   `json:\"spec,omitempty\"`\n\tStatus ModelStatus `json:\"status,omitempty\"`\n}\n\n//+kubebuilder:object:root=true\n\n// ModelList contains a list of Model\ntype ModelList struct {\n\tmetav1.TypeMeta `json:\",inline\"`\n\tmetav1.ListMeta `json:\"metadata,omitempty\"`\n\tItems           []Model `json:\"items\"`\n}\n\nfunc init() {\n\tSchemeBuilder.Register(&Model{}, &ModelList{})\n}\n"
  },
  {
    "path": "api/ollama/v1/zz_generated.deepcopy.go",
    "content": "//go:build !ignore_autogenerated\n\n/*\nCopyright 2024.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\n// Code generated by controller-gen. DO NOT EDIT.\n\npackage v1\n\nimport (\n\tcorev1 \"k8s.io/api/core/v1\"\n\truntime \"k8s.io/apimachinery/pkg/runtime\"\n)\n\n// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.\nfunc (in *Model) DeepCopyInto(out *Model) {\n\t*out = *in\n\tout.TypeMeta = in.TypeMeta\n\tin.ObjectMeta.DeepCopyInto(&out.ObjectMeta)\n\tin.Spec.DeepCopyInto(&out.Spec)\n\tin.Status.DeepCopyInto(&out.Status)\n}\n\n// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Model.\nfunc (in *Model) DeepCopy() *Model {\n\tif in == nil {\n\t\treturn nil\n\t}\n\tout := new(Model)\n\tin.DeepCopyInto(out)\n\treturn out\n}\n\n// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.\nfunc (in *Model) DeepCopyObject() runtime.Object {\n\tif c := in.DeepCopy(); c != nil {\n\t\treturn c\n\t}\n\treturn nil\n}\n\n// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.\nfunc (in *ModelList) DeepCopyInto(out *ModelList) {\n\t*out = *in\n\tout.TypeMeta = in.TypeMeta\n\tin.ListMeta.DeepCopyInto(&out.ListMeta)\n\tif in.Items != nil {\n\t\tin, out := &in.Items, &out.Items\n\t\t*out = make([]Model, len(*in))\n\t\tfor i := range *in {\n\t\t\t(*in)[i].DeepCopyInto(&(*out)[i])\n\t\t}\n\t}\n}\n\n// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModelList.\nfunc (in *ModelList) DeepCopy() *ModelList {\n\tif in == nil {\n\t\treturn nil\n\t}\n\tout := new(ModelList)\n\tin.DeepCopyInto(out)\n\treturn out\n}\n\n// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.\nfunc (in *ModelList) DeepCopyObject() runtime.Object {\n\tif c := in.DeepCopy(); c != nil {\n\t\treturn c\n\t}\n\treturn nil\n}\n\n// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.\nfunc (in *ModelPersistentVolumeSpec) DeepCopyInto(out *ModelPersistentVolumeSpec) {\n\t*out = *in\n\tif in.AccessMode != nil {\n\t\tin, out := &in.AccessMode, &out.AccessMode\n\t\t*out = new(corev1.PersistentVolumeAccessMode)\n\t\t**out = **in\n\t}\n}\n\n// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModelPersistentVolumeSpec.\nfunc (in *ModelPersistentVolumeSpec) DeepCopy() *ModelPersistentVolumeSpec {\n\tif in == nil {\n\t\treturn nil\n\t}\n\tout := new(ModelPersistentVolumeSpec)\n\tin.DeepCopyInto(out)\n\treturn out\n}\n\n// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.\nfunc (in *ModelSpec) DeepCopyInto(out *ModelSpec) {\n\t*out = *in\n\tif in.Replicas != nil {\n\t\tin, out := &in.Replicas, &out.Replicas\n\t\t*out = new(int32)\n\t\t**out = **in\n\t}\n\tif in.ImagePullSecrets != nil {\n\t\tin, out := &in.ImagePullSecrets, &out.ImagePullSecrets\n\t\t*out = make([]corev1.LocalObjectReference, len(*in))\n\t\tcopy(*out, *in)\n\t}\n\tin.Resources.DeepCopyInto(&out.Resources)\n\tif in.StorageClassName != nil {\n\t\tin, out := &in.StorageClassName, &out.StorageClassName\n\t\t*out = new(string)\n\t\t**out = **in\n\t}\n\tif in.PersistentVolumeClaim != nil {\n\t\tin, out := &in.PersistentVolumeClaim, &out.PersistentVolumeClaim\n\t\t*out = new(corev1.PersistentVolumeClaimVolumeSource)\n\t\t**out = **in\n\t}\n\tif in.PersistentVolume != nil {\n\t\tin, out := &in.PersistentVolume, &out.PersistentVolume\n\t\t*out = new(ModelPersistentVolumeSpec)\n\t\t(*in).DeepCopyInto(*out)\n\t}\n\tif in.RuntimeClassName != nil {\n\t\tin, out := &in.RuntimeClassName, &out.RuntimeClassName\n\t\t*out = new(string)\n\t\t**out = **in\n\t}\n\tif in.ExtraEnvFrom != nil {\n\t\tin, out := &in.ExtraEnvFrom, &out.ExtraEnvFrom\n\t\t*out = make([]corev1.EnvFromSource, len(*in))\n\t\tfor i := range *in {\n\t\t\t(*in)[i].DeepCopyInto(&(*out)[i])\n\t\t}\n\t}\n\tif in.Env != nil {\n\t\tin, out := &in.Env, &out.Env\n\t\t*out = make([]corev1.EnvVar, len(*in))\n\t\tfor i := range *in {\n\t\t\t(*in)[i].DeepCopyInto(&(*out)[i])\n\t\t}\n\t}\n\tif in.PodTemplate != nil {\n\t\tin, out := &in.PodTemplate, &out.PodTemplate\n\t\t*out = new(corev1.PodTemplateSpec)\n\t\t(*in).DeepCopyInto(*out)\n\t}\n}\n\n// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModelSpec.\nfunc (in *ModelSpec) DeepCopy() *ModelSpec {\n\tif in == nil {\n\t\treturn nil\n\t}\n\tout := new(ModelSpec)\n\tin.DeepCopyInto(out)\n\treturn out\n}\n\n// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.\nfunc (in *ModelStatus) DeepCopyInto(out *ModelStatus) {\n\t*out = *in\n\tif in.Conditions != nil {\n\t\tin, out := &in.Conditions, &out.Conditions\n\t\t*out = make([]ModelStatusCondition, len(*in))\n\t\tfor i := range *in {\n\t\t\t(*in)[i].DeepCopyInto(&(*out)[i])\n\t\t}\n\t}\n}\n\n// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModelStatus.\nfunc (in *ModelStatus) DeepCopy() *ModelStatus {\n\tif in == nil {\n\t\treturn nil\n\t}\n\tout := new(ModelStatus)\n\tin.DeepCopyInto(out)\n\treturn out\n}\n\n// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.\nfunc (in *ModelStatusCondition) DeepCopyInto(out *ModelStatusCondition) {\n\t*out = *in\n\tin.LastUpdateTime.DeepCopyInto(&out.LastUpdateTime)\n\tin.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime)\n}\n\n// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModelStatusCondition.\nfunc (in *ModelStatusCondition) DeepCopy() *ModelStatusCondition {\n\tif in == nil {\n\t\treturn nil\n\t}\n\tout := new(ModelStatusCondition)\n\tin.DeepCopyInto(out)\n\treturn out\n}\n"
  },
  {
    "path": "cmd/kollama/main.go",
    "content": "/*\nCopyright 2018 The Kubernetes Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\npackage main\n\nimport (\n\t\"os\"\n\n\t\"github.com/spf13/pflag\"\n\n\t\"github.com/nekomeowww/ollama-operator/internal/cli/kollama\"\n\t\"k8s.io/cli-runtime/pkg/genericiooptions\"\n\n\t// Import authentication plugins (Go)\n\t// By default, plugins that use client-go cannot authenticate to Kubernetes clusters on many cloud providers. To address this, include the following import in your plugin:\n\t// from - Best practices · Krew\n\t// https://krew.sigs.k8s.io/docs/developer-guide/develop/best-practices/\n\t_ \"k8s.io/client-go/plugin/pkg/client/auth\"\n)\n\nfunc main() {\n\tflags := pflag.NewFlagSet(\"kollama\", pflag.ExitOnError)\n\tpflag.CommandLine = flags\n\n\troot := kollama.NewCmd(genericiooptions.IOStreams{In: os.Stdin, Out: os.Stdout, ErrOut: os.Stderr})\n\n\terr := root.Execute()\n\tif err != nil {\n\t\tos.Exit(1)\n\t}\n}\n"
  },
  {
    "path": "cmd/ollama-operator/main.go",
    "content": "/*\nCopyright 2024.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\npackage main\n\nimport (\n\t\"crypto/tls\"\n\t\"flag\"\n\t\"os\"\n\n\t// Import all Kubernetes client auth plugins (e.g. Azure, GCP, OIDC, etc.)\n\t// to ensure that exec-entrypoint and run can make use of them.\n\t_ \"k8s.io/client-go/plugin/pkg/client/auth\"\n\n\t\"k8s.io/apimachinery/pkg/runtime\"\n\tutilruntime \"k8s.io/apimachinery/pkg/util/runtime\"\n\tclientgoscheme \"k8s.io/client-go/kubernetes/scheme\"\n\tctrl \"sigs.k8s.io/controller-runtime\"\n\t\"sigs.k8s.io/controller-runtime/pkg/healthz\"\n\t\"sigs.k8s.io/controller-runtime/pkg/log/zap\"\n\tmetricsserver \"sigs.k8s.io/controller-runtime/pkg/metrics/server\"\n\t\"sigs.k8s.io/controller-runtime/pkg/webhook\"\n\n\tollamav1 \"github.com/nekomeowww/ollama-operator/api/ollama/v1\"\n\t\"github.com/nekomeowww/ollama-operator/internal/controller\"\n\t//+kubebuilder:scaffold:imports\n)\n\nvar (\n\tscheme   = runtime.NewScheme()\n\tsetupLog = ctrl.Log.WithName(\"setup\")\n)\n\nfunc init() {\n\tutilruntime.Must(clientgoscheme.AddToScheme(scheme))\n\n\tutilruntime.Must(ollamav1.AddToScheme(scheme))\n\t//+kubebuilder:scaffold:scheme\n}\n\nfunc main() {\n\tvar (\n\t\tmetricsAddr          string\n\t\tenableLeaderElection bool\n\t\tprobeAddr            string\n\t\tsecureMetrics        bool\n\t\tenableHTTP2          bool\n\t)\n\n\tflag.StringVar(&metricsAddr, \"metrics-bind-address\", \":8080\", \"The address the metric endpoint binds to.\")\n\tflag.StringVar(&probeAddr, \"health-probe-bind-address\", \":8081\", \"The address the probe endpoint binds to.\")\n\tflag.BoolVar(&enableLeaderElection, \"leader-elect\", false,\n\t\t\"Enable leader election for controller manager. \"+\n\t\t\t\"Enabling this will ensure there is only one active controller manager.\")\n\tflag.BoolVar(&secureMetrics, \"metrics-secure\", false,\n\t\t\"If set the metrics endpoint is served securely\")\n\tflag.BoolVar(&enableHTTP2, \"enable-http2\", false,\n\t\t\"If set, HTTP/2 will be enabled for the metrics and webhook servers\")\n\n\topts := zap.Options{\n\t\tDevelopment: true,\n\t}\n\topts.BindFlags(flag.CommandLine)\n\tflag.Parse()\n\n\tctrl.SetLogger(zap.New(zap.UseFlagOptions(&opts)))\n\n\t// if the enable-http2 flag is false (the default), http/2 should be disabled\n\t// due to its vulnerabilities. More specifically, disabling http/2 will\n\t// prevent from being vulnerable to the HTTP/2 Stream Cancellation and\n\t// Rapid Reset CVEs. For more information see:\n\t// - https://github.com/advisories/GHSA-qppj-fm5r-hxr3\n\t// - https://github.com/advisories/GHSA-4374-p667-p6c8\n\tdisableHTTP2 := func(c *tls.Config) {\n\t\tsetupLog.Info(\"disabling http/2\")\n\n\t\tc.NextProtos = []string{\"http/1.1\"}\n\t}\n\n\ttlsOpts := []func(*tls.Config){}\n\tif !enableHTTP2 {\n\t\ttlsOpts = append(tlsOpts, disableHTTP2)\n\t}\n\n\twebhookServer := webhook.NewServer(webhook.Options{\n\t\tTLSOpts: tlsOpts,\n\t})\n\n\tmgr, err := ctrl.NewManager(ctrl.GetConfigOrDie(), ctrl.Options{\n\t\tScheme: scheme,\n\t\tMetrics: metricsserver.Options{\n\t\t\tBindAddress:   metricsAddr,\n\t\t\tSecureServing: secureMetrics,\n\t\t\tTLSOpts:       tlsOpts,\n\t\t},\n\t\tWebhookServer:          webhookServer,\n\t\tHealthProbeBindAddress: probeAddr,\n\t\tLeaderElection:         enableLeaderElection,\n\t\tLeaderElectionID:       \"300b498d.ayaka.io\",\n\t\t// LeaderElectionReleaseOnCancel defines if the leader should step down voluntarily\n\t\t// when the Manager ends. This requires the binary to immediately end when the\n\t\t// Manager is stopped, otherwise, this setting is unsafe. Setting this significantly\n\t\t// speeds up voluntary leader transitions as the new leader don't have to wait\n\t\t// LeaseDuration time first.\n\t\t//\n\t\t// In the default scaffold provided, the program ends immediately after\n\t\t// the manager stops, so would be fine to enable this option. However,\n\t\t// if you are doing or is intended to do any operation such as perform cleanups\n\t\t// after the manager stops then its usage might be unsafe.\n\t\t// LeaderElectionReleaseOnCancel: true,\n\t})\n\tif err != nil {\n\t\tsetupLog.Error(err, \"unable to start manager\")\n\t\tos.Exit(1)\n\t}\n\n\tif err = (&controller.ModelReconciler{\n\t\tClient:   mgr.GetClient(),\n\t\tScheme:   mgr.GetScheme(),\n\t\tRecorder: mgr.GetEventRecorderFor(\"ollama-model-controller\"),\n\t}).SetupWithManager(mgr); err != nil {\n\t\tsetupLog.Error(err, \"unable to create controller\", \"controller\", \"Model\")\n\t\tos.Exit(1)\n\t}\n\t//+kubebuilder:scaffold:builder\n\n\tif err := mgr.AddHealthzCheck(\"healthz\", healthz.Ping); err != nil {\n\t\tsetupLog.Error(err, \"unable to set up health check\")\n\t\tos.Exit(1)\n\t}\n\n\tif err := mgr.AddReadyzCheck(\"readyz\", healthz.Ping); err != nil {\n\t\tsetupLog.Error(err, \"unable to set up ready check\")\n\t\tos.Exit(1)\n\t}\n\n\tsetupLog.Info(\"starting manager\")\n\n\tif err := mgr.Start(ctrl.SetupSignalHandler()); err != nil {\n\t\tsetupLog.Error(err, \"problem running manager\")\n\t\tos.Exit(1)\n\t}\n}\n"
  },
  {
    "path": "config/crd/bases/ollama.ayaka.io_models.yaml",
    "content": "---\napiVersion: apiextensions.k8s.io/v1\nkind: CustomResourceDefinition\nmetadata:\n  annotations:\n    controller-gen.kubebuilder.io/version: v0.17.2\n  name: models.ollama.ayaka.io\nspec:\n  group: ollama.ayaka.io\n  names:\n    kind: Model\n    listKind: ModelList\n    plural: models\n    singular: model\n  scope: Namespaced\n  versions:\n  - additionalPrinterColumns:\n    - jsonPath: .spec.image\n      name: Model\n      type: string\n    - jsonPath: .status.conditions[0].type\n      name: Status\n      type: string\n    name: v1\n    schema:\n      openAPIV3Schema:\n        description: Model is the Schema for the models API\n        properties:\n          apiVersion:\n            description: |-\n              APIVersion defines the versioned schema of this representation of an object.\n              Servers should convert recognized schemas to the latest internal value, and\n              may reject unrecognized values.\n              More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\n            type: string\n          kind:\n            description: |-\n              Kind is a string value representing the REST resource this object represents.\n              Servers may infer this from the endpoint the client submits requests to.\n              Cannot be updated.\n              In CamelCase.\n              More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\n            type: string\n          metadata:\n            type: object\n          spec:\n            description: ModelSpec defines the desired state of Model\n            properties:\n              extraEnv:\n                description: |-\n                  List of environment variables to set in the container.\n                  Cannot be updated.\n                items:\n                  description: EnvVar represents an environment variable present in\n                    a Container.\n                  properties:\n                    name:\n                      description: |-\n                        Name of the environment variable.\n                        May consist of any printable ASCII characters except '='.\n                      type: string\n                    value:\n                      description: |-\n                        Variable references $(VAR_NAME) are expanded\n                        using the previously defined environment variables in the container and\n                        any service environment variables. If a variable cannot be resolved,\n                        the reference in the input string will be unchanged. Double $$ are reduced\n                        to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.\n                        \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\".\n                        Escaped references will never be expanded, regardless of whether the variable\n                        exists or not.\n                        Defaults to \"\".\n                      type: string\n                    valueFrom:\n                      description: Source for the environment variable's value. Cannot\n                        be used if value is not empty.\n                      properties:\n                        configMapKeyRef:\n                          description: Selects a key of a ConfigMap.\n                          properties:\n                            key:\n                              description: The key to select.\n                              type: string\n                            name:\n                              default: \"\"\n                              description: |-\n                                Name of the referent.\n                                This field is effectively required, but due to backwards compatibility is\n                                allowed to be empty. Instances of this type with an empty value here are\n                                almost certainly wrong.\n                                More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\n                              type: string\n                            optional:\n                              description: Specify whether the ConfigMap or its key\n                                must be defined\n                              type: boolean\n                          required:\n                          - key\n                          type: object\n                          x-kubernetes-map-type: atomic\n                        fieldRef:\n                          description: |-\n                            Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`,\n                            spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.\n                          properties:\n                            apiVersion:\n                              description: Version of the schema the FieldPath is\n                                written in terms of, defaults to \"v1\".\n                              type: string\n                            fieldPath:\n                              description: Path of the field to select in the specified\n                                API version.\n                              type: string\n                          required:\n                          - fieldPath\n                          type: object\n                          x-kubernetes-map-type: atomic\n                        fileKeyRef:\n                          description: |-\n                            FileKeyRef selects a key of the env file.\n                            Requires the EnvFiles feature gate to be enabled.\n                          properties:\n                            key:\n                              description: |-\n                                The key within the env file. An invalid key will prevent the pod from starting.\n                                The keys defined within a source may consist of any printable ASCII characters except '='.\n                                During Alpha stage of the EnvFiles feature gate, the key size is limited to 128 characters.\n                              type: string\n                            optional:\n                              default: false\n                              description: |-\n                                Specify whether the file or its key must be defined. If the file or key\n                                does not exist, then the env var is not published.\n                                If optional is set to true and the specified key does not exist,\n                                the environment variable will not be set in the Pod's containers.\n\n                                If optional is set to false and the specified key does not exist,\n                                an error will be returned during Pod creation.\n                              type: boolean\n                            path:\n                              description: |-\n                                The path within the volume from which to select the file.\n                                Must be relative and may not contain the '..' path or start with '..'.\n                              type: string\n                            volumeName:\n                              description: The name of the volume mount containing\n                                the env file.\n                              type: string\n                          required:\n                          - key\n                          - path\n                          - volumeName\n                          type: object\n                          x-kubernetes-map-type: atomic\n                        resourceFieldRef:\n                          description: |-\n                            Selects a resource of the container: only resources limits and requests\n                            (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.\n                          properties:\n                            containerName:\n                              description: 'Container name: required for volumes,\n                                optional for env vars'\n                              type: string\n                            divisor:\n                              anyOf:\n                              - type: integer\n                              - type: string\n                              description: Specifies the output format of the exposed\n                                resources, defaults to \"1\"\n                              pattern: ^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$\n                              x-kubernetes-int-or-string: true\n                            resource:\n                              description: 'Required: resource to select'\n                              type: string\n                          required:\n                          - resource\n                          type: object\n                          x-kubernetes-map-type: atomic\n                        secretKeyRef:\n                          description: Selects a key of a secret in the pod's namespace\n                          properties:\n                            key:\n                              description: The key of the secret to select from.  Must\n                                be a valid secret key.\n                              type: string\n                            name:\n                              default: \"\"\n                              description: |-\n                                Name of the referent.\n                                This field is effectively required, but due to backwards compatibility is\n                                allowed to be empty. Instances of this type with an empty value here are\n                                almost certainly wrong.\n                                More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\n                              type: string\n                            optional:\n                              description: Specify whether the Secret or its key must\n                                be defined\n                              type: boolean\n                          required:\n                          - key\n                          type: object\n                          x-kubernetes-map-type: atomic\n                      type: object\n                  required:\n                  - name\n                  type: object\n                type: array\n              extraEnvFrom:\n                description: |-\n                  List of sources to populate environment variables in the container.\n                  The keys defined within a source must be a C_IDENTIFIER. All invalid keys\n                  will be reported as an event when the container is starting. When a key exists in multiple\n                  sources, the value associated with the last source will take precedence.\n                  Values defined by an Env with a duplicate key will take precedence.\n                  Cannot be updated.\n                items:\n                  description: EnvFromSource represents the source of a set of ConfigMaps\n                    or Secrets\n                  properties:\n                    configMapRef:\n                      description: The ConfigMap to select from\n                      properties:\n                        name:\n                          default: \"\"\n                          description: |-\n                            Name of the referent.\n                            This field is effectively required, but due to backwards compatibility is\n                            allowed to be empty. Instances of this type with an empty value here are\n                            almost certainly wrong.\n                            More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\n                          type: string\n                        optional:\n                          description: Specify whether the ConfigMap must be defined\n                          type: boolean\n                      type: object\n                      x-kubernetes-map-type: atomic\n                    prefix:\n                      description: |-\n                        Optional text to prepend to the name of each environment variable.\n                        May consist of any printable ASCII characters except '='.\n                      type: string\n                    secretRef:\n                      description: The Secret to select from\n                      properties:\n                        name:\n                          default: \"\"\n                          description: |-\n                            Name of the referent.\n                            This field is effectively required, but due to backwards compatibility is\n                            allowed to be empty. Instances of this type with an empty value here are\n                            almost certainly wrong.\n                            More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\n                          type: string\n                        optional:\n                          description: Specify whether the Secret must be defined\n                          type: boolean\n                      type: object\n                      x-kubernetes-map-type: atomic\n                  type: object\n                type: array\n              image:\n                description: |-\n                  Container image name.\n                  More info: https://kubernetes.io/docs/concepts/containers/images\n                  This field is optional to allow higher level config management to default or override\n                  container images in workload controllers like Deployments and StatefulSets.\n                type: string\n              imagePullPolicy:\n                description: |-\n                  Image pull policy.\n                  One of Always, Never, IfNotPresent.\n                  Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.\n                  Cannot be updated.\n                  More info: https://kubernetes.io/docs/concepts/containers/images#updating-images\n                type: string\n              imagePullSecrets:\n                description: |-\n                  ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec.\n                  If specified, these secrets will be passed to individual puller implementations for them to use.\n                  More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod\n                items:\n                  description: |-\n                    LocalObjectReference contains enough information to let you locate the\n                    referenced object inside the same namespace.\n                  properties:\n                    name:\n                      default: \"\"\n                      description: |-\n                        Name of the referent.\n                        This field is effectively required, but due to backwards compatibility is\n                        allowed to be empty. Instances of this type with an empty value here are\n                        almost certainly wrong.\n                        More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\n                      type: string\n                  type: object\n                  x-kubernetes-map-type: atomic\n                type: array\n              persistentVolume:\n                description: |-\n                  spec defines a specification of a persistent volume owned by the cluster.\n                  Provisioned by an administrator.\n                  More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes\n                properties:\n                  accessMode:\n                    description: |-\n                      accessModes contains all ways the volume can be mounted.\n                      More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes\n                    type: string\n                type: object\n              persistentVolumeClaim:\n                description: |-\n                  persistentVolumeClaimVolumeSource represents a reference to a\n                  PersistentVolumeClaim in the same namespace.\n                  More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims\n                properties:\n                  claimName:\n                    description: |-\n                      claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume.\n                      More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims\n                    type: string\n                  readOnly:\n                    description: |-\n                      readOnly Will force the ReadOnly setting in VolumeMounts.\n                      Default false.\n                    type: boolean\n                required:\n                - claimName\n                type: object\n              podTemplate:\n                description: PodTemplateSpec describes the data a pod should have\n                  when created from a template\n                properties:\n                  metadata:\n                    description: |-\n                      Standard object's metadata.\n                      More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata\n                    type: object\n                  spec:\n                    description: |-\n                      Specification of the desired behavior of the pod.\n                      More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status\n                    properties:\n                      activeDeadlineSeconds:\n                        description: |-\n                          Optional duration in seconds the pod may be active on the node relative to\n                          StartTime before the system will actively try to mark it failed and kill associated containers.\n                          Value must be a positive integer.\n                        format: int64\n                        type: integer\n                      affinity:\n                        description: If specified, the pod's scheduling constraints\n                        properties:\n                          nodeAffinity:\n                            description: Describes node affinity scheduling rules\n                              for the pod.\n                            properties:\n                              preferredDuringSchedulingIgnoredDuringExecution:\n                                description: |-\n                                  The scheduler will prefer to schedule pods to nodes that satisfy\n                                  the affinity expressions specified by this field, but it may choose\n                                  a node that violates one or more of the expressions. The node that is\n                                  most preferred is the one with the greatest sum of weights, i.e.\n                                  for each node that meets all of the scheduling requirements (resource\n                                  request, requiredDuringScheduling affinity expressions, etc.),\n                                  compute a sum by iterating through the elements of this field and adding\n                                  \"weight\" to the sum if the node matches the corresponding matchExpressions; the\n                                  node(s) with the highest sum are the most preferred.\n                                items:\n                                  description: |-\n                                    An empty preferred scheduling term matches all objects with implicit weight 0\n                                    (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).\n                                  properties:\n                                    preference:\n                                      description: A node selector term, associated\n                                        with the corresponding weight.\n                                      properties:\n                                        matchExpressions:\n                                          description: A list of node selector requirements\n                                            by node's labels.\n                                          items:\n                                            description: |-\n                                              A node selector requirement is a selector that contains values, a key, and an operator\n                                              that relates the key and values.\n                                            properties:\n                                              key:\n                                                description: The label key that the\n                                                  selector applies to.\n                                                type: string\n                                              operator:\n                                                description: |-\n                                                  Represents a key's relationship to a set of values.\n                                                  Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.\n                                                type: string\n                                              values:\n                                                description: |-\n                                                  An array of string values. If the operator is In or NotIn,\n                                                  the values array must be non-empty. If the operator is Exists or DoesNotExist,\n                                                  the values array must be empty. If the operator is Gt or Lt, the values\n                                                  array must have a single element, which will be interpreted as an integer.\n                                                  This array is replaced during a strategic merge patch.\n                                                items:\n                                                  type: string\n                                                type: array\n                                                x-kubernetes-list-type: atomic\n                                            required:\n                                            - key\n                                            - operator\n                                            type: object\n                                          type: array\n                                          x-kubernetes-list-type: atomic\n                                        matchFields:\n                                          description: A list of node selector requirements\n                                            by node's fields.\n                                          items:\n                                            description: |-\n                                              A node selector requirement is a selector that contains values, a key, and an operator\n                                              that relates the key and values.\n                                            properties:\n                                              key:\n                                                description: The label key that the\n                                                  selector applies to.\n                                                type: string\n                                              operator:\n                                                description: |-\n                                                  Represents a key's relationship to a set of values.\n                                                  Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.\n                                                type: string\n                                              values:\n                                                description: |-\n                                                  An array of string values. If the operator is In or NotIn,\n                                                  the values array must be non-empty. If the operator is Exists or DoesNotExist,\n                                                  the values array must be empty. If the operator is Gt or Lt, the values\n                                                  array must have a single element, which will be interpreted as an integer.\n                                                  This array is replaced during a strategic merge patch.\n                                                items:\n                                                  type: string\n                                                type: array\n                                                x-kubernetes-list-type: atomic\n                                            required:\n                                            - key\n                                            - operator\n                                            type: object\n                                          type: array\n                                          x-kubernetes-list-type: atomic\n                                      type: object\n                                      x-kubernetes-map-type: atomic\n                                    weight:\n                                      description: Weight associated with matching\n                                        the corresponding nodeSelectorTerm, in the\n                                        range 1-100.\n                                      format: int32\n                                      type: integer\n                                  required:\n                                  - preference\n                                  - weight\n                                  type: object\n                                type: array\n                                x-kubernetes-list-type: atomic\n                              requiredDuringSchedulingIgnoredDuringExecution:\n                                description: |-\n                                  If the affinity requirements specified by this field are not met at\n                                  scheduling time, the pod will not be scheduled onto the node.\n                                  If the affinity requirements specified by this field cease to be met\n                                  at some point during pod execution (e.g. due to an update), the system\n                                  may or may not try to eventually evict the pod from its node.\n                                properties:\n                                  nodeSelectorTerms:\n                                    description: Required. A list of node selector\n                                      terms. The terms are ORed.\n                                    items:\n                                      description: |-\n                                        A null or empty node selector term matches no objects. The requirements of\n                                        them are ANDed.\n                                        The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.\n                                      properties:\n                                        matchExpressions:\n                                          description: A list of node selector requirements\n                                            by node's labels.\n                                          items:\n                                            description: |-\n                                              A node selector requirement is a selector that contains values, a key, and an operator\n                                              that relates the key and values.\n                                            properties:\n                                              key:\n                                                description: The label key that the\n                                                  selector applies to.\n                                                type: string\n                                              operator:\n                                                description: |-\n                                                  Represents a key's relationship to a set of values.\n                                                  Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.\n                                                type: string\n                                              values:\n                                                description: |-\n                                                  An array of string values. If the operator is In or NotIn,\n                                                  the values array must be non-empty. If the operator is Exists or DoesNotExist,\n                                                  the values array must be empty. If the operator is Gt or Lt, the values\n                                                  array must have a single element, which will be interpreted as an integer.\n                                                  This array is replaced during a strategic merge patch.\n                                                items:\n                                                  type: string\n                                                type: array\n                                                x-kubernetes-list-type: atomic\n                                            required:\n                                            - key\n                                            - operator\n                                            type: object\n                                          type: array\n                                          x-kubernetes-list-type: atomic\n                                        matchFields:\n                                          description: A list of node selector requirements\n                                            by node's fields.\n                                          items:\n                                            description: |-\n                                              A node selector requirement is a selector that contains values, a key, and an operator\n                                              that relates the key and values.\n                                            properties:\n                                              key:\n                                                description: The label key that the\n                                                  selector applies to.\n                                                type: string\n                                              operator:\n                                                description: |-\n                                                  Represents a key's relationship to a set of values.\n                                                  Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.\n                                                type: string\n                                              values:\n                                                description: |-\n                                                  An array of string values. If the operator is In or NotIn,\n                                                  the values array must be non-empty. If the operator is Exists or DoesNotExist,\n                                                  the values array must be empty. If the operator is Gt or Lt, the values\n                                                  array must have a single element, which will be interpreted as an integer.\n                                                  This array is replaced during a strategic merge patch.\n                                                items:\n                                                  type: string\n                                                type: array\n                                                x-kubernetes-list-type: atomic\n                                            required:\n                                            - key\n                                            - operator\n                                            type: object\n                                          type: array\n                                          x-kubernetes-list-type: atomic\n                                      type: object\n                                      x-kubernetes-map-type: atomic\n                                    type: array\n                                    x-kubernetes-list-type: atomic\n                                required:\n                                - nodeSelectorTerms\n                                type: object\n                                x-kubernetes-map-type: atomic\n                            type: object\n                          podAffinity:\n                            description: Describes pod affinity scheduling rules (e.g.\n                              co-locate this pod in the same node, zone, etc. as some\n                              other pod(s)).\n                            properties:\n                              preferredDuringSchedulingIgnoredDuringExecution:\n                                description: |-\n                                  The scheduler will prefer to schedule pods to nodes that satisfy\n                                  the affinity expressions specified by this field, but it may choose\n                                  a node that violates one or more of the expressions. The node that is\n                                  most preferred is the one with the greatest sum of weights, i.e.\n                                  for each node that meets all of the scheduling requirements (resource\n                                  request, requiredDuringScheduling affinity expressions, etc.),\n                                  compute a sum by iterating through the elements of this field and adding\n                                  \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the\n                                  node(s) with the highest sum are the most preferred.\n                                items:\n                                  description: The weights of all of the matched WeightedPodAffinityTerm\n                                    fields are added per-node to find the most preferred\n                                    node(s)\n                                  properties:\n                                    podAffinityTerm:\n                                      description: Required. A pod affinity term,\n                                        associated with the corresponding weight.\n                                      properties:\n                                        labelSelector:\n                                          description: |-\n                                            A label query over a set of resources, in this case pods.\n                                            If it's null, this PodAffinityTerm matches with no Pods.\n                                          properties:\n                                            matchExpressions:\n                                              description: matchExpressions is a list\n                                                of label selector requirements. The\n                                                requirements are ANDed.\n                                              items:\n                                                description: |-\n                                                  A label selector requirement is a selector that contains values, a key, and an operator that\n                                                  relates the key and values.\n                                                properties:\n                                                  key:\n                                                    description: key is the label\n                                                      key that the selector applies\n                                                      to.\n                                                    type: string\n                                                  operator:\n                                                    description: |-\n                                                      operator represents a key's relationship to a set of values.\n                                                      Valid operators are In, NotIn, Exists and DoesNotExist.\n                                                    type: string\n                                                  values:\n                                                    description: |-\n                                                      values is an array of string values. If the operator is In or NotIn,\n                                                      the values array must be non-empty. If the operator is Exists or DoesNotExist,\n                                                      the values array must be empty. This array is replaced during a strategic\n                                                      merge patch.\n                                                    items:\n                                                      type: string\n                                                    type: array\n                                                    x-kubernetes-list-type: atomic\n                                                required:\n                                                - key\n                                                - operator\n                                                type: object\n                                              type: array\n                                              x-kubernetes-list-type: atomic\n                                            matchLabels:\n                                              additionalProperties:\n                                                type: string\n                                              description: |-\n                                                matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\n                                                map is equivalent to an element of matchExpressions, whose key field is \"key\", the\n                                                operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.\n                                              type: object\n                                          type: object\n                                          x-kubernetes-map-type: atomic\n                                        matchLabelKeys:\n                                          description: |-\n                                            MatchLabelKeys is a set of pod label keys to select which pods will\n                                            be taken into consideration. The keys are used to lookup values from the\n                                            incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`\n                                            to select the group of existing pods which pods will be taken into consideration\n                                            for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\n                                            pod labels will be ignored. The default value is empty.\n                                            The same key is forbidden to exist in both matchLabelKeys and labelSelector.\n                                            Also, matchLabelKeys cannot be set when labelSelector isn't set.\n                                          items:\n                                            type: string\n                                          type: array\n                                          x-kubernetes-list-type: atomic\n                                        mismatchLabelKeys:\n                                          description: |-\n                                            MismatchLabelKeys is a set of pod label keys to select which pods will\n                                            be taken into consideration. The keys are used to lookup values from the\n                                            incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`\n                                            to select the group of existing pods which pods will be taken into consideration\n                                            for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\n                                            pod labels will be ignored. The default value is empty.\n                                            The same key is forbidden to exist in both mismatchLabelKeys and labelSelector.\n                                            Also, mismatchLabelKeys cannot be set when labelSelector isn't set.\n                                          items:\n                                            type: string\n                                          type: array\n                                          x-kubernetes-list-type: atomic\n                                        namespaceSelector:\n                                          description: |-\n                                            A label query over the set of namespaces that the term applies to.\n                                            The term is applied to the union of the namespaces selected by this field\n                                            and the ones listed in the namespaces field.\n                                            null selector and null or empty namespaces list means \"this pod's namespace\".\n                                            An empty selector ({}) matches all namespaces.\n                                          properties:\n                                            matchExpressions:\n                                              description: matchExpressions is a list\n                                                of label selector requirements. The\n                                                requirements are ANDed.\n                                              items:\n                                                description: |-\n                                                  A label selector requirement is a selector that contains values, a key, and an operator that\n                                                  relates the key and values.\n                                                properties:\n                                                  key:\n                                                    description: key is the label\n                                                      key that the selector applies\n                                                      to.\n                                                    type: string\n                                                  operator:\n                                                    description: |-\n                                                      operator represents a key's relationship to a set of values.\n                                                      Valid operators are In, NotIn, Exists and DoesNotExist.\n                                                    type: string\n                                                  values:\n                                                    description: |-\n                                                      values is an array of string values. If the operator is In or NotIn,\n                                                      the values array must be non-empty. If the operator is Exists or DoesNotExist,\n                                                      the values array must be empty. This array is replaced during a strategic\n                                                      merge patch.\n                                                    items:\n                                                      type: string\n                                                    type: array\n                                                    x-kubernetes-list-type: atomic\n                                                required:\n                                                - key\n                                                - operator\n                                                type: object\n                                              type: array\n                                              x-kubernetes-list-type: atomic\n                                            matchLabels:\n                                              additionalProperties:\n                                                type: string\n                                              description: |-\n                                                matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\n                                                map is equivalent to an element of matchExpressions, whose key field is \"key\", the\n                                                operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.\n                                              type: object\n                                          type: object\n                                          x-kubernetes-map-type: atomic\n                                        namespaces:\n                                          description: |-\n                                            namespaces specifies a static list of namespace names that the term applies to.\n                                            The term is applied to the union of the namespaces listed in this field\n                                            and the ones selected by namespaceSelector.\n                                            null or empty namespaces list and null namespaceSelector means \"this pod's namespace\".\n                                          items:\n                                            type: string\n                                          type: array\n                                          x-kubernetes-list-type: atomic\n                                        topologyKey:\n                                          description: |-\n                                            This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching\n                                            the labelSelector in the specified namespaces, where co-located is defined as running on a node\n                                            whose value of the label with key topologyKey matches that of any node on which any of the\n                                            selected pods is running.\n                                            Empty topologyKey is not allowed.\n                                          type: string\n                                      required:\n                                      - topologyKey\n                                      type: object\n                                    weight:\n                                      description: |-\n                                        weight associated with matching the corresponding podAffinityTerm,\n                                        in the range 1-100.\n                                      format: int32\n                                      type: integer\n                                  required:\n                                  - podAffinityTerm\n                                  - weight\n                                  type: object\n                                type: array\n                                x-kubernetes-list-type: atomic\n                              requiredDuringSchedulingIgnoredDuringExecution:\n                                description: |-\n                                  If the affinity requirements specified by this field are not met at\n                                  scheduling time, the pod will not be scheduled onto the node.\n                                  If the affinity requirements specified by this field cease to be met\n                                  at some point during pod execution (e.g. due to a pod label update), the\n                                  system may or may not try to eventually evict the pod from its node.\n                                  When there are multiple elements, the lists of nodes corresponding to each\n                                  podAffinityTerm are intersected, i.e. all terms must be satisfied.\n                                items:\n                                  description: |-\n                                    Defines a set of pods (namely those matching the labelSelector\n                                    relative to the given namespace(s)) that this pod should be\n                                    co-located (affinity) or not co-located (anti-affinity) with,\n                                    where co-located is defined as running on a node whose value of\n                                    the label with key <topologyKey> matches that of any node on which\n                                    a pod of the set of pods is running\n                                  properties:\n                                    labelSelector:\n                                      description: |-\n                                        A label query over a set of resources, in this case pods.\n                                        If it's null, this PodAffinityTerm matches with no Pods.\n                                      properties:\n                                        matchExpressions:\n                                          description: matchExpressions is a list\n                                            of label selector requirements. The requirements\n                                            are ANDed.\n                                          items:\n                                            description: |-\n                                              A label selector requirement is a selector that contains values, a key, and an operator that\n                                              relates the key and values.\n                                            properties:\n                                              key:\n                                                description: key is the label key\n                                                  that the selector applies to.\n                                                type: string\n                                              operator:\n                                                description: |-\n                                                  operator represents a key's relationship to a set of values.\n                                                  Valid operators are In, NotIn, Exists and DoesNotExist.\n                                                type: string\n                                              values:\n                                                description: |-\n                                                  values is an array of string values. If the operator is In or NotIn,\n                                                  the values array must be non-empty. If the operator is Exists or DoesNotExist,\n                                                  the values array must be empty. This array is replaced during a strategic\n                                                  merge patch.\n                                                items:\n                                                  type: string\n                                                type: array\n                                                x-kubernetes-list-type: atomic\n                                            required:\n                                            - key\n                                            - operator\n                                            type: object\n                                          type: array\n                                          x-kubernetes-list-type: atomic\n                                        matchLabels:\n                                          additionalProperties:\n                                            type: string\n                                          description: |-\n                                            matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\n                                            map is equivalent to an element of matchExpressions, whose key field is \"key\", the\n                                            operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.\n                                          type: object\n                                      type: object\n                                      x-kubernetes-map-type: atomic\n                                    matchLabelKeys:\n                                      description: |-\n                                        MatchLabelKeys is a set of pod label keys to select which pods will\n                                        be taken into consideration. The keys are used to lookup values from the\n                                        incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`\n                                        to select the group of existing pods which pods will be taken into consideration\n                                        for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\n                                        pod labels will be ignored. The default value is empty.\n                                        The same key is forbidden to exist in both matchLabelKeys and labelSelector.\n                                        Also, matchLabelKeys cannot be set when labelSelector isn't set.\n                                      items:\n                                        type: string\n                                      type: array\n                                      x-kubernetes-list-type: atomic\n                                    mismatchLabelKeys:\n                                      description: |-\n                                        MismatchLabelKeys is a set of pod label keys to select which pods will\n                                        be taken into consideration. The keys are used to lookup values from the\n                                        incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`\n                                        to select the group of existing pods which pods will be taken into consideration\n                                        for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\n                                        pod labels will be ignored. The default value is empty.\n                                        The same key is forbidden to exist in both mismatchLabelKeys and labelSelector.\n                                        Also, mismatchLabelKeys cannot be set when labelSelector isn't set.\n                                      items:\n                                        type: string\n                                      type: array\n                                      x-kubernetes-list-type: atomic\n                                    namespaceSelector:\n                                      description: |-\n                                        A label query over the set of namespaces that the term applies to.\n                                        The term is applied to the union of the namespaces selected by this field\n                                        and the ones listed in the namespaces field.\n                                        null selector and null or empty namespaces list means \"this pod's namespace\".\n                                        An empty selector ({}) matches all namespaces.\n                                      properties:\n                                        matchExpressions:\n                                          description: matchExpressions is a list\n                                            of label selector requirements. The requirements\n                                            are ANDed.\n                                          items:\n                                            description: |-\n                                              A label selector requirement is a selector that contains values, a key, and an operator that\n                                              relates the key and values.\n                                            properties:\n                                              key:\n                                                description: key is the label key\n                                                  that the selector applies to.\n                                                type: string\n                                              operator:\n                                                description: |-\n                                                  operator represents a key's relationship to a set of values.\n                                                  Valid operators are In, NotIn, Exists and DoesNotExist.\n                                                type: string\n                                              values:\n                                                description: |-\n                                                  values is an array of string values. If the operator is In or NotIn,\n                                                  the values array must be non-empty. If the operator is Exists or DoesNotExist,\n                                                  the values array must be empty. This array is replaced during a strategic\n                                                  merge patch.\n                                                items:\n                                                  type: string\n                                                type: array\n                                                x-kubernetes-list-type: atomic\n                                            required:\n                                            - key\n                                            - operator\n                                            type: object\n                                          type: array\n                                          x-kubernetes-list-type: atomic\n                                        matchLabels:\n                                          additionalProperties:\n                                            type: string\n                                          description: |-\n                                            matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\n                                            map is equivalent to an element of matchExpressions, whose key field is \"key\", the\n                                            operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.\n                                          type: object\n                                      type: object\n                                      x-kubernetes-map-type: atomic\n                                    namespaces:\n                                      description: |-\n                                        namespaces specifies a static list of namespace names that the term applies to.\n                                        The term is applied to the union of the namespaces listed in this field\n                                        and the ones selected by namespaceSelector.\n                                        null or empty namespaces list and null namespaceSelector means \"this pod's namespace\".\n                                      items:\n                                        type: string\n                                      type: array\n                                      x-kubernetes-list-type: atomic\n                                    topologyKey:\n                                      description: |-\n                                        This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching\n                                        the labelSelector in the specified namespaces, where co-located is defined as running on a node\n                                        whose value of the label with key topologyKey matches that of any node on which any of the\n                                        selected pods is running.\n                                        Empty topologyKey is not allowed.\n                                      type: string\n                                  required:\n                                  - topologyKey\n                                  type: object\n                                type: array\n                                x-kubernetes-list-type: atomic\n                            type: object\n                          podAntiAffinity:\n                            description: Describes pod anti-affinity scheduling rules\n                              (e.g. avoid putting this pod in the same node, zone,\n                              etc. as some other pod(s)).\n                            properties:\n                              preferredDuringSchedulingIgnoredDuringExecution:\n                                description: |-\n                                  The scheduler will prefer to schedule pods to nodes that satisfy\n                                  the anti-affinity expressions specified by this field, but it may choose\n                                  a node that violates one or more of the expressions. The node that is\n                                  most preferred is the one with the greatest sum of weights, i.e.\n                                  for each node that meets all of the scheduling requirements (resource\n                                  request, requiredDuringScheduling anti-affinity expressions, etc.),\n                                  compute a sum by iterating through the elements of this field and subtracting\n                                  \"weight\" from the sum if the node has pods which matches the corresponding podAffinityTerm; the\n                                  node(s) with the highest sum are the most preferred.\n                                items:\n                                  description: The weights of all of the matched WeightedPodAffinityTerm\n                                    fields are added per-node to find the most preferred\n                                    node(s)\n                                  properties:\n                                    podAffinityTerm:\n                                      description: Required. A pod affinity term,\n                                        associated with the corresponding weight.\n                                      properties:\n                                        labelSelector:\n                                          description: |-\n                                            A label query over a set of resources, in this case pods.\n                                            If it's null, this PodAffinityTerm matches with no Pods.\n                                          properties:\n                                            matchExpressions:\n                                              description: matchExpressions is a list\n                                                of label selector requirements. The\n                                                requirements are ANDed.\n                                              items:\n                                                description: |-\n                                                  A label selector requirement is a selector that contains values, a key, and an operator that\n                                                  relates the key and values.\n                                                properties:\n                                                  key:\n                                                    description: key is the label\n                                                      key that the selector applies\n                                                      to.\n                                                    type: string\n                                                  operator:\n                                                    description: |-\n                                                      operator represents a key's relationship to a set of values.\n                                                      Valid operators are In, NotIn, Exists and DoesNotExist.\n                                                    type: string\n                                                  values:\n                                                    description: |-\n                                                      values is an array of string values. If the operator is In or NotIn,\n                                                      the values array must be non-empty. If the operator is Exists or DoesNotExist,\n                                                      the values array must be empty. This array is replaced during a strategic\n                                                      merge patch.\n                                                    items:\n                                                      type: string\n                                                    type: array\n                                                    x-kubernetes-list-type: atomic\n                                                required:\n                                                - key\n                                                - operator\n                                                type: object\n                                              type: array\n                                              x-kubernetes-list-type: atomic\n                                            matchLabels:\n                                              additionalProperties:\n                                                type: string\n                                              description: |-\n                                                matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\n                                                map is equivalent to an element of matchExpressions, whose key field is \"key\", the\n                                                operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.\n                                              type: object\n                                          type: object\n                                          x-kubernetes-map-type: atomic\n                                        matchLabelKeys:\n                                          description: |-\n                                            MatchLabelKeys is a set of pod label keys to select which pods will\n                                            be taken into consideration. The keys are used to lookup values from the\n                                            incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`\n                                            to select the group of existing pods which pods will be taken into consideration\n                                            for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\n                                            pod labels will be ignored. The default value is empty.\n                                            The same key is forbidden to exist in both matchLabelKeys and labelSelector.\n                                            Also, matchLabelKeys cannot be set when labelSelector isn't set.\n                                          items:\n                                            type: string\n                                          type: array\n                                          x-kubernetes-list-type: atomic\n                                        mismatchLabelKeys:\n                                          description: |-\n                                            MismatchLabelKeys is a set of pod label keys to select which pods will\n                                            be taken into consideration. The keys are used to lookup values from the\n                                            incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`\n                                            to select the group of existing pods which pods will be taken into consideration\n                                            for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\n                                            pod labels will be ignored. The default value is empty.\n                                            The same key is forbidden to exist in both mismatchLabelKeys and labelSelector.\n                                            Also, mismatchLabelKeys cannot be set when labelSelector isn't set.\n                                          items:\n                                            type: string\n                                          type: array\n                                          x-kubernetes-list-type: atomic\n                                        namespaceSelector:\n                                          description: |-\n                                            A label query over the set of namespaces that the term applies to.\n                                            The term is applied to the union of the namespaces selected by this field\n                                            and the ones listed in the namespaces field.\n                                            null selector and null or empty namespaces list means \"this pod's namespace\".\n                                            An empty selector ({}) matches all namespaces.\n                                          properties:\n                                            matchExpressions:\n                                              description: matchExpressions is a list\n                                                of label selector requirements. The\n                                                requirements are ANDed.\n                                              items:\n                                                description: |-\n                                                  A label selector requirement is a selector that contains values, a key, and an operator that\n                                                  relates the key and values.\n                                                properties:\n                                                  key:\n                                                    description: key is the label\n                                                      key that the selector applies\n                                                      to.\n                                                    type: string\n                                                  operator:\n                                                    description: |-\n                                                      operator represents a key's relationship to a set of values.\n                                                      Valid operators are In, NotIn, Exists and DoesNotExist.\n                                                    type: string\n                                                  values:\n                                                    description: |-\n                                                      values is an array of string values. If the operator is In or NotIn,\n                                                      the values array must be non-empty. If the operator is Exists or DoesNotExist,\n                                                      the values array must be empty. This array is replaced during a strategic\n                                                      merge patch.\n                                                    items:\n                                                      type: string\n                                                    type: array\n                                                    x-kubernetes-list-type: atomic\n                                                required:\n                                                - key\n                                                - operator\n                                                type: object\n                                              type: array\n                                              x-kubernetes-list-type: atomic\n                                            matchLabels:\n                                              additionalProperties:\n                                                type: string\n                                              description: |-\n                                                matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\n                                                map is equivalent to an element of matchExpressions, whose key field is \"key\", the\n                                                operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.\n                                              type: object\n                                          type: object\n                                          x-kubernetes-map-type: atomic\n                                        namespaces:\n                                          description: |-\n                                            namespaces specifies a static list of namespace names that the term applies to.\n                                            The term is applied to the union of the namespaces listed in this field\n                                            and the ones selected by namespaceSelector.\n                                            null or empty namespaces list and null namespaceSelector means \"this pod's namespace\".\n                                          items:\n                                            type: string\n                                          type: array\n                                          x-kubernetes-list-type: atomic\n                                        topologyKey:\n                                          description: |-\n                                            This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching\n                                            the labelSelector in the specified namespaces, where co-located is defined as running on a node\n                                            whose value of the label with key topologyKey matches that of any node on which any of the\n                                            selected pods is running.\n                                            Empty topologyKey is not allowed.\n                                          type: string\n                                      required:\n                                      - topologyKey\n                                      type: object\n                                    weight:\n                                      description: |-\n                                        weight associated with matching the corresponding podAffinityTerm,\n                                        in the range 1-100.\n                                      format: int32\n                                      type: integer\n                                  required:\n                                  - podAffinityTerm\n                                  - weight\n                                  type: object\n                                type: array\n                                x-kubernetes-list-type: atomic\n                              requiredDuringSchedulingIgnoredDuringExecution:\n                                description: |-\n                                  If the anti-affinity requirements specified by this field are not met at\n                                  scheduling time, the pod will not be scheduled onto the node.\n                                  If the anti-affinity requirements specified by this field cease to be met\n                                  at some point during pod execution (e.g. due to a pod label update), the\n                                  system may or may not try to eventually evict the pod from its node.\n                                  When there are multiple elements, the lists of nodes corresponding to each\n                                  podAffinityTerm are intersected, i.e. all terms must be satisfied.\n                                items:\n                                  description: |-\n                                    Defines a set of pods (namely those matching the labelSelector\n                                    relative to the given namespace(s)) that this pod should be\n                                    co-located (affinity) or not co-located (anti-affinity) with,\n                                    where co-located is defined as running on a node whose value of\n                                    the label with key <topologyKey> matches that of any node on which\n                                    a pod of the set of pods is running\n                                  properties:\n                                    labelSelector:\n                                      description: |-\n                                        A label query over a set of resources, in this case pods.\n                                        If it's null, this PodAffinityTerm matches with no Pods.\n                                      properties:\n                                        matchExpressions:\n                                          description: matchExpressions is a list\n                                            of label selector requirements. The requirements\n                                            are ANDed.\n                                          items:\n                                            description: |-\n                                              A label selector requirement is a selector that contains values, a key, and an operator that\n                                              relates the key and values.\n                                            properties:\n                                              key:\n                                                description: key is the label key\n                                                  that the selector applies to.\n                                                type: string\n                                              operator:\n                                                description: |-\n                                                  operator represents a key's relationship to a set of values.\n                                                  Valid operators are In, NotIn, Exists and DoesNotExist.\n                                                type: string\n                                              values:\n                                                description: |-\n                                                  values is an array of string values. If the operator is In or NotIn,\n                                                  the values array must be non-empty. If the operator is Exists or DoesNotExist,\n                                                  the values array must be empty. This array is replaced during a strategic\n                                                  merge patch.\n                                                items:\n                                                  type: string\n                                                type: array\n                                                x-kubernetes-list-type: atomic\n                                            required:\n                                            - key\n                                            - operator\n                                            type: object\n                                          type: array\n                                          x-kubernetes-list-type: atomic\n                                        matchLabels:\n                                          additionalProperties:\n                                            type: string\n                                          description: |-\n                                            matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\n                                            map is equivalent to an element of matchExpressions, whose key field is \"key\", the\n                                            operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.\n                                          type: object\n                                      type: object\n                                      x-kubernetes-map-type: atomic\n                                    matchLabelKeys:\n                                      description: |-\n                                        MatchLabelKeys is a set of pod label keys to select which pods will\n                                        be taken into consideration. The keys are used to lookup values from the\n                                        incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`\n                                        to select the group of existing pods which pods will be taken into consideration\n                                        for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\n                                        pod labels will be ignored. The default value is empty.\n                                        The same key is forbidden to exist in both matchLabelKeys and labelSelector.\n                                        Also, matchLabelKeys cannot be set when labelSelector isn't set.\n                                      items:\n                                        type: string\n                                      type: array\n                                      x-kubernetes-list-type: atomic\n                                    mismatchLabelKeys:\n                                      description: |-\n                                        MismatchLabelKeys is a set of pod label keys to select which pods will\n                                        be taken into consideration. The keys are used to lookup values from the\n                                        incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`\n                                        to select the group of existing pods which pods will be taken into consideration\n                                        for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\n                                        pod labels will be ignored. The default value is empty.\n                                        The same key is forbidden to exist in both mismatchLabelKeys and labelSelector.\n                                        Also, mismatchLabelKeys cannot be set when labelSelector isn't set.\n                                      items:\n                                        type: string\n                                      type: array\n                                      x-kubernetes-list-type: atomic\n                                    namespaceSelector:\n                                      description: |-\n                                        A label query over the set of namespaces that the term applies to.\n                                        The term is applied to the union of the namespaces selected by this field\n                                        and the ones listed in the namespaces field.\n                                        null selector and null or empty namespaces list means \"this pod's namespace\".\n                                        An empty selector ({}) matches all namespaces.\n                                      properties:\n                                        matchExpressions:\n                                          description: matchExpressions is a list\n                                            of label selector requirements. The requirements\n                                            are ANDed.\n                                          items:\n                                            description: |-\n                                              A label selector requirement is a selector that contains values, a key, and an operator that\n                                              relates the key and values.\n                                            properties:\n                                              key:\n                                                description: key is the label key\n                                                  that the selector applies to.\n                                                type: string\n                                              operator:\n                                                description: |-\n                                                  operator represents a key's relationship to a set of values.\n                                                  Valid operators are In, NotIn, Exists and DoesNotExist.\n                                                type: string\n                                              values:\n                                                description: |-\n                                                  values is an array of string values. If the operator is In or NotIn,\n                                                  the values array must be non-empty. If the operator is Exists or DoesNotExist,\n                                                  the values array must be empty. This array is replaced during a strategic\n                                                  merge patch.\n                                                items:\n                                                  type: string\n                                                type: array\n                                                x-kubernetes-list-type: atomic\n                                            required:\n                                            - key\n                                            - operator\n                                            type: object\n                                          type: array\n                                          x-kubernetes-list-type: atomic\n                                        matchLabels:\n                                          additionalProperties:\n                                            type: string\n                                          description: |-\n                                            matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\n                                            map is equivalent to an element of matchExpressions, whose key field is \"key\", the\n                                            operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.\n                                          type: object\n                                      type: object\n                                      x-kubernetes-map-type: atomic\n                                    namespaces:\n                                      description: |-\n                                        namespaces specifies a static list of namespace names that the term applies to.\n                                        The term is applied to the union of the namespaces listed in this field\n                                        and the ones selected by namespaceSelector.\n                                        null or empty namespaces list and null namespaceSelector means \"this pod's namespace\".\n                                      items:\n                                        type: string\n                                      type: array\n                                      x-kubernetes-list-type: atomic\n                                    topologyKey:\n                                      description: |-\n                                        This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching\n                                        the labelSelector in the specified namespaces, where co-located is defined as running on a node\n                                        whose value of the label with key topologyKey matches that of any node on which any of the\n                                        selected pods is running.\n                                        Empty topologyKey is not allowed.\n                                      type: string\n                                  required:\n                                  - topologyKey\n                                  type: object\n                                type: array\n                                x-kubernetes-list-type: atomic\n                            type: object\n                        type: object\n                      automountServiceAccountToken:\n                        description: AutomountServiceAccountToken indicates whether\n                          a service account token should be automatically mounted.\n                        type: boolean\n                      containers:\n                        description: |-\n                          List of containers belonging to the pod.\n                          Containers cannot currently be added or removed.\n                          There must be at least one container in a Pod.\n                          Cannot be updated.\n                        items:\n                          description: A single application container that you want\n                            to run within a pod.\n                          properties:\n                            args:\n                              description: |-\n                                Arguments to the entrypoint.\n                                The container image's CMD is used if this is not provided.\n                                Variable references $(VAR_NAME) are expanded using the container's environment. If a variable\n                                cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced\n                                to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will\n                                produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless\n                                of whether the variable exists or not. Cannot be updated.\n                                More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell\n                              items:\n                                type: string\n                              type: array\n                              x-kubernetes-list-type: atomic\n                            command:\n                              description: |-\n                                Entrypoint array. Not executed within a shell.\n                                The container image's ENTRYPOINT is used if this is not provided.\n                                Variable references $(VAR_NAME) are expanded using the container's environment. If a variable\n                                cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced\n                                to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will\n                                produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless\n                                of whether the variable exists or not. Cannot be updated.\n                                More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell\n                              items:\n                                type: string\n                              type: array\n                              x-kubernetes-list-type: atomic\n                            env:\n                              description: |-\n                                List of environment variables to set in the container.\n                                Cannot be updated.\n                              items:\n                                description: EnvVar represents an environment variable\n                                  present in a Container.\n                                properties:\n                                  name:\n                                    description: |-\n                                      Name of the environment variable.\n                                      May consist of any printable ASCII characters except '='.\n                                    type: string\n                                  value:\n                                    description: |-\n                                      Variable references $(VAR_NAME) are expanded\n                                      using the previously defined environment variables in the container and\n                                      any service environment variables. If a variable cannot be resolved,\n                                      the reference in the input string will be unchanged. Double $$ are reduced\n                                      to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.\n                                      \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\".\n                                      Escaped references will never be expanded, regardless of whether the variable\n                                      exists or not.\n                                      Defaults to \"\".\n                                    type: string\n                                  valueFrom:\n                                    description: Source for the environment variable's\n                                      value. Cannot be used if value is not empty.\n                                    properties:\n                                      configMapKeyRef:\n                                        description: Selects a key of a ConfigMap.\n                                        properties:\n                                          key:\n                                            description: The key to select.\n                                            type: string\n                                          name:\n                                            default: \"\"\n                                            description: |-\n                                              Name of the referent.\n                                              This field is effectively required, but due to backwards compatibility is\n                                              allowed to be empty. Instances of this type with an empty value here are\n                                              almost certainly wrong.\n                                              More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\n                                            type: string\n                                          optional:\n                                            description: Specify whether the ConfigMap\n                                              or its key must be defined\n                                            type: boolean\n                                        required:\n                                        - key\n                                        type: object\n                                        x-kubernetes-map-type: atomic\n                                      fieldRef:\n                                        description: |-\n                                          Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`,\n                                          spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.\n                                        properties:\n                                          apiVersion:\n                                            description: Version of the schema the\n                                              FieldPath is written in terms of, defaults\n                                              to \"v1\".\n                                            type: string\n                                          fieldPath:\n                                            description: Path of the field to select\n                                              in the specified API version.\n                                            type: string\n                                        required:\n                                        - fieldPath\n                                        type: object\n                                        x-kubernetes-map-type: atomic\n                                      fileKeyRef:\n                                        description: |-\n                                          FileKeyRef selects a key of the env file.\n                                          Requires the EnvFiles feature gate to be enabled.\n                                        properties:\n                                          key:\n                                            description: |-\n                                              The key within the env file. An invalid key will prevent the pod from starting.\n                                              The keys defined within a source may consist of any printable ASCII characters except '='.\n                                              During Alpha stage of the EnvFiles feature gate, the key size is limited to 128 characters.\n                                            type: string\n                                          optional:\n                                            default: false\n                                            description: |-\n                                              Specify whether the file or its key must be defined. If the file or key\n                                              does not exist, then the env var is not published.\n                                              If optional is set to true and the specified key does not exist,\n                                              the environment variable will not be set in the Pod's containers.\n\n                                              If optional is set to false and the specified key does not exist,\n                                              an error will be returned during Pod creation.\n                                            type: boolean\n                                          path:\n                                            description: |-\n                                              The path within the volume from which to select the file.\n                                              Must be relative and may not contain the '..' path or start with '..'.\n                                            type: string\n                                          volumeName:\n                                            description: The name of the volume mount\n                                              containing the env file.\n                                            type: string\n                                        required:\n                                        - key\n                                        - path\n                                        - volumeName\n                                        type: object\n                                        x-kubernetes-map-type: atomic\n                                      resourceFieldRef:\n                                        description: |-\n                                          Selects a resource of the container: only resources limits and requests\n                                          (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.\n                                        properties:\n                                          containerName:\n                                            description: 'Container name: required\n                                              for volumes, optional for env vars'\n                                            type: string\n                                          divisor:\n                                            anyOf:\n                                            - type: integer\n                                            - type: string\n                                            description: Specifies the output format\n                                              of the exposed resources, defaults to\n                                              \"1\"\n                                            pattern: ^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$\n                                            x-kubernetes-int-or-string: true\n                                          resource:\n                                            description: 'Required: resource to select'\n                                            type: string\n                                        required:\n                                        - resource\n                                        type: object\n                                        x-kubernetes-map-type: atomic\n                                      secretKeyRef:\n                                        description: Selects a key of a secret in\n                                          the pod's namespace\n                                        properties:\n                                          key:\n                                            description: The key of the secret to\n                                              select from.  Must be a valid secret\n                                              key.\n                                            type: string\n                                          name:\n                                            default: \"\"\n                                            description: |-\n                                              Name of the referent.\n                                              This field is effectively required, but due to backwards compatibility is\n                                              allowed to be empty. Instances of this type with an empty value here are\n                                              almost certainly wrong.\n                                              More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\n                                            type: string\n                                          optional:\n                                            description: Specify whether the Secret\n                                              or its key must be defined\n                                            type: boolean\n                                        required:\n                                        - key\n                                        type: object\n                                        x-kubernetes-map-type: atomic\n                                    type: object\n                                required:\n                                - name\n                                type: object\n                              type: array\n                              x-kubernetes-list-map-keys:\n                              - name\n                              x-kubernetes-list-type: map\n                            envFrom:\n                              description: |-\n                                List of sources to populate environment variables in the container.\n                                The keys defined within a source may consist of any printable ASCII characters except '='.\n                                When a key exists in multiple\n                                sources, the value associated with the last source will take precedence.\n                                Values defined by an Env with a duplicate key will take precedence.\n                                Cannot be updated.\n                              items:\n                                description: EnvFromSource represents the source of\n                                  a set of ConfigMaps or Secrets\n                                properties:\n                                  configMapRef:\n                                    description: The ConfigMap to select from\n                                    properties:\n                                      name:\n                                        default: \"\"\n                                        description: |-\n                                          Name of the referent.\n                                          This field is effectively required, but due to backwards compatibility is\n                                          allowed to be empty. Instances of this type with an empty value here are\n                                          almost certainly wrong.\n                                          More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\n                                        type: string\n                                      optional:\n                                        description: Specify whether the ConfigMap\n                                          must be defined\n                                        type: boolean\n                                    type: object\n                                    x-kubernetes-map-type: atomic\n                                  prefix:\n                                    description: |-\n                                      Optional text to prepend to the name of each environment variable.\n                                      May consist of any printable ASCII characters except '='.\n                                    type: string\n                                  secretRef:\n                                    description: The Secret to select from\n                                    properties:\n                                      name:\n                                        default: \"\"\n                                        description: |-\n                                          Name of the referent.\n                                          This field is effectively required, but due to backwards compatibility is\n                                          allowed to be empty. Instances of this type with an empty value here are\n                                          almost certainly wrong.\n                                          More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\n                                        type: string\n                                      optional:\n                                        description: Specify whether the Secret must\n                                          be defined\n                                        type: boolean\n                                    type: object\n                                    x-kubernetes-map-type: atomic\n                                type: object\n                              type: array\n                              x-kubernetes-list-type: atomic\n                            image:\n                              description: |-\n                                Container image name.\n                                More info: https://kubernetes.io/docs/concepts/containers/images\n                                This field is optional to allow higher level config management to default or override\n                                container images in workload controllers like Deployments and StatefulSets.\n                              type: string\n                            imagePullPolicy:\n                              description: |-\n                                Image pull policy.\n                                One of Always, Never, IfNotPresent.\n                                Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.\n                                Cannot be updated.\n                                More info: https://kubernetes.io/docs/concepts/containers/images#updating-images\n                              type: string\n                            lifecycle:\n                              description: |-\n                                Actions that the management system should take in response to container lifecycle events.\n                                Cannot be updated.\n                              properties:\n                                postStart:\n                                  description: |-\n                                    PostStart is called immediately after a container is created. If the handler fails,\n                                    the container is terminated and restarted according to its restart policy.\n                                    Other management of the container blocks until the hook completes.\n                                    More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks\n                                  properties:\n                                    exec:\n                                      description: Exec specifies a command to execute\n                                        in the container.\n                                      properties:\n                                        command:\n                                          description: |-\n                                            Command is the command line to execute inside the container, the working directory for the\n                                            command  is root ('/') in the container's filesystem. The command is simply exec'd, it is\n                                            not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\n                                            a shell, you need to explicitly call out to that shell.\n                                            Exit status of 0 is treated as live/healthy and non-zero is unhealthy.\n                                          items:\n                                            type: string\n                                          type: array\n                                          x-kubernetes-list-type: atomic\n                                      type: object\n                                    httpGet:\n                                      description: HTTPGet specifies an HTTP GET request\n                                        to perform.\n                                      properties:\n                                        host:\n                                          description: |-\n                                            Host name to connect to, defaults to the pod IP. You probably want to set\n                                            \"Host\" in httpHeaders instead.\n                                          type: string\n                                        httpHeaders:\n                                          description: Custom headers to set in the\n                                            request. HTTP allows repeated headers.\n                                          items:\n                                            description: HTTPHeader describes a custom\n                                              header to be used in HTTP probes\n                                            properties:\n                                              name:\n                                                description: |-\n                                                  The header field name.\n                                                  This will be canonicalized upon output, so case-variant names will be understood as the same header.\n                                                type: string\n                                              value:\n                                                description: The header field value\n                                                type: string\n                                            required:\n                                            - name\n                                            - value\n                                            type: object\n                                          type: array\n                                          x-kubernetes-list-type: atomic\n                                        path:\n                                          description: Path to access on the HTTP\n                                            server.\n                                          type: string\n                                        port:\n                                          anyOf:\n                                          - type: integer\n                                          - type: string\n                                          description: |-\n                                            Name or number of the port to access on the container.\n                                            Number must be in the range 1 to 65535.\n                                            Name must be an IANA_SVC_NAME.\n                                          x-kubernetes-int-or-string: true\n                                        scheme:\n                                          description: |-\n                                            Scheme to use for connecting to the host.\n                                            Defaults to HTTP.\n                                          type: string\n                                      required:\n                                      - port\n                                      type: object\n                                    sleep:\n                                      description: Sleep represents a duration that\n                                        the container should sleep.\n                                      properties:\n                                        seconds:\n                                          description: Seconds is the number of seconds\n                                            to sleep.\n                                          format: int64\n                                          type: integer\n                                      required:\n                                      - seconds\n                                      type: object\n                                    tcpSocket:\n                                      description: |-\n                                        Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept\n                                        for backward compatibility. There is no validation of this field and\n                                        lifecycle hooks will fail at runtime when it is specified.\n                                      properties:\n                                        host:\n                                          description: 'Optional: Host name to connect\n                                            to, defaults to the pod IP.'\n                                          type: string\n                                        port:\n                                          anyOf:\n                                          - type: integer\n                                          - type: string\n                                          description: |-\n                                            Number or name of the port to access on the container.\n                                            Number must be in the range 1 to 65535.\n                                            Name must be an IANA_SVC_NAME.\n                                          x-kubernetes-int-or-string: true\n                                      required:\n                                      - port\n                                      type: object\n                                  type: object\n                                preStop:\n                                  description: |-\n                                    PreStop is called immediately before a container is terminated due to an\n                                    API request or management event such as liveness/startup probe failure,\n                                    preemption, resource contention, etc. The handler is not called if the\n                                    container crashes or exits. The Pod's termination grace period countdown begins before the\n                                    PreStop hook is executed. Regardless of the outcome of the handler, the\n                                    container will eventually terminate within the Pod's termination grace\n                                    period (unless delayed by finalizers). Other management of the container blocks until the hook completes\n                                    or until the termination grace period is reached.\n                                    More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks\n                                  properties:\n                                    exec:\n                                      description: Exec specifies a command to execute\n                                        in the container.\n                                      properties:\n                                        command:\n                                          description: |-\n                                            Command is the command line to execute inside the container, the working directory for the\n                                            command  is root ('/') in the container's filesystem. The command is simply exec'd, it is\n                                            not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\n                                            a shell, you need to explicitly call out to that shell.\n                                            Exit status of 0 is treated as live/healthy and non-zero is unhealthy.\n                                          items:\n                                            type: string\n                                          type: array\n                                          x-kubernetes-list-type: atomic\n                                      type: object\n                                    httpGet:\n                                      description: HTTPGet specifies an HTTP GET request\n                                        to perform.\n                                      properties:\n                                        host:\n                                          description: |-\n                                            Host name to connect to, defaults to the pod IP. You probably want to set\n                                            \"Host\" in httpHeaders instead.\n                                          type: string\n                                        httpHeaders:\n                                          description: Custom headers to set in the\n                                            request. HTTP allows repeated headers.\n                                          items:\n                                            description: HTTPHeader describes a custom\n                                              header to be used in HTTP probes\n                                            properties:\n                                              name:\n                                                description: |-\n                                                  The header field name.\n                                                  This will be canonicalized upon output, so case-variant names will be understood as the same header.\n                                                type: string\n                                              value:\n                                                description: The header field value\n                                                type: string\n                                            required:\n                                            - name\n                                            - value\n                                            type: object\n                                          type: array\n                                          x-kubernetes-list-type: atomic\n                                        path:\n                                          description: Path to access on the HTTP\n                                            server.\n                                          type: string\n                                        port:\n                                          anyOf:\n                                          - type: integer\n                                          - type: string\n                                          description: |-\n                                            Name or number of the port to access on the container.\n                                            Number must be in the range 1 to 65535.\n                                            Name must be an IANA_SVC_NAME.\n                                          x-kubernetes-int-or-string: true\n                                        scheme:\n                                          description: |-\n                                            Scheme to use for connecting to the host.\n                                            Defaults to HTTP.\n                                          type: string\n                                      required:\n                                      - port\n                                      type: object\n                                    sleep:\n                                      description: Sleep represents a duration that\n                                        the container should sleep.\n                                      properties:\n                                        seconds:\n                                          description: Seconds is the number of seconds\n                                            to sleep.\n                                          format: int64\n                                          type: integer\n                                      required:\n                                      - seconds\n                                      type: object\n                                    tcpSocket:\n                                      description: |-\n                                        Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept\n                                        for backward compatibility. There is no validation of this field and\n                                        lifecycle hooks will fail at runtime when it is specified.\n                                      properties:\n                                        host:\n                                          description: 'Optional: Host name to connect\n                                            to, defaults to the pod IP.'\n                                          type: string\n                                        port:\n                                          anyOf:\n                                          - type: integer\n                                          - type: string\n                                          description: |-\n                                            Number or name of the port to access on the container.\n                                            Number must be in the range 1 to 65535.\n                                            Name must be an IANA_SVC_NAME.\n                                          x-kubernetes-int-or-string: true\n                                      required:\n                                      - port\n                                      type: object\n                                  type: object\n                                stopSignal:\n                                  description: |-\n                                    StopSignal defines which signal will be sent to a container when it is being stopped.\n                                    If not specified, the default is defined by the container runtime in use.\n                                    StopSignal can only be set for Pods with a non-empty .spec.os.name\n                                  type: string\n                              type: object\n                            livenessProbe:\n                              description: |-\n                                Periodic probe of container liveness.\n                                Container will be restarted if the probe fails.\n                                Cannot be updated.\n                                More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes\n                              properties:\n                                exec:\n                                  description: Exec specifies a command to execute\n                                    in the container.\n                                  properties:\n                                    command:\n                                      description: |-\n                                        Command is the command line to execute inside the container, the working directory for the\n                                        command  is root ('/') in the container's filesystem. The command is simply exec'd, it is\n                                        not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\n                                        a shell, you need to explicitly call out to that shell.\n                                        Exit status of 0 is treated as live/healthy and non-zero is unhealthy.\n                                      items:\n                                        type: string\n                                      type: array\n                                      x-kubernetes-list-type: atomic\n                                  type: object\n                                failureThreshold:\n                                  description: |-\n                                    Minimum consecutive failures for the probe to be considered failed after having succeeded.\n                                    Defaults to 3. Minimum value is 1.\n                                  format: int32\n                                  type: integer\n                                grpc:\n                                  description: GRPC specifies a GRPC HealthCheckRequest.\n                                  properties:\n                                    port:\n                                      description: Port number of the gRPC service.\n                                        Number must be in the range 1 to 65535.\n                                      format: int32\n                                      type: integer\n                                    service:\n                                      default: \"\"\n                                      description: |-\n                                        Service is the name of the service to place in the gRPC HealthCheckRequest\n                                        (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\n\n                                        If this is not specified, the default behavior is defined by gRPC.\n                                      type: string\n                                  required:\n                                  - port\n                                  type: object\n                                httpGet:\n                                  description: HTTPGet specifies an HTTP GET request\n                                    to perform.\n                                  properties:\n                                    host:\n                                      description: |-\n                                        Host name to connect to, defaults to the pod IP. You probably want to set\n                                        \"Host\" in httpHeaders instead.\n                                      type: string\n                                    httpHeaders:\n                                      description: Custom headers to set in the request.\n                                        HTTP allows repeated headers.\n                                      items:\n                                        description: HTTPHeader describes a custom\n                                          header to be used in HTTP probes\n                                        properties:\n                                          name:\n                                            description: |-\n                                              The header field name.\n                                              This will be canonicalized upon output, so case-variant names will be understood as the same header.\n                                            type: string\n                                          value:\n                                            description: The header field value\n                                            type: string\n                                        required:\n                                        - name\n                                        - value\n                                        type: object\n                                      type: array\n                                      x-kubernetes-list-type: atomic\n                                    path:\n                                      description: Path to access on the HTTP server.\n                                      type: string\n                                    port:\n                                      anyOf:\n                                      - type: integer\n                                      - type: string\n                                      description: |-\n                                        Name or number of the port to access on the container.\n                                        Number must be in the range 1 to 65535.\n                                        Name must be an IANA_SVC_NAME.\n                                      x-kubernetes-int-or-string: true\n                                    scheme:\n                                      description: |-\n                                        Scheme to use for connecting to the host.\n                                        Defaults to HTTP.\n                                      type: string\n                                  required:\n                                  - port\n                                  type: object\n                                initialDelaySeconds:\n                                  description: |-\n                                    Number of seconds after the container has started before liveness probes are initiated.\n                                    More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes\n                                  format: int32\n                                  type: integer\n                                periodSeconds:\n                                  description: |-\n                                    How often (in seconds) to perform the probe.\n                                    Default to 10 seconds. Minimum value is 1.\n                                  format: int32\n                                  type: integer\n                                successThreshold:\n                                  description: |-\n                                    Minimum consecutive successes for the probe to be considered successful after having failed.\n                                    Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.\n                                  format: int32\n                                  type: integer\n                                tcpSocket:\n                                  description: TCPSocket specifies a connection to\n                                    a TCP port.\n                                  properties:\n                                    host:\n                                      description: 'Optional: Host name to connect\n                                        to, defaults to the pod IP.'\n                                      type: string\n                                    port:\n                                      anyOf:\n                                      - type: integer\n                                      - type: string\n                                      description: |-\n                                        Number or name of the port to access on the container.\n                                        Number must be in the range 1 to 65535.\n                                        Name must be an IANA_SVC_NAME.\n                                      x-kubernetes-int-or-string: true\n                                  required:\n                                  - port\n                                  type: object\n                                terminationGracePeriodSeconds:\n                                  description: |-\n                                    Optional duration in seconds the pod needs to terminate gracefully upon probe failure.\n                                    The grace period is the duration in seconds after the processes running in the pod are sent\n                                    a termination signal and the time when the processes are forcibly halted with a kill signal.\n                                    Set this value longer than the expected cleanup time for your process.\n                                    If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this\n                                    value overrides the value provided by the pod spec.\n                                    Value must be non-negative integer. The value zero indicates stop immediately via\n                                    the kill signal (no opportunity to shut down).\n                                    This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.\n                                    Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.\n                                  format: int64\n                                  type: integer\n                                timeoutSeconds:\n                                  description: |-\n                                    Number of seconds after which the probe times out.\n                                    Defaults to 1 second. Minimum value is 1.\n                                    More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes\n                                  format: int32\n                                  type: integer\n                              type: object\n                            name:\n                              description: |-\n                                Name of the container specified as a DNS_LABEL.\n                                Each container in a pod must have a unique name (DNS_LABEL).\n                                Cannot be updated.\n                              type: string\n                            ports:\n                              description: |-\n                                List of ports to expose from the container. Not specifying a port here\n                                DOES NOT prevent that port from being exposed. Any port which is\n                                listening on the default \"0.0.0.0\" address inside a container will be\n                                accessible from the network.\n                                Modifying this array with strategic merge patch may corrupt the data.\n                                For more information See https://github.com/kubernetes/kubernetes/issues/108255.\n                                Cannot be updated.\n                              items:\n                                description: ContainerPort represents a network port\n                                  in a single container.\n                                properties:\n                                  containerPort:\n                                    description: |-\n                                      Number of port to expose on the pod's IP address.\n                                      This must be a valid port number, 0 < x < 65536.\n                                    format: int32\n                                    type: integer\n                                  hostIP:\n                                    description: What host IP to bind the external\n                                      port to.\n                                    type: string\n                                  hostPort:\n                                    description: |-\n                                      Number of port to expose on the host.\n                                      If specified, this must be a valid port number, 0 < x < 65536.\n                                      If HostNetwork is specified, this must match ContainerPort.\n                                      Most containers do not need this.\n                                    format: int32\n                                    type: integer\n                                  name:\n                                    description: |-\n                                      If specified, this must be an IANA_SVC_NAME and unique within the pod. Each\n                                      named port in a pod must have a unique name. Name for the port that can be\n                                      referred to by services.\n                                    type: string\n                                  protocol:\n                                    default: TCP\n                                    description: |-\n                                      Protocol for port. Must be UDP, TCP, or SCTP.\n                                      Defaults to \"TCP\".\n                                    type: string\n                                required:\n                                - containerPort\n                                type: object\n                              type: array\n                              x-kubernetes-list-map-keys:\n                              - containerPort\n                              - protocol\n                              x-kubernetes-list-type: map\n                            readinessProbe:\n                              description: |-\n                                Periodic probe of container service readiness.\n                                Container will be removed from service endpoints if the probe fails.\n                                Cannot be updated.\n                                More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes\n                              properties:\n                                exec:\n                                  description: Exec specifies a command to execute\n                                    in the container.\n                                  properties:\n                                    command:\n                                      description: |-\n                                        Command is the command line to execute inside the container, the working directory for the\n                                        command  is root ('/') in the container's filesystem. The command is simply exec'd, it is\n                                        not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\n                                        a shell, you need to explicitly call out to that shell.\n                                        Exit status of 0 is treated as live/healthy and non-zero is unhealthy.\n                                      items:\n                                        type: string\n                                      type: array\n                                      x-kubernetes-list-type: atomic\n                                  type: object\n                                failureThreshold:\n                                  description: |-\n                                    Minimum consecutive failures for the probe to be considered failed after having succeeded.\n                                    Defaults to 3. Minimum value is 1.\n                                  format: int32\n                                  type: integer\n                                grpc:\n                                  description: GRPC specifies a GRPC HealthCheckRequest.\n                                  properties:\n                                    port:\n                                      description: Port number of the gRPC service.\n                                        Number must be in the range 1 to 65535.\n                                      format: int32\n                                      type: integer\n                                    service:\n                                      default: \"\"\n                                      description: |-\n                                        Service is the name of the service to place in the gRPC HealthCheckRequest\n                                        (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\n\n                                        If this is not specified, the default behavior is defined by gRPC.\n                                      type: string\n                                  required:\n                                  - port\n                                  type: object\n                                httpGet:\n                                  description: HTTPGet specifies an HTTP GET request\n                                    to perform.\n                                  properties:\n                                    host:\n                                      description: |-\n                                        Host name to connect to, defaults to the pod IP. You probably want to set\n                                        \"Host\" in httpHeaders instead.\n                                      type: string\n                                    httpHeaders:\n                                      description: Custom headers to set in the request.\n                                        HTTP allows repeated headers.\n                                      items:\n                                        description: HTTPHeader describes a custom\n                                          header to be used in HTTP probes\n                                        properties:\n                                          name:\n                                            description: |-\n                                              The header field name.\n                                              This will be canonicalized upon output, so case-variant names will be understood as the same header.\n                                            type: string\n                                          value:\n                                            description: The header field value\n                                            type: string\n                                        required:\n                                        - name\n                                        - value\n                                        type: object\n                                      type: array\n                                      x-kubernetes-list-type: atomic\n                                    path:\n                                      description: Path to access on the HTTP server.\n                                      type: string\n                                    port:\n                                      anyOf:\n                                      - type: integer\n                                      - type: string\n                                      description: |-\n                                        Name or number of the port to access on the container.\n                                        Number must be in the range 1 to 65535.\n                                        Name must be an IANA_SVC_NAME.\n                                      x-kubernetes-int-or-string: true\n                                    scheme:\n                                      description: |-\n                                        Scheme to use for connecting to the host.\n                                        Defaults to HTTP.\n                                      type: string\n                                  required:\n                                  - port\n                                  type: object\n                                initialDelaySeconds:\n                                  description: |-\n                                    Number of seconds after the container has started before liveness probes are initiated.\n                                    More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes\n                                  format: int32\n                                  type: integer\n                                periodSeconds:\n                                  description: |-\n                                    How often (in seconds) to perform the probe.\n                                    Default to 10 seconds. Minimum value is 1.\n                                  format: int32\n                                  type: integer\n                                successThreshold:\n                                  description: |-\n                                    Minimum consecutive successes for the probe to be considered successful after having failed.\n                                    Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.\n                                  format: int32\n                                  type: integer\n                                tcpSocket:\n                                  description: TCPSocket specifies a connection to\n                                    a TCP port.\n                                  properties:\n                                    host:\n                                      description: 'Optional: Host name to connect\n                                        to, defaults to the pod IP.'\n                                      type: string\n                                    port:\n                                      anyOf:\n                                      - type: integer\n                                      - type: string\n                                      description: |-\n                                        Number or name of the port to access on the container.\n                                        Number must be in the range 1 to 65535.\n                                        Name must be an IANA_SVC_NAME.\n                                      x-kubernetes-int-or-string: true\n                                  required:\n                                  - port\n                                  type: object\n                                terminationGracePeriodSeconds:\n                                  description: |-\n                                    Optional duration in seconds the pod needs to terminate gracefully upon probe failure.\n                                    The grace period is the duration in seconds after the processes running in the pod are sent\n                                    a termination signal and the time when the processes are forcibly halted with a kill signal.\n                                    Set this value longer than the expected cleanup time for your process.\n                                    If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this\n                                    value overrides the value provided by the pod spec.\n                                    Value must be non-negative integer. The value zero indicates stop immediately via\n                                    the kill signal (no opportunity to shut down).\n                                    This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.\n                                    Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.\n                                  format: int64\n                                  type: integer\n                                timeoutSeconds:\n                                  description: |-\n                                    Number of seconds after which the probe times out.\n                                    Defaults to 1 second. Minimum value is 1.\n                                    More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes\n                                  format: int32\n                                  type: integer\n                              type: object\n                            resizePolicy:\n                              description: Resources resize policy for the container.\n                              items:\n                                description: ContainerResizePolicy represents resource\n                                  resize policy for the container.\n                                properties:\n                                  resourceName:\n                                    description: |-\n                                      Name of the resource to which this resource resize policy applies.\n                                      Supported values: cpu, memory.\n                                    type: string\n                                  restartPolicy:\n                                    description: |-\n                                      Restart policy to apply when specified resource is resized.\n                                      If not specified, it defaults to NotRequired.\n                                    type: string\n                                required:\n                                - resourceName\n                                - restartPolicy\n                                type: object\n                              type: array\n                              x-kubernetes-list-type: atomic\n                            resources:\n                              description: |-\n                                Compute Resources required by this container.\n                                Cannot be updated.\n                                More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/\n                              properties:\n                                claims:\n                                  description: |-\n                                    Claims lists the names of resources, defined in spec.resourceClaims,\n                                    that are used by this container.\n\n                                    This field depends on the\n                                    DynamicResourceAllocation feature gate.\n\n                                    This field is immutable. It can only be set for containers.\n                                  items:\n                                    description: ResourceClaim references one entry\n                                      in PodSpec.ResourceClaims.\n                                    properties:\n                                      name:\n                                        description: |-\n                                          Name must match the name of one entry in pod.spec.resourceClaims of\n                                          the Pod where this field is used. It makes that resource available\n                                          inside a container.\n                                        type: string\n                                      request:\n                                        description: |-\n                                          Request is the name chosen for a request in the referenced claim.\n                                          If empty, everything from the claim is made available, otherwise\n                                          only the result of this request.\n                                        type: string\n                                    required:\n                                    - name\n                                    type: object\n                                  type: array\n                                  x-kubernetes-list-map-keys:\n                                  - name\n                                  x-kubernetes-list-type: map\n                                limits:\n                                  additionalProperties:\n                                    anyOf:\n                                    - type: integer\n                                    - type: string\n                                    pattern: ^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$\n                                    x-kubernetes-int-or-string: true\n                                  description: |-\n                                    Limits describes the maximum amount of compute resources allowed.\n                                    More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/\n                                  type: object\n                                requests:\n                                  additionalProperties:\n                                    anyOf:\n                                    - type: integer\n                                    - type: string\n                                    pattern: ^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$\n                                    x-kubernetes-int-or-string: true\n                                  description: |-\n                                    Requests describes the minimum amount of compute resources required.\n                                    If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,\n                                    otherwise to an implementation-defined value. Requests cannot exceed Limits.\n                                    More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/\n                                  type: object\n                              type: object\n                            restartPolicy:\n                              description: |-\n                                RestartPolicy defines the restart behavior of individual containers in a pod.\n                                This overrides the pod-level restart policy. When this field is not specified,\n                                the restart behavior is defined by the Pod's restart policy and the container type.\n                                Additionally, setting the RestartPolicy as \"Always\" for the init container will\n                                have the following effect:\n                                this init container will be continually restarted on\n                                exit until all regular containers have terminated. Once all regular\n                                containers have completed, all init containers with restartPolicy \"Always\"\n                                will be shut down. This lifecycle differs from normal init containers and\n                                is often referred to as a \"sidecar\" container. Although this init\n                                container still starts in the init container sequence, it does not wait\n                                for the container to complete before proceeding to the next init\n                                container. Instead, the next init container starts immediately after this\n                                init container is started, or after any startupProbe has successfully\n                                completed.\n                              type: string\n                            restartPolicyRules:\n                              description: |-\n                                Represents a list of rules to be checked to determine if the\n                                container should be restarted on exit. The rules are evaluated in\n                                order. Once a rule matches a container exit condition, the remaining\n                                rules are ignored. If no rule matches the container exit condition,\n                                the Container-level restart policy determines the whether the container\n                                is restarted or not. Constraints on the rules:\n                                - At most 20 rules are allowed.\n                                - Rules can have the same action.\n                                - Identical rules are not forbidden in validations.\n                                When rules are specified, container MUST set RestartPolicy explicitly\n                                even it if matches the Pod's RestartPolicy.\n                              items:\n                                description: ContainerRestartRule describes how a\n                                  container exit is handled.\n                                properties:\n                                  action:\n                                    description: |-\n                                      Specifies the action taken on a container exit if the requirements\n                                      are satisfied. The only possible value is \"Restart\" to restart the\n                                      container.\n                                    type: string\n                                  exitCodes:\n                                    description: Represents the exit codes to check\n                                      on container exits.\n                                    properties:\n                                      operator:\n                                        description: |-\n                                          Represents the relationship between the container exit code(s) and the\n                                          specified values. Possible values are:\n                                          - In: the requirement is satisfied if the container exit code is in the\n                                            set of specified values.\n                                          - NotIn: the requirement is satisfied if the container exit code is\n                                            not in the set of specified values.\n                                        type: string\n                                      values:\n                                        description: |-\n                                          Specifies the set of values to check for container exit codes.\n                                          At most 255 elements are allowed.\n                                        items:\n                                          format: int32\n                                          type: integer\n                                        type: array\n                                        x-kubernetes-list-type: set\n                                    required:\n                                    - operator\n                                    type: object\n                                required:\n                                - action\n                                type: object\n                              type: array\n                              x-kubernetes-list-type: atomic\n                            securityContext:\n                              description: |-\n                                SecurityContext defines the security options the container should be run with.\n                                If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.\n                                More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/\n                              properties:\n                                allowPrivilegeEscalation:\n                                  description: |-\n                                    AllowPrivilegeEscalation controls whether a process can gain more\n                                    privileges than its parent process. This bool directly controls if\n                                    the no_new_privs flag will be set on the container process.\n                                    AllowPrivilegeEscalation is true always when the container is:\n                                    1) run as Privileged\n                                    2) has CAP_SYS_ADMIN\n                                    Note that this field cannot be set when spec.os.name is windows.\n                                  type: boolean\n                                appArmorProfile:\n                                  description: |-\n                                    appArmorProfile is the AppArmor options to use by this container. If set, this profile\n                                    overrides the pod's appArmorProfile.\n                                    Note that this field cannot be set when spec.os.name is windows.\n                                  properties:\n                                    localhostProfile:\n                                      description: |-\n                                        localhostProfile indicates a profile loaded on the node that should be used.\n                                        The profile must be preconfigured on the node to work.\n                                        Must match the loaded name of the profile.\n                                        Must be set if and only if type is \"Localhost\".\n                                      type: string\n                                    type:\n                                      description: |-\n                                        type indicates which kind of AppArmor profile will be applied.\n                                        Valid options are:\n                                          Localhost - a profile pre-loaded on the node.\n                                          RuntimeDefault - the container runtime's default profile.\n                                          Unconfined - no AppArmor enforcement.\n                                      type: string\n                                  required:\n                                  - type\n                                  type: object\n                                capabilities:\n                                  description: |-\n                                    The capabilities to add/drop when running containers.\n                                    Defaults to the default set of capabilities granted by the container runtime.\n                                    Note that this field cannot be set when spec.os.name is windows.\n                                  properties:\n                                    add:\n                                      description: Added capabilities\n                                      items:\n                                        description: Capability represent POSIX capabilities\n                                          type\n                                        type: string\n                                      type: array\n                                      x-kubernetes-list-type: atomic\n                                    drop:\n                                      description: Removed capabilities\n                                      items:\n                                        description: Capability represent POSIX capabilities\n                                          type\n                                        type: string\n                                      type: array\n                                      x-kubernetes-list-type: atomic\n                                  type: object\n                                privileged:\n                                  description: |-\n                                    Run container in privileged mode.\n                                    Processes in privileged containers are essentially equivalent to root on the host.\n                                    Defaults to false.\n                                    Note that this field cannot be set when spec.os.name is windows.\n                                  type: boolean\n                                procMount:\n                                  description: |-\n                                    procMount denotes the type of proc mount to use for the containers.\n                                    The default value is Default which uses the container runtime defaults for\n                                    readonly paths and masked paths.\n                                    This requires the ProcMountType feature flag to be enabled.\n                                    Note that this field cannot be set when spec.os.name is windows.\n                                  type: string\n                                readOnlyRootFilesystem:\n                                  description: |-\n                                    Whether this container has a read-only root filesystem.\n                                    Default is false.\n                                    Note that this field cannot be set when spec.os.name is windows.\n                                  type: boolean\n                                runAsGroup:\n                                  description: |-\n                                    The GID to run the entrypoint of the container process.\n                                    Uses runtime default if unset.\n                                    May also be set in PodSecurityContext.  If set in both SecurityContext and\n                                    PodSecurityContext, the value specified in SecurityContext takes precedence.\n                                    Note that this field cannot be set when spec.os.name is windows.\n                                  format: int64\n                                  type: integer\n                                runAsNonRoot:\n                                  description: |-\n                                    Indicates that the container must run as a non-root user.\n                                    If true, the Kubelet will validate the image at runtime to ensure that it\n                                    does not run as UID 0 (root) and fail to start the container if it does.\n                                    If unset or false, no such validation will be performed.\n                                    May also be set in PodSecurityContext.  If set in both SecurityContext and\n                                    PodSecurityContext, the value specified in SecurityContext takes precedence.\n                                  type: boolean\n                                runAsUser:\n                                  description: |-\n                                    The UID to run the entrypoint of the container process.\n                                    Defaults to user specified in image metadata if unspecified.\n                                    May also be set in PodSecurityContext.  If set in both SecurityContext and\n                                    PodSecurityContext, the value specified in SecurityContext takes precedence.\n                                    Note that this field cannot be set when spec.os.name is windows.\n                                  format: int64\n                                  type: integer\n                                seLinuxOptions:\n                                  description: |-\n                                    The SELinux context to be applied to the container.\n                                    If unspecified, the container runtime will allocate a random SELinux context for each\n                                    container.  May also be set in PodSecurityContext.  If set in both SecurityContext and\n                                    PodSecurityContext, the value specified in SecurityContext takes precedence.\n                                    Note that this field cannot be set when spec.os.name is windows.\n                                  properties:\n                                    level:\n                                      description: Level is SELinux level label that\n                                        applies to the container.\n                                      type: string\n                                    role:\n                                      description: Role is a SELinux role label that\n                                        applies to the container.\n                                      type: string\n                                    type:\n                                      description: Type is a SELinux type label that\n                                        applies to the container.\n                                      type: string\n                                    user:\n                                      description: User is a SELinux user label that\n                                        applies to the container.\n                                      type: string\n                                  type: object\n                                seccompProfile:\n                                  description: |-\n                                    The seccomp options to use by this container. If seccomp options are\n                                    provided at both the pod & container level, the container options\n                                    override the pod options.\n                                    Note that this field cannot be set when spec.os.name is windows.\n                                  properties:\n                                    localhostProfile:\n                                      description: |-\n                                        localhostProfile indicates a profile defined in a file on the node should be used.\n                                        The profile must be preconfigured on the node to work.\n                                        Must be a descending path, relative to the kubelet's configured seccomp profile location.\n                                        Must be set if type is \"Localhost\". Must NOT be set for any other type.\n                                      type: string\n                                    type:\n                                      description: |-\n                                        type indicates which kind of seccomp profile will be applied.\n                                        Valid options are:\n\n                                        Localhost - a profile defined in a file on the node should be used.\n                                        RuntimeDefault - the container runtime default profile should be used.\n                                        Unconfined - no profile should be applied.\n                                      type: string\n                                  required:\n                                  - type\n                                  type: object\n                                windowsOptions:\n                                  description: |-\n                                    The Windows specific settings applied to all containers.\n                                    If unspecified, the options from the PodSecurityContext will be used.\n                                    If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.\n                                    Note that this field cannot be set when spec.os.name is linux.\n                                  properties:\n                                    gmsaCredentialSpec:\n                                      description: |-\n                                        GMSACredentialSpec is where the GMSA admission webhook\n                                        (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the\n                                        GMSA credential spec named by the GMSACredentialSpecName field.\n                                      type: string\n                                    gmsaCredentialSpecName:\n                                      description: GMSACredentialSpecName is the name\n                                        of the GMSA credential spec to use.\n                                      type: string\n                                    hostProcess:\n                                      description: |-\n                                        HostProcess determines if a container should be run as a 'Host Process' container.\n                                        All of a Pod's containers must have the same effective HostProcess value\n                                        (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers).\n                                        In addition, if HostProcess is true then HostNetwork must also be set to true.\n                                      type: boolean\n                                    runAsUserName:\n                                      description: |-\n                                        The UserName in Windows to run the entrypoint of the container process.\n                                        Defaults to the user specified in image metadata if unspecified.\n                                        May also be set in PodSecurityContext. If set in both SecurityContext and\n                                        PodSecurityContext, the value specified in SecurityContext takes precedence.\n                                      type: string\n                                  type: object\n                              type: object\n                            startupProbe:\n                              description: |-\n                                StartupProbe indicates that the Pod has successfully initialized.\n                                If specified, no other probes are executed until this completes successfully.\n                                If this probe fails, the Pod will be restarted, just as if the livenessProbe failed.\n                                This can be used to provide different probe parameters at the beginning of a Pod's lifecycle,\n                                when it might take a long time to load data or warm a cache, than during steady-state operation.\n                                This cannot be updated.\n                                More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes\n                              properties:\n                                exec:\n                                  description: Exec specifies a command to execute\n                                    in the container.\n                                  properties:\n                                    command:\n                                      description: |-\n                                        Command is the command line to execute inside the container, the working directory for the\n                                        command  is root ('/') in the container's filesystem. The command is simply exec'd, it is\n                                        not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\n                                        a shell, you need to explicitly call out to that shell.\n                                        Exit status of 0 is treated as live/healthy and non-zero is unhealthy.\n                                      items:\n                                        type: string\n                                      type: array\n                                      x-kubernetes-list-type: atomic\n                                  type: object\n                                failureThreshold:\n                                  description: |-\n                                    Minimum consecutive failures for the probe to be considered failed after having succeeded.\n                                    Defaults to 3. Minimum value is 1.\n                                  format: int32\n                                  type: integer\n                                grpc:\n                                  description: GRPC specifies a GRPC HealthCheckRequest.\n                                  properties:\n                                    port:\n                                      description: Port number of the gRPC service.\n                                        Number must be in the range 1 to 65535.\n                                      format: int32\n                                      type: integer\n                                    service:\n                                      default: \"\"\n                                      description: |-\n                                        Service is the name of the service to place in the gRPC HealthCheckRequest\n                                        (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\n\n                                        If this is not specified, the default behavior is defined by gRPC.\n                                      type: string\n                                  required:\n                                  - port\n                                  type: object\n                                httpGet:\n                                  description: HTTPGet specifies an HTTP GET request\n                                    to perform.\n                                  properties:\n                                    host:\n                                      description: |-\n                                        Host name to connect to, defaults to the pod IP. You probably want to set\n                                        \"Host\" in httpHeaders instead.\n                                      type: string\n                                    httpHeaders:\n                                      description: Custom headers to set in the request.\n                                        HTTP allows repeated headers.\n                                      items:\n                                        description: HTTPHeader describes a custom\n                                          header to be used in HTTP probes\n                                        properties:\n                                          name:\n                                            description: |-\n                                              The header field name.\n                                              This will be canonicalized upon output, so case-variant names will be understood as the same header.\n                                            type: string\n                                          value:\n                                            description: The header field value\n                                            type: string\n                                        required:\n                                        - name\n                                        - value\n                                        type: object\n                                      type: array\n                                      x-kubernetes-list-type: atomic\n                                    path:\n                                      description: Path to access on the HTTP server.\n                                      type: string\n                                    port:\n                                      anyOf:\n                                      - type: integer\n                                      - type: string\n                                      description: |-\n                                        Name or number of the port to access on the container.\n                                        Number must be in the range 1 to 65535.\n                                        Name must be an IANA_SVC_NAME.\n                                      x-kubernetes-int-or-string: true\n                                    scheme:\n                                      description: |-\n                                        Scheme to use for connecting to the host.\n                                        Defaults to HTTP.\n                                      type: string\n                                  required:\n                                  - port\n                                  type: object\n                                initialDelaySeconds:\n                                  description: |-\n                                    Number of seconds after the container has started before liveness probes are initiated.\n                                    More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes\n                                  format: int32\n                                  type: integer\n                                periodSeconds:\n                                  description: |-\n                                    How often (in seconds) to perform the probe.\n                                    Default to 10 seconds. Minimum value is 1.\n                                  format: int32\n                                  type: integer\n                                successThreshold:\n                                  description: |-\n                                    Minimum consecutive successes for the probe to be considered successful after having failed.\n                                    Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.\n                                  format: int32\n                                  type: integer\n                                tcpSocket:\n                                  description: TCPSocket specifies a connection to\n                                    a TCP port.\n                                  properties:\n                                    host:\n                                      description: 'Optional: Host name to connect\n                                        to, defaults to the pod IP.'\n                                      type: string\n                                    port:\n                                      anyOf:\n                                      - type: integer\n                                      - type: string\n                                      description: |-\n                                        Number or name of the port to access on the container.\n                                        Number must be in the range 1 to 65535.\n                                        Name must be an IANA_SVC_NAME.\n                                      x-kubernetes-int-or-string: true\n                                  required:\n                                  - port\n                                  type: object\n                                terminationGracePeriodSeconds:\n                                  description: |-\n                                    Optional duration in seconds the pod needs to terminate gracefully upon probe failure.\n                                    The grace period is the duration in seconds after the processes running in the pod are sent\n                                    a termination signal and the time when the processes are forcibly halted with a kill signal.\n                                    Set this value longer than the expected cleanup time for your process.\n                                    If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this\n                                    value overrides the value provided by the pod spec.\n                                    Value must be non-negative integer. The value zero indicates stop immediately via\n                                    the kill signal (no opportunity to shut down).\n                                    This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.\n                                    Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.\n                                  format: int64\n                                  type: integer\n                                timeoutSeconds:\n                                  description: |-\n                                    Number of seconds after which the probe times out.\n                                    Defaults to 1 second. Minimum value is 1.\n                                    More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes\n                                  format: int32\n                                  type: integer\n                              type: object\n                            stdin:\n                              description: |-\n                                Whether this container should allocate a buffer for stdin in the container runtime. If this\n                                is not set, reads from stdin in the container will always result in EOF.\n                                Default is false.\n                              type: boolean\n                            stdinOnce:\n                              description: |-\n                                Whether the container runtime should close the stdin channel after it has been opened by\n                                a single attach. When stdin is true the stdin stream will remain open across multiple attach\n                                sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the\n                                first client attaches to stdin, and then remains open and accepts data until the client disconnects,\n                                at which time stdin is closed and remains closed until the container is restarted. If this\n                                flag is false, a container processes that reads from stdin will never receive an EOF.\n                                Default is false\n                              type: boolean\n                            terminationMessagePath:\n                              description: |-\n                                Optional: Path at which the file to which the container's termination message\n                                will be written is mounted into the container's filesystem.\n                                Message written is intended to be brief final status, such as an assertion failure message.\n                                Will be truncated by the node if greater than 4096 bytes. The total message length across\n                                all containers will be limited to 12kb.\n                                Defaults to /dev/termination-log.\n                                Cannot be updated.\n                              type: string\n                            terminationMessagePolicy:\n                              description: |-\n                                Indicate how the termination message should be populated. File will use the contents of\n                                terminationMessagePath to populate the container status message on both success and failure.\n                                FallbackToLogsOnError will use the last chunk of container log output if the termination\n                                message file is empty and the container exited with an error.\n                                The log output is limited to 2048 bytes or 80 lines, whichever is smaller.\n                                Defaults to File.\n                                Cannot be updated.\n                              type: string\n                            tty:\n                              description: |-\n                                Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.\n                                Default is false.\n                              type: boolean\n                            volumeDevices:\n                              description: volumeDevices is the list of block devices\n                                to be used by the container.\n                              items:\n                                description: volumeDevice describes a mapping of a\n                                  raw block device within a container.\n                                properties:\n                                  devicePath:\n                                    description: devicePath is the path inside of\n                                      the container that the device will be mapped\n                                      to.\n                                    type: string\n                                  name:\n                                    description: name must match the name of a persistentVolumeClaim\n                                      in the pod\n                                    type: string\n                                required:\n                                - devicePath\n                                - name\n                                type: object\n                              type: array\n                              x-kubernetes-list-map-keys:\n                              - devicePath\n                              x-kubernetes-list-type: map\n                            volumeMounts:\n                              description: |-\n                                Pod volumes to mount into the container's filesystem.\n                                Cannot be updated.\n                              items:\n                                description: VolumeMount describes a mounting of a\n                                  Volume within a container.\n                                properties:\n                                  mountPath:\n                                    description: |-\n                                      Path within the container at which the volume should be mounted.  Must\n                                      not contain ':'.\n                                    type: string\n                                  mountPropagation:\n                                    description: |-\n                                      mountPropagation determines how mounts are propagated from the host\n                                      to container and the other way around.\n                                      When not set, MountPropagationNone is used.\n                                      This field is beta in 1.10.\n                                      When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified\n                                      (which defaults to None).\n                                    type: string\n                                  name:\n                                    description: This must match the Name of a Volume.\n                                    type: string\n                                  readOnly:\n                                    description: |-\n                                      Mounted read-only if true, read-write otherwise (false or unspecified).\n                                      Defaults to false.\n                                    type: boolean\n                                  recursiveReadOnly:\n                                    description: |-\n                                      RecursiveReadOnly specifies whether read-only mounts should be handled\n                                      recursively.\n\n                                      If ReadOnly is false, this field has no meaning and must be unspecified.\n\n                                      If ReadOnly is true, and this field is set to Disabled, the mount is not made\n                                      recursively read-only.  If this field is set to IfPossible, the mount is made\n                                      recursively read-only, if it is supported by the container runtime.  If this\n                                      field is set to Enabled, the mount is made recursively read-only if it is\n                                      supported by the container runtime, otherwise the pod will not be started and\n                                      an error will be generated to indicate the reason.\n\n                                      If this field is set to IfPossible or Enabled, MountPropagation must be set to\n                                      None (or be unspecified, which defaults to None).\n\n                                      If this field is not specified, it is treated as an equivalent of Disabled.\n                                    type: string\n                                  subPath:\n                                    description: |-\n                                      Path within the volume from which the container's volume should be mounted.\n                                      Defaults to \"\" (volume's root).\n                                    type: string\n                                  subPathExpr:\n                                    description: |-\n                                      Expanded path within the volume from which the container's volume should be mounted.\n                                      Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.\n                                      Defaults to \"\" (volume's root).\n                                      SubPathExpr and SubPath are mutually exclusive.\n                                    type: string\n                                required:\n                                - mountPath\n                                - name\n                                type: object\n                              type: array\n                              x-kubernetes-list-map-keys:\n                              - mountPath\n                              x-kubernetes-list-type: map\n                            workingDir:\n                              description: |-\n                                Container's working directory.\n                                If not specified, the container runtime's default will be used, which\n                                might be configured in the container image.\n                                Cannot be updated.\n                              type: string\n                          required:\n                          - name\n                          type: object\n                        type: array\n                        x-kubernetes-list-map-keys:\n                        - name\n                        x-kubernetes-list-type: map\n                      dnsConfig:\n                        description: |-\n                          Specifies the DNS parameters of a pod.\n                          Parameters specified here will be merged to the generated DNS\n                          configuration based on DNSPolicy.\n                        properties:\n                          nameservers:\n                            description: |-\n                              A list of DNS name server IP addresses.\n                              This will be appended to the base nameservers generated from DNSPolicy.\n                              Duplicated nameservers will be removed.\n                            items:\n                              type: string\n                            type: array\n                            x-kubernetes-list-type: atomic\n                          options:\n                            description: |-\n                              A list of DNS resolver options.\n                              This will be merged with the base options generated from DNSPolicy.\n                              Duplicated entries will be removed. Resolution options given in Options\n                              will override those that appear in the base DNSPolicy.\n                            items:\n                              description: PodDNSConfigOption defines DNS resolver\n                                options of a pod.\n                              properties:\n                                name:\n                                  description: |-\n                                    Name is this DNS resolver option's name.\n                                    Required.\n                                  type: string\n                                value:\n                                  description: Value is this DNS resolver option's\n                                    value.\n                                  type: string\n                              type: object\n                            type: array\n                            x-kubernetes-list-type: atomic\n                          searches:\n                            description: |-\n                              A list of DNS search domains for host-name lookup.\n                              This will be appended to the base search paths generated from DNSPolicy.\n                              Duplicated search paths will be removed.\n                            items:\n                              type: string\n                            type: array\n                            x-kubernetes-list-type: atomic\n                        type: object\n                      dnsPolicy:\n                        description: |-\n                          Set DNS policy for the pod.\n                          Defaults to \"ClusterFirst\".\n                          Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'.\n                          DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy.\n                          To have DNS options set along with hostNetwork, you have to specify DNS policy\n                          explicitly to 'ClusterFirstWithHostNet'.\n                        type: string\n                      enableServiceLinks:\n                        description: |-\n                          EnableServiceLinks indicates whether information about services should be injected into pod's\n                          environment variables, matching the syntax of Docker links.\n                          Optional: Defaults to true.\n                        type: boolean\n                      ephemeralContainers:\n                        description: |-\n                          List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing\n                          pod to perform user-initiated actions such as debugging. This list cannot be specified when\n                          creating a pod, and it cannot be modified by updating the pod spec. In order to add an\n                          ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.\n                        items:\n                          description: |-\n                            An EphemeralContainer is a temporary container that you may add to an existing Pod for\n                            user-initiated activities such as debugging. Ephemeral containers have no resource or\n                            scheduling guarantees, and they will not be restarted when they exit or when a Pod is\n                            removed or restarted. The kubelet may evict a Pod if an ephemeral container causes the\n                            Pod to exceed its resource allocation.\n\n                            To add an ephemeral container, use the ephemeralcontainers subresource of an existing\n                            Pod. Ephemeral containers may not be removed or restarted.\n                          properties:\n                            args:\n                              description: |-\n                                Arguments to the entrypoint.\n                                The image's CMD is used if this is not provided.\n                                Variable references $(VAR_NAME) are expanded using the container's environment. If a variable\n                                cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced\n                                to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will\n                                produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless\n                                of whether the variable exists or not. Cannot be updated.\n                                More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell\n                              items:\n                                type: string\n                              type: array\n                              x-kubernetes-list-type: atomic\n                            command:\n                              description: |-\n                                Entrypoint array. Not executed within a shell.\n                                The image's ENTRYPOINT is used if this is not provided.\n                                Variable references $(VAR_NAME) are expanded using the container's environment. If a variable\n                                cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced\n                                to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will\n                                produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless\n                                of whether the variable exists or not. Cannot be updated.\n                                More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell\n                              items:\n                                type: string\n                              type: array\n                              x-kubernetes-list-type: atomic\n                            env:\n                              description: |-\n                                List of environment variables to set in the container.\n                                Cannot be updated.\n                              items:\n                                description: EnvVar represents an environment variable\n                                  present in a Container.\n                                properties:\n                                  name:\n                                    description: |-\n                                      Name of the environment variable.\n                                      May consist of any printable ASCII characters except '='.\n                                    type: string\n                                  value:\n                                    description: |-\n                                      Variable references $(VAR_NAME) are expanded\n                                      using the previously defined environment variables in the container and\n                                      any service environment variables. If a variable cannot be resolved,\n                                      the reference in the input string will be unchanged. Double $$ are reduced\n                                      to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.\n                                      \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\".\n                                      Escaped references will never be expanded, regardless of whether the variable\n                                      exists or not.\n                                      Defaults to \"\".\n                                    type: string\n                                  valueFrom:\n                                    description: Source for the environment variable's\n                                      value. Cannot be used if value is not empty.\n                                    properties:\n                                      configMapKeyRef:\n                                        description: Selects a key of a ConfigMap.\n                                        properties:\n                                          key:\n                                            description: The key to select.\n                                            type: string\n                                          name:\n                                            default: \"\"\n                                            description: |-\n                                              Name of the referent.\n                                              This field is effectively required, but due to backwards compatibility is\n                                              allowed to be empty. Instances of this type with an empty value here are\n                                              almost certainly wrong.\n                                              More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\n                                            type: string\n                                          optional:\n                                            description: Specify whether the ConfigMap\n                                              or its key must be defined\n                                            type: boolean\n                                        required:\n                                        - key\n                                        type: object\n                                        x-kubernetes-map-type: atomic\n                                      fieldRef:\n                                        description: |-\n                                          Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`,\n                                          spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.\n                                        properties:\n                                          apiVersion:\n                                            description: Version of the schema the\n                                              FieldPath is written in terms of, defaults\n                                              to \"v1\".\n                                            type: string\n                                          fieldPath:\n                                            description: Path of the field to select\n                                              in the specified API version.\n                                            type: string\n                                        required:\n                                        - fieldPath\n                                        type: object\n                                        x-kubernetes-map-type: atomic\n                                      fileKeyRef:\n                                        description: |-\n                                          FileKeyRef selects a key of the env file.\n                                          Requires the EnvFiles feature gate to be enabled.\n                                        properties:\n                                          key:\n                                            description: |-\n                                              The key within the env file. An invalid key will prevent the pod from starting.\n                                              The keys defined within a source may consist of any printable ASCII characters except '='.\n                                              During Alpha stage of the EnvFiles feature gate, the key size is limited to 128 characters.\n                                            type: string\n                                          optional:\n                                            default: false\n                                            description: |-\n                                              Specify whether the file or its key must be defined. If the file or key\n                                              does not exist, then the env var is not published.\n                                              If optional is set to true and the specified key does not exist,\n                                              the environment variable will not be set in the Pod's containers.\n\n                                              If optional is set to false and the specified key does not exist,\n                                              an error will be returned during Pod creation.\n                                            type: boolean\n                                          path:\n                                            description: |-\n                                              The path within the volume from which to select the file.\n                                              Must be relative and may not contain the '..' path or start with '..'.\n                                            type: string\n                                          volumeName:\n                                            description: The name of the volume mount\n                                              containing the env file.\n                                            type: string\n                                        required:\n                                        - key\n                                        - path\n                                        - volumeName\n                                        type: object\n                                        x-kubernetes-map-type: atomic\n                                      resourceFieldRef:\n                                        description: |-\n                                          Selects a resource of the container: only resources limits and requests\n                                          (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.\n                                        properties:\n                                          containerName:\n                                            description: 'Container name: required\n                                              for volumes, optional for env vars'\n                                            type: string\n                                          divisor:\n                                            anyOf:\n                                            - type: integer\n                                            - type: string\n                                            description: Specifies the output format\n                                              of the exposed resources, defaults to\n                                              \"1\"\n                                            pattern: ^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$\n                                            x-kubernetes-int-or-string: true\n                                          resource:\n                                            description: 'Required: resource to select'\n                                            type: string\n                                        required:\n                                        - resource\n                                        type: object\n                                        x-kubernetes-map-type: atomic\n                                      secretKeyRef:\n                                        description: Selects a key of a secret in\n                                          the pod's namespace\n                                        properties:\n                                          key:\n                                            description: The key of the secret to\n                                              select from.  Must be a valid secret\n                                              key.\n                                            type: string\n                                          name:\n                                            default: \"\"\n                                            description: |-\n                                              Name of the referent.\n                                              This field is effectively required, but due to backwards compatibility is\n                                              allowed to be empty. Instances of this type with an empty value here are\n                                              almost certainly wrong.\n                                              More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\n                                            type: string\n                                          optional:\n                                            description: Specify whether the Secret\n                                              or its key must be defined\n                                            type: boolean\n                                        required:\n                                        - key\n                                        type: object\n                                        x-kubernetes-map-type: atomic\n                                    type: object\n                                required:\n                                - name\n                                type: object\n                              type: array\n                              x-kubernetes-list-map-keys:\n                              - name\n                              x-kubernetes-list-type: map\n                            envFrom:\n                              description: |-\n                                List of sources to populate environment variables in the container.\n                                The keys defined within a source may consist of any printable ASCII characters except '='.\n                                When a key exists in multiple\n                                sources, the value associated with the last source will take precedence.\n                                Values defined by an Env with a duplicate key will take precedence.\n                                Cannot be updated.\n                              items:\n                                description: EnvFromSource represents the source of\n                                  a set of ConfigMaps or Secrets\n                                properties:\n                                  configMapRef:\n                                    description: The ConfigMap to select from\n                                    properties:\n                                      name:\n                                        default: \"\"\n                                        description: |-\n                                          Name of the referent.\n                                          This field is effectively required, but due to backwards compatibility is\n                                          allowed to be empty. Instances of this type with an empty value here are\n                                          almost certainly wrong.\n                                          More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\n                                        type: string\n                                      optional:\n                                        description: Specify whether the ConfigMap\n                                          must be defined\n                                        type: boolean\n                                    type: object\n                                    x-kubernetes-map-type: atomic\n                                  prefix:\n                                    description: |-\n                                      Optional text to prepend to the name of each environment variable.\n                                      May consist of any printable ASCII characters except '='.\n                                    type: string\n                                  secretRef:\n                                    description: The Secret to select from\n                                    properties:\n                                      name:\n                                        default: \"\"\n                                        description: |-\n                                          Name of the referent.\n                                          This field is effectively required, but due to backwards compatibility is\n                                          allowed to be empty. Instances of this type with an empty value here are\n                                          almost certainly wrong.\n                                          More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\n                                        type: string\n                                      optional:\n                                        description: Specify whether the Secret must\n                                          be defined\n                                        type: boolean\n                                    type: object\n                                    x-kubernetes-map-type: atomic\n                                type: object\n                              type: array\n                              x-kubernetes-list-type: atomic\n                            image:\n                              description: |-\n                                Container image name.\n                                More info: https://kubernetes.io/docs/concepts/containers/images\n                              type: string\n                            imagePullPolicy:\n                              description: |-\n                                Image pull policy.\n                                One of Always, Never, IfNotPresent.\n                                Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.\n                                Cannot be updated.\n                                More info: https://kubernetes.io/docs/concepts/containers/images#updating-images\n                              type: string\n                            lifecycle:\n                              description: Lifecycle is not allowed for ephemeral\n                                containers.\n                              properties:\n                                postStart:\n                                  description: |-\n                                    PostStart is called immediately after a container is created. If the handler fails,\n                                    the container is terminated and restarted according to its restart policy.\n                                    Other management of the container blocks until the hook completes.\n                                    More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks\n                                  properties:\n                                    exec:\n                                      description: Exec specifies a command to execute\n                                        in the container.\n                                      properties:\n                                        command:\n                                          description: |-\n                                            Command is the command line to execute inside the container, the working directory for the\n                                            command  is root ('/') in the container's filesystem. The command is simply exec'd, it is\n                                            not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\n                                            a shell, you need to explicitly call out to that shell.\n                                            Exit status of 0 is treated as live/healthy and non-zero is unhealthy.\n                                          items:\n                                            type: string\n                                          type: array\n                                          x-kubernetes-list-type: atomic\n                                      type: object\n                                    httpGet:\n                                      description: HTTPGet specifies an HTTP GET request\n                                        to perform.\n                                      properties:\n                                        host:\n                                          description: |-\n                                            Host name to connect to, defaults to the pod IP. You probably want to set\n                                            \"Host\" in httpHeaders instead.\n                                          type: string\n                                        httpHeaders:\n                                          description: Custom headers to set in the\n                                            request. HTTP allows repeated headers.\n                                          items:\n                                            description: HTTPHeader describes a custom\n                                              header to be used in HTTP probes\n                                            properties:\n                                              name:\n                                                description: |-\n                                                  The header field name.\n                                                  This will be canonicalized upon output, so case-variant names will be understood as the same header.\n                                                type: string\n                                              value:\n                                                description: The header field value\n                                                type: string\n                                            required:\n                                            - name\n                                            - value\n                                            type: object\n                                          type: array\n                                          x-kubernetes-list-type: atomic\n                                        path:\n                                          description: Path to access on the HTTP\n                                            server.\n                                          type: string\n                                        port:\n                                          anyOf:\n                                          - type: integer\n                                          - type: string\n                                          description: |-\n                                            Name or number of the port to access on the container.\n                                            Number must be in the range 1 to 65535.\n                                            Name must be an IANA_SVC_NAME.\n                                          x-kubernetes-int-or-string: true\n                                        scheme:\n                                          description: |-\n                                            Scheme to use for connecting to the host.\n                                            Defaults to HTTP.\n                                          type: string\n                                      required:\n                                      - port\n                                      type: object\n                                    sleep:\n                                      description: Sleep represents a duration that\n                                        the container should sleep.\n                                      properties:\n                                        seconds:\n                                          description: Seconds is the number of seconds\n                                            to sleep.\n                                          format: int64\n                                          type: integer\n                                      required:\n                                      - seconds\n                                      type: object\n                                    tcpSocket:\n                                      description: |-\n                                        Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept\n                                        for backward compatibility. There is no validation of this field and\n                                        lifecycle hooks will fail at runtime when it is specified.\n                                      properties:\n                                        host:\n                                          description: 'Optional: Host name to connect\n                                            to, defaults to the pod IP.'\n                                          type: string\n                                        port:\n                                          anyOf:\n                                          - type: integer\n                                          - type: string\n                                          description: |-\n                                            Number or name of the port to access on the container.\n                                            Number must be in the range 1 to 65535.\n                                            Name must be an IANA_SVC_NAME.\n                                          x-kubernetes-int-or-string: true\n                                      required:\n                                      - port\n                                      type: object\n                                  type: object\n                                preStop:\n                                  description: |-\n                                    PreStop is called immediately before a container is terminated due to an\n                                    API request or management event such as liveness/startup probe failure,\n                                    preemption, resource contention, etc. The handler is not called if the\n                                    container crashes or exits. The Pod's termination grace period countdown begins before the\n                                    PreStop hook is executed. Regardless of the outcome of the handler, the\n                                    container will eventually terminate within the Pod's termination grace\n                                    period (unless delayed by finalizers). Other management of the container blocks until the hook completes\n                                    or until the termination grace period is reached.\n                                    More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks\n                                  properties:\n                                    exec:\n                                      description: Exec specifies a command to execute\n                                        in the container.\n                                      properties:\n                                        command:\n                                          description: |-\n                                            Command is the command line to execute inside the container, the working directory for the\n                                            command  is root ('/') in the container's filesystem. The command is simply exec'd, it is\n                                            not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\n                                            a shell, you need to explicitly call out to that shell.\n                                            Exit status of 0 is treated as live/healthy and non-zero is unhealthy.\n                                          items:\n                                            type: string\n                                          type: array\n                                          x-kubernetes-list-type: atomic\n                                      type: object\n                                    httpGet:\n                                      description: HTTPGet specifies an HTTP GET request\n                                        to perform.\n                                      properties:\n                                        host:\n                                          description: |-\n                                            Host name to connect to, defaults to the pod IP. You probably want to set\n                                            \"Host\" in httpHeaders instead.\n                                          type: string\n                                        httpHeaders:\n                                          description: Custom headers to set in the\n                                            request. HTTP allows repeated headers.\n                                          items:\n                                            description: HTTPHeader describes a custom\n                                              header to be used in HTTP probes\n                                            properties:\n                                              name:\n                                                description: |-\n                                                  The header field name.\n                                                  This will be canonicalized upon output, so case-variant names will be understood as the same header.\n                                                type: string\n                                              value:\n                                                description: The header field value\n                                                type: string\n                                            required:\n                                            - name\n                                            - value\n                                            type: object\n                                          type: array\n                                          x-kubernetes-list-type: atomic\n                                        path:\n                                          description: Path to access on the HTTP\n                                            server.\n                                          type: string\n                                        port:\n                                          anyOf:\n                                          - type: integer\n                                          - type: string\n                                          description: |-\n                                            Name or number of the port to access on the container.\n                                            Number must be in the range 1 to 65535.\n                                            Name must be an IANA_SVC_NAME.\n                                          x-kubernetes-int-or-string: true\n                                        scheme:\n                                          description: |-\n                                            Scheme to use for connecting to the host.\n                                            Defaults to HTTP.\n                                          type: string\n                                      required:\n                                      - port\n                                      type: object\n                                    sleep:\n                                      description: Sleep represents a duration that\n                                        the container should sleep.\n                                      properties:\n                                        seconds:\n                                          description: Seconds is the number of seconds\n                                            to sleep.\n                                          format: int64\n                                          type: integer\n                                      required:\n                                      - seconds\n                                      type: object\n                                    tcpSocket:\n                                      description: |-\n                                        Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept\n                                        for backward compatibility. There is no validation of this field and\n                                        lifecycle hooks will fail at runtime when it is specified.\n                                      properties:\n                                        host:\n                                          description: 'Optional: Host name to connect\n                                            to, defaults to the pod IP.'\n                                          type: string\n                                        port:\n                                          anyOf:\n                                          - type: integer\n                                          - type: string\n                                          description: |-\n                                            Number or name of the port to access on the container.\n                                            Number must be in the range 1 to 65535.\n                                            Name must be an IANA_SVC_NAME.\n                                          x-kubernetes-int-or-string: true\n                                      required:\n                                      - port\n                                      type: object\n                                  type: object\n                                stopSignal:\n                                  description: |-\n                                    StopSignal defines which signal will be sent to a container when it is being stopped.\n                                    If not specified, the default is defined by the container runtime in use.\n                                    StopSignal can only be set for Pods with a non-empty .spec.os.name\n                                  type: string\n                              type: object\n                            livenessProbe:\n                              description: Probes are not allowed for ephemeral containers.\n                              properties:\n                                exec:\n                                  description: Exec specifies a command to execute\n                                    in the container.\n                                  properties:\n                                    command:\n                                      description: |-\n                                        Command is the command line to execute inside the container, the working directory for the\n                                        command  is root ('/') in the container's filesystem. The command is simply exec'd, it is\n                                        not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\n                                        a shell, you need to explicitly call out to that shell.\n                                        Exit status of 0 is treated as live/healthy and non-zero is unhealthy.\n                                      items:\n                                        type: string\n                                      type: array\n                                      x-kubernetes-list-type: atomic\n                                  type: object\n                                failureThreshold:\n                                  description: |-\n                                    Minimum consecutive failures for the probe to be considered failed after having succeeded.\n                                    Defaults to 3. Minimum value is 1.\n                                  format: int32\n                                  type: integer\n                                grpc:\n                                  description: GRPC specifies a GRPC HealthCheckRequest.\n                                  properties:\n                                    port:\n                                      description: Port number of the gRPC service.\n                                        Number must be in the range 1 to 65535.\n                                      format: int32\n                                      type: integer\n                                    service:\n                                      default: \"\"\n                                      description: |-\n                                        Service is the name of the service to place in the gRPC HealthCheckRequest\n                                        (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\n\n                                        If this is not specified, the default behavior is defined by gRPC.\n                                      type: string\n                                  required:\n                                  - port\n                                  type: object\n                                httpGet:\n                                  description: HTTPGet specifies an HTTP GET request\n                                    to perform.\n                                  properties:\n                                    host:\n                                      description: |-\n                                        Host name to connect to, defaults to the pod IP. You probably want to set\n                                        \"Host\" in httpHeaders instead.\n                                      type: string\n                                    httpHeaders:\n                                      description: Custom headers to set in the request.\n                                        HTTP allows repeated headers.\n                                      items:\n                                        description: HTTPHeader describes a custom\n                                          header to be used in HTTP probes\n                                        properties:\n                                          name:\n                                            description: |-\n                                              The header field name.\n                                              This will be canonicalized upon output, so case-variant names will be understood as the same header.\n                                            type: string\n                                          value:\n                                            description: The header field value\n                                            type: string\n                                        required:\n                                        - name\n                                        - value\n                                        type: object\n                                      type: array\n                                      x-kubernetes-list-type: atomic\n                                    path:\n                                      description: Path to access on the HTTP server.\n                                      type: string\n                                    port:\n                                      anyOf:\n                                      - type: integer\n                                      - type: string\n                                      description: |-\n                                        Name or number of the port to access on the container.\n                                        Number must be in the range 1 to 65535.\n                                        Name must be an IANA_SVC_NAME.\n                                      x-kubernetes-int-or-string: true\n                                    scheme:\n                                      description: |-\n                                        Scheme to use for connecting to the host.\n                                        Defaults to HTTP.\n                                      type: string\n                                  required:\n                                  - port\n                                  type: object\n                                initialDelaySeconds:\n                                  description: |-\n                                    Number of seconds after the container has started before liveness probes are initiated.\n                                    More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes\n                                  format: int32\n                                  type: integer\n                                periodSeconds:\n                                  description: |-\n                                    How often (in seconds) to perform the probe.\n                                    Default to 10 seconds. Minimum value is 1.\n                                  format: int32\n                                  type: integer\n                                successThreshold:\n                                  description: |-\n                                    Minimum consecutive successes for the probe to be considered successful after having failed.\n                                    Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.\n                                  format: int32\n                                  type: integer\n                                tcpSocket:\n                                  description: TCPSocket specifies a connection to\n                                    a TCP port.\n                                  properties:\n                                    host:\n                                      description: 'Optional: Host name to connect\n                                        to, defaults to the pod IP.'\n                                      type: string\n                                    port:\n                                      anyOf:\n                                      - type: integer\n                                      - type: string\n                                      description: |-\n                                        Number or name of the port to access on the container.\n                                        Number must be in the range 1 to 65535.\n                                        Name must be an IANA_SVC_NAME.\n                                      x-kubernetes-int-or-string: true\n                                  required:\n                                  - port\n                                  type: object\n                                terminationGracePeriodSeconds:\n                                  description: |-\n                                    Optional duration in seconds the pod needs to terminate gracefully upon probe failure.\n                                    The grace period is the duration in seconds after the processes running in the pod are sent\n                                    a termination signal and the time when the processes are forcibly halted with a kill signal.\n                                    Set this value longer than the expected cleanup time for your process.\n                                    If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this\n                                    value overrides the value provided by the pod spec.\n                                    Value must be non-negative integer. The value zero indicates stop immediately via\n                                    the kill signal (no opportunity to shut down).\n                                    This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.\n                                    Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.\n                                  format: int64\n                                  type: integer\n                                timeoutSeconds:\n                                  description: |-\n                                    Number of seconds after which the probe times out.\n                                    Defaults to 1 second. Minimum value is 1.\n                                    More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes\n                                  format: int32\n                                  type: integer\n                              type: object\n                            name:\n                              description: |-\n                                Name of the ephemeral container specified as a DNS_LABEL.\n                                This name must be unique among all containers, init containers and ephemeral containers.\n                              type: string\n                            ports:\n                              description: Ports are not allowed for ephemeral containers.\n                              items:\n                                description: ContainerPort represents a network port\n                                  in a single container.\n                                properties:\n                                  containerPort:\n                                    description: |-\n                                      Number of port to expose on the pod's IP address.\n                                      This must be a valid port number, 0 < x < 65536.\n                                    format: int32\n                                    type: integer\n                                  hostIP:\n                                    description: What host IP to bind the external\n                                      port to.\n                                    type: string\n                                  hostPort:\n                                    description: |-\n                                      Number of port to expose on the host.\n                                      If specified, this must be a valid port number, 0 < x < 65536.\n                                      If HostNetwork is specified, this must match ContainerPort.\n                                      Most containers do not need this.\n                                    format: int32\n                                    type: integer\n                                  name:\n                                    description: |-\n                                      If specified, this must be an IANA_SVC_NAME and unique within the pod. Each\n                                      named port in a pod must have a unique name. Name for the port that can be\n                                      referred to by services.\n                                    type: string\n                                  protocol:\n                                    default: TCP\n                                    description: |-\n                                      Protocol for port. Must be UDP, TCP, or SCTP.\n                                      Defaults to \"TCP\".\n                                    type: string\n                                required:\n                                - containerPort\n                                type: object\n                              type: array\n                              x-kubernetes-list-map-keys:\n                              - containerPort\n                              - protocol\n                              x-kubernetes-list-type: map\n                            readinessProbe:\n                              description: Probes are not allowed for ephemeral containers.\n                              properties:\n                                exec:\n                                  description: Exec specifies a command to execute\n                                    in the container.\n                                  properties:\n                                    command:\n                                      description: |-\n                                        Command is the command line to execute inside the container, the working directory for the\n                                        command  is root ('/') in the container's filesystem. The command is simply exec'd, it is\n                                        not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\n                                        a shell, you need to explicitly call out to that shell.\n                                        Exit status of 0 is treated as live/healthy and non-zero is unhealthy.\n                                      items:\n                                        type: string\n                                      type: array\n                                      x-kubernetes-list-type: atomic\n                                  type: object\n                                failureThreshold:\n                                  description: |-\n                                    Minimum consecutive failures for the probe to be considered failed after having succeeded.\n                                    Defaults to 3. Minimum value is 1.\n                                  format: int32\n                                  type: integer\n                                grpc:\n                                  description: GRPC specifies a GRPC HealthCheckRequest.\n                                  properties:\n                                    port:\n                                      description: Port number of the gRPC service.\n                                        Number must be in the range 1 to 65535.\n                                      format: int32\n                                      type: integer\n                                    service:\n                                      default: \"\"\n                                      description: |-\n                                        Service is the name of the service to place in the gRPC HealthCheckRequest\n                                        (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\n\n                                        If this is not specified, the default behavior is defined by gRPC.\n                                      type: string\n                                  required:\n                                  - port\n                                  type: object\n                                httpGet:\n                                  description: HTTPGet specifies an HTTP GET request\n                                    to perform.\n                                  properties:\n                                    host:\n                                      description: |-\n                                        Host name to connect to, defaults to the pod IP. You probably want to set\n                                        \"Host\" in httpHeaders instead.\n                                      type: string\n                                    httpHeaders:\n                                      description: Custom headers to set in the request.\n                                        HTTP allows repeated headers.\n                                      items:\n                                        description: HTTPHeader describes a custom\n                                          header to be used in HTTP probes\n                                        properties:\n                                          name:\n                                            description: |-\n                                              The header field name.\n                                              This will be canonicalized upon output, so case-variant names will be understood as the same header.\n                                            type: string\n                                          value:\n                                            description: The header field value\n                                            type: string\n                                        required:\n                                        - name\n                                        - value\n                                        type: object\n                                      type: array\n                                      x-kubernetes-list-type: atomic\n                                    path:\n                                      description: Path to access on the HTTP server.\n                                      type: string\n                                    port:\n                                      anyOf:\n                                      - type: integer\n                                      - type: string\n                                      description: |-\n                                        Name or number of the port to access on the container.\n                                        Number must be in the range 1 to 65535.\n                                        Name must be an IANA_SVC_NAME.\n                                      x-kubernetes-int-or-string: true\n                                    scheme:\n                                      description: |-\n                                        Scheme to use for connecting to the host.\n                                        Defaults to HTTP.\n                                      type: string\n                                  required:\n                                  - port\n                                  type: object\n                                initialDelaySeconds:\n                                  description: |-\n                                    Number of seconds after the container has started before liveness probes are initiated.\n                                    More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes\n                                  format: int32\n                                  type: integer\n                                periodSeconds:\n                                  description: |-\n                                    How often (in seconds) to perform the probe.\n                                    Default to 10 seconds. Minimum value is 1.\n                                  format: int32\n                                  type: integer\n                                successThreshold:\n                                  description: |-\n                                    Minimum consecutive successes for the probe to be considered successful after having failed.\n                                    Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.\n                                  format: int32\n                                  type: integer\n                                tcpSocket:\n                                  description: TCPSocket specifies a connection to\n                                    a TCP port.\n                                  properties:\n                                    host:\n                                      description: 'Optional: Host name to connect\n                                        to, defaults to the pod IP.'\n                                      type: string\n                                    port:\n                                      anyOf:\n                                      - type: integer\n                                      - type: string\n                                      description: |-\n                                        Number or name of the port to access on the container.\n                                        Number must be in the range 1 to 65535.\n                                        Name must be an IANA_SVC_NAME.\n                                      x-kubernetes-int-or-string: true\n                                  required:\n                                  - port\n                                  type: object\n                                terminationGracePeriodSeconds:\n                                  description: |-\n                                    Optional duration in seconds the pod needs to terminate gracefully upon probe failure.\n                                    The grace period is the duration in seconds after the processes running in the pod are sent\n                                    a termination signal and the time when the processes are forcibly halted with a kill signal.\n                                    Set this value longer than the expected cleanup time for your process.\n                                    If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this\n                                    value overrides the value provided by the pod spec.\n                                    Value must be non-negative integer. The value zero indicates stop immediately via\n                                    the kill signal (no opportunity to shut down).\n                                    This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.\n                                    Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.\n                                  format: int64\n                                  type: integer\n                                timeoutSeconds:\n                                  description: |-\n                                    Number of seconds after which the probe times out.\n                                    Defaults to 1 second. Minimum value is 1.\n                                    More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes\n                                  format: int32\n                                  type: integer\n                              type: object\n                            resizePolicy:\n                              description: Resources resize policy for the container.\n                              items:\n                                description: ContainerResizePolicy represents resource\n                                  resize policy for the container.\n                                properties:\n                                  resourceName:\n                                    description: |-\n                                      Name of the resource to which this resource resize policy applies.\n                                      Supported values: cpu, memory.\n                                    type: string\n                                  restartPolicy:\n                                    description: |-\n                                      Restart policy to apply when specified resource is resized.\n                                      If not specified, it defaults to NotRequired.\n                                    type: string\n                                required:\n                                - resourceName\n                                - restartPolicy\n                                type: object\n                              type: array\n                              x-kubernetes-list-type: atomic\n                            resources:\n                              description: |-\n                                Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources\n                                already allocated to the pod.\n                              properties:\n                                claims:\n                                  description: |-\n                                    Claims lists the names of resources, defined in spec.resourceClaims,\n                                    that are used by this container.\n\n                                    This field depends on the\n                                    DynamicResourceAllocation feature gate.\n\n                                    This field is immutable. It can only be set for containers.\n                                  items:\n                                    description: ResourceClaim references one entry\n                                      in PodSpec.ResourceClaims.\n                                    properties:\n                                      name:\n                                        description: |-\n                                          Name must match the name of one entry in pod.spec.resourceClaims of\n                                          the Pod where this field is used. It makes that resource available\n                                          inside a container.\n                                        type: string\n                                      request:\n                                        description: |-\n                                          Request is the name chosen for a request in the referenced claim.\n                                          If empty, everything from the claim is made available, otherwise\n                                          only the result of this request.\n                                        type: string\n                                    required:\n                                    - name\n                                    type: object\n                                  type: array\n                                  x-kubernetes-list-map-keys:\n                                  - name\n                                  x-kubernetes-list-type: map\n                                limits:\n                                  additionalProperties:\n                                    anyOf:\n                                    - type: integer\n                                    - type: string\n                                    pattern: ^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$\n                                    x-kubernetes-int-or-string: true\n                                  description: |-\n                                    Limits describes the maximum amount of compute resources allowed.\n                                    More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/\n                                  type: object\n                                requests:\n                                  additionalProperties:\n                                    anyOf:\n                                    - type: integer\n                                    - type: string\n                                    pattern: ^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$\n                                    x-kubernetes-int-or-string: true\n                                  description: |-\n                                    Requests describes the minimum amount of compute resources required.\n                                    If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,\n                                    otherwise to an implementation-defined value. Requests cannot exceed Limits.\n                                    More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/\n                                  type: object\n                              type: object\n                            restartPolicy:\n                              description: |-\n                                Restart policy for the container to manage the restart behavior of each\n                                container within a pod.\n                                You cannot set this field on ephemeral containers.\n                              type: string\n                            restartPolicyRules:\n                              description: |-\n                                Represents a list of rules to be checked to determine if the\n                                container should be restarted on exit. You cannot set this field on\n                                ephemeral containers.\n                              items:\n                                description: ContainerRestartRule describes how a\n                                  container exit is handled.\n                                properties:\n                                  action:\n                                    description: |-\n                                      Specifies the action taken on a container exit if the requirements\n                                      are satisfied. The only possible value is \"Restart\" to restart the\n                                      container.\n                                    type: string\n                                  exitCodes:\n                                    description: Represents the exit codes to check\n                                      on container exits.\n                                    properties:\n                                      operator:\n                                        description: |-\n                                          Represents the relationship between the container exit code(s) and the\n                                          specified values. Possible values are:\n                                          - In: the requirement is satisfied if the container exit code is in the\n                                            set of specified values.\n                                          - NotIn: the requirement is satisfied if the container exit code is\n                                            not in the set of specified values.\n                                        type: string\n                                      values:\n                                        description: |-\n                                          Specifies the set of values to check for container exit codes.\n                                          At most 255 elements are allowed.\n                                        items:\n                                          format: int32\n                                          type: integer\n                                        type: array\n                                        x-kubernetes-list-type: set\n                                    required:\n                                    - operator\n                                    type: object\n                                required:\n                                - action\n                                type: object\n                              type: array\n                              x-kubernetes-list-type: atomic\n                            securityContext:\n                              description: |-\n                                Optional: SecurityContext defines the security options the ephemeral container should be run with.\n                                If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.\n                              properties:\n                                allowPrivilegeEscalation:\n                                  description: |-\n                                    AllowPrivilegeEscalation controls whether a process can gain more\n                                    privileges than its parent process. This bool directly controls if\n                                    the no_new_privs flag will be set on the container process.\n                                    AllowPrivilegeEscalation is true always when the container is:\n                                    1) run as Privileged\n                                    2) has CAP_SYS_ADMIN\n                                    Note that this field cannot be set when spec.os.name is windows.\n                                  type: boolean\n                                appArmorProfile:\n                                  description: |-\n                                    appArmorProfile is the AppArmor options to use by this container. If set, this profile\n                                    overrides the pod's appArmorProfile.\n                                    Note that this field cannot be set when spec.os.name is windows.\n                                  properties:\n                                    localhostProfile:\n                                      description: |-\n                                        localhostProfile indicates a profile loaded on the node that should be used.\n                                        The profile must be preconfigured on the node to work.\n                                        Must match the loaded name of the profile.\n                                        Must be set if and only if type is \"Localhost\".\n                                      type: string\n                                    type:\n                                      description: |-\n                                        type indicates which kind of AppArmor profile will be applied.\n                                        Valid options are:\n                                          Localhost - a profile pre-loaded on the node.\n                                          RuntimeDefault - the container runtime's default profile.\n                                          Unconfined - no AppArmor enforcement.\n                                      type: string\n                                  required:\n                                  - type\n                                  type: object\n                                capabilities:\n                                  description: |-\n                                    The capabilities to add/drop when running containers.\n                                    Defaults to the default set of capabilities granted by the container runtime.\n                                    Note that this field cannot be set when spec.os.name is windows.\n                                  properties:\n                                    add:\n                                      description: Added capabilities\n                                      items:\n                                        description: Capability represent POSIX capabilities\n                                          type\n                                        type: string\n                                      type: array\n                                      x-kubernetes-list-type: atomic\n                                    drop:\n                                      description: Removed capabilities\n                                      items:\n                                        description: Capability represent POSIX capabilities\n                                          type\n                                        type: string\n                                      type: array\n                                      x-kubernetes-list-type: atomic\n                                  type: object\n                                privileged:\n                                  description: |-\n                                    Run container in privileged mode.\n                                    Processes in privileged containers are essentially equivalent to root on the host.\n                                    Defaults to false.\n                                    Note that this field cannot be set when spec.os.name is windows.\n                                  type: boolean\n                                procMount:\n                                  description: |-\n                                    procMount denotes the type of proc mount to use for the containers.\n                                    The default value is Default which uses the container runtime defaults for\n                                    readonly paths and masked paths.\n                                    This requires the ProcMountType feature flag to be enabled.\n                                    Note that this field cannot be set when spec.os.name is windows.\n                                  type: string\n                                readOnlyRootFilesystem:\n                                  description: |-\n                                    Whether this container has a read-only root filesystem.\n                                    Default is false.\n                                    Note that this field cannot be set when spec.os.name is windows.\n                                  type: boolean\n                                runAsGroup:\n                                  description: |-\n                                    The GID to run the entrypoint of the container process.\n                                    Uses runtime default if unset.\n                                    May also be set in PodSecurityContext.  If set in both SecurityContext and\n                                    PodSecurityContext, the value specified in SecurityContext takes precedence.\n                                    Note that this field cannot be set when spec.os.name is windows.\n                                  format: int64\n                                  type: integer\n                                runAsNonRoot:\n                                  description: |-\n                                    Indicates that the container must run as a non-root user.\n                                    If true, the Kubelet will validate the image at runtime to ensure that it\n                                    does not run as UID 0 (root) and fail to start the container if it does.\n                                    If unset or false, no such validation will be performed.\n                                    May also be set in PodSecurityContext.  If set in both SecurityContext and\n                                    PodSecurityContext, the value specified in SecurityContext takes precedence.\n                                  type: boolean\n                                runAsUser:\n                                  description: |-\n                                    The UID to run the entrypoint of the container process.\n                                    Defaults to user specified in image metadata if unspecified.\n                                    May also be set in PodSecurityContext.  If set in both SecurityContext and\n                                    PodSecurityContext, the value specified in SecurityContext takes precedence.\n                                    Note that this field cannot be set when spec.os.name is windows.\n                                  format: int64\n                                  type: integer\n                                seLinuxOptions:\n                                  description: |-\n                                    The SELinux context to be applied to the container.\n                                    If unspecified, the container runtime will allocate a random SELinux context for each\n                                    container.  May also be set in PodSecurityContext.  If set in both SecurityContext and\n                                    PodSecurityContext, the value specified in SecurityContext takes precedence.\n                                    Note that this field cannot be set when spec.os.name is windows.\n                                  properties:\n                                    level:\n                                      description: Level is SELinux level label that\n                                        applies to the container.\n                                      type: string\n                                    role:\n                                      description: Role is a SELinux role label that\n                                        applies to the container.\n                                      type: string\n                                    type:\n                                      description: Type is a SELinux type label that\n                                        applies to the container.\n                                      type: string\n                                    user:\n                                      description: User is a SELinux user label that\n                                        applies to the container.\n                                      type: string\n                                  type: object\n                                seccompProfile:\n                                  description: |-\n                                    The seccomp options to use by this container. If seccomp options are\n                                    provided at both the pod & container level, the container options\n                                    override the pod options.\n                                    Note that this field cannot be set when spec.os.name is windows.\n                                  properties:\n                                    localhostProfile:\n                                      description: |-\n                                        localhostProfile indicates a profile defined in a file on the node should be used.\n                                        The profile must be preconfigured on the node to work.\n                                        Must be a descending path, relative to the kubelet's configured seccomp profile location.\n                                        Must be set if type is \"Localhost\". Must NOT be set for any other type.\n                                      type: string\n                                    type:\n                                      description: |-\n                                        type indicates which kind of seccomp profile will be applied.\n                                        Valid options are:\n\n                                        Localhost - a profile defined in a file on the node should be used.\n                                        RuntimeDefault - the container runtime default profile should be used.\n                                        Unconfined - no profile should be applied.\n                                      type: string\n                                  required:\n                                  - type\n                                  type: object\n                                windowsOptions:\n                                  description: |-\n                                    The Windows specific settings applied to all containers.\n                                    If unspecified, the options from the PodSecurityContext will be used.\n                                    If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.\n                                    Note that this field cannot be set when spec.os.name is linux.\n                                  properties:\n                                    gmsaCredentialSpec:\n                                      description: |-\n                                        GMSACredentialSpec is where the GMSA admission webhook\n                                        (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the\n                                        GMSA credential spec named by the GMSACredentialSpecName field.\n                                      type: string\n                                    gmsaCredentialSpecName:\n                                      description: GMSACredentialSpecName is the name\n                                        of the GMSA credential spec to use.\n                                      type: string\n                                    hostProcess:\n                                      description: |-\n                                        HostProcess determines if a container should be run as a 'Host Process' container.\n                                        All of a Pod's containers must have the same effective HostProcess value\n                                        (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers).\n                                        In addition, if HostProcess is true then HostNetwork must also be set to true.\n                                      type: boolean\n                                    runAsUserName:\n                                      description: |-\n                                        The UserName in Windows to run the entrypoint of the container process.\n                                        Defaults to the user specified in image metadata if unspecified.\n                                        May also be set in PodSecurityContext. If set in both SecurityContext and\n                                        PodSecurityContext, the value specified in SecurityContext takes precedence.\n                                      type: string\n                                  type: object\n                              type: object\n                            startupProbe:\n                              description: Probes are not allowed for ephemeral containers.\n                              properties:\n                                exec:\n                                  description: Exec specifies a command to execute\n                                    in the container.\n                                  properties:\n                                    command:\n                                      description: |-\n                                        Command is the command line to execute inside the container, the working directory for the\n                                        command  is root ('/') in the container's filesystem. The command is simply exec'd, it is\n                                        not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\n                                        a shell, you need to explicitly call out to that shell.\n                                        Exit status of 0 is treated as live/healthy and non-zero is unhealthy.\n                                      items:\n                                        type: string\n                                      type: array\n                                      x-kubernetes-list-type: atomic\n                                  type: object\n                                failureThreshold:\n                                  description: |-\n                                    Minimum consecutive failures for the probe to be considered failed after having succeeded.\n                                    Defaults to 3. Minimum value is 1.\n                                  format: int32\n                                  type: integer\n                                grpc:\n                                  description: GRPC specifies a GRPC HealthCheckRequest.\n                                  properties:\n                                    port:\n                                      description: Port number of the gRPC service.\n                                        Number must be in the range 1 to 65535.\n                                      format: int32\n                                      type: integer\n                                    service:\n                                      default: \"\"\n                                      description: |-\n                                        Service is the name of the service to place in the gRPC HealthCheckRequest\n                                        (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\n\n                                        If this is not specified, the default behavior is defined by gRPC.\n                                      type: string\n                                  required:\n                                  - port\n                                  type: object\n                                httpGet:\n                                  description: HTTPGet specifies an HTTP GET request\n                                    to perform.\n                                  properties:\n                                    host:\n                                      description: |-\n                                        Host name to connect to, defaults to the pod IP. You probably want to set\n                                        \"Host\" in httpHeaders instead.\n                                      type: string\n                                    httpHeaders:\n                                      description: Custom headers to set in the request.\n                                        HTTP allows repeated headers.\n                                      items:\n                                        description: HTTPHeader describes a custom\n                                          header to be used in HTTP probes\n                                        properties:\n                                          name:\n                                            description: |-\n                                              The header field name.\n                                              This will be canonicalized upon output, so case-variant names will be understood as the same header.\n                                            type: string\n                                          value:\n                                            description: The header field value\n                                            type: string\n                                        required:\n                                        - name\n                                        - value\n                                        type: object\n                                      type: array\n                                      x-kubernetes-list-type: atomic\n                                    path:\n                                      description: Path to access on the HTTP server.\n                                      type: string\n                                    port:\n                                      anyOf:\n                                      - type: integer\n                                      - type: string\n                                      description: |-\n                                        Name or number of the port to access on the container.\n                                        Number must be in the range 1 to 65535.\n                                        Name must be an IANA_SVC_NAME.\n                                      x-kubernetes-int-or-string: true\n                                    scheme:\n                                      description: |-\n                                        Scheme to use for connecting to the host.\n                                        Defaults to HTTP.\n                                      type: string\n                                  required:\n                                  - port\n                                  type: object\n                                initialDelaySeconds:\n                                  description: |-\n                                    Number of seconds after the container has started before liveness probes are initiated.\n                                    More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes\n                                  format: int32\n                                  type: integer\n                                periodSeconds:\n                                  description: |-\n                                    How often (in seconds) to perform the probe.\n                                    Default to 10 seconds. Minimum value is 1.\n                                  format: int32\n                                  type: integer\n                                successThreshold:\n                                  description: |-\n                                    Minimum consecutive successes for the probe to be considered successful after having failed.\n                                    Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.\n                                  format: int32\n                                  type: integer\n                                tcpSocket:\n                                  description: TCPSocket specifies a connection to\n                                    a TCP port.\n                                  properties:\n                                    host:\n                                      description: 'Optional: Host name to connect\n                                        to, defaults to the pod IP.'\n                                      type: string\n                                    port:\n                                      anyOf:\n                                      - type: integer\n                                      - type: string\n                                      description: |-\n                                        Number or name of the port to access on the container.\n                                        Number must be in the range 1 to 65535.\n                                        Name must be an IANA_SVC_NAME.\n                                      x-kubernetes-int-or-string: true\n                                  required:\n                                  - port\n                                  type: object\n                                terminationGracePeriodSeconds:\n                                  description: |-\n                                    Optional duration in seconds the pod needs to terminate gracefully upon probe failure.\n                                    The grace period is the duration in seconds after the processes running in the pod are sent\n                                    a termination signal and the time when the processes are forcibly halted with a kill signal.\n                                    Set this value longer than the expected cleanup time for your process.\n                                    If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this\n                                    value overrides the value provided by the pod spec.\n                                    Value must be non-negative integer. The value zero indicates stop immediately via\n                                    the kill signal (no opportunity to shut down).\n                                    This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.\n                                    Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.\n                                  format: int64\n                                  type: integer\n                                timeoutSeconds:\n                                  description: |-\n                                    Number of seconds after which the probe times out.\n                                    Defaults to 1 second. Minimum value is 1.\n                                    More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes\n                                  format: int32\n                                  type: integer\n                              type: object\n                            stdin:\n                              description: |-\n                                Whether this container should allocate a buffer for stdin in the container runtime. If this\n                                is not set, reads from stdin in the container will always result in EOF.\n                                Default is false.\n                              type: boolean\n                            stdinOnce:\n                              description: |-\n                                Whether the container runtime should close the stdin channel after it has been opened by\n                                a single attach. When stdin is true the stdin stream will remain open across multiple attach\n                                sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the\n                                first client attaches to stdin, and then remains open and accepts data until the client disconnects,\n                                at which time stdin is closed and remains closed until the container is restarted. If this\n                                flag is false, a container processes that reads from stdin will never receive an EOF.\n                                Default is false\n                              type: boolean\n                            targetContainerName:\n                              description: |-\n                                If set, the name of the container from PodSpec that this ephemeral container targets.\n                                The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container.\n                                If not set then the ephemeral container uses the namespaces configured in the Pod spec.\n\n                                The container runtime must implement support for this feature. If the runtime does not\n                                support namespace targeting then the result of setting this field is undefined.\n                              type: string\n                            terminationMessagePath:\n                              description: |-\n                                Optional: Path at which the file to which the container's termination message\n                                will be written is mounted into the container's filesystem.\n                                Message written is intended to be brief final status, such as an assertion failure message.\n                                Will be truncated by the node if greater than 4096 bytes. The total message length across\n                                all containers will be limited to 12kb.\n                                Defaults to /dev/termination-log.\n                                Cannot be updated.\n                              type: string\n                            terminationMessagePolicy:\n                              description: |-\n                                Indicate how the termination message should be populated. File will use the contents of\n                                terminationMessagePath to populate the container status message on both success and failure.\n                                FallbackToLogsOnError will use the last chunk of container log output if the termination\n                                message file is empty and the container exited with an error.\n                                The log output is limited to 2048 bytes or 80 lines, whichever is smaller.\n                                Defaults to File.\n                                Cannot be updated.\n                              type: string\n                            tty:\n                              description: |-\n                                Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.\n                                Default is false.\n                              type: boolean\n                            volumeDevices:\n                              description: volumeDevices is the list of block devices\n                                to be used by the container.\n                              items:\n                                description: volumeDevice describes a mapping of a\n                                  raw block device within a container.\n                                properties:\n                                  devicePath:\n                                    description: devicePath is the path inside of\n                                      the container that the device will be mapped\n                                      to.\n                                    type: string\n                                  name:\n                                    description: name must match the name of a persistentVolumeClaim\n                                      in the pod\n                                    type: string\n                                required:\n                                - devicePath\n                                - name\n                                type: object\n                              type: array\n                              x-kubernetes-list-map-keys:\n                              - devicePath\n                              x-kubernetes-list-type: map\n                            volumeMounts:\n                              description: |-\n                                Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers.\n                                Cannot be updated.\n                              items:\n                                description: VolumeMount describes a mounting of a\n                                  Volume within a container.\n                                properties:\n                                  mountPath:\n                                    description: |-\n                                      Path within the container at which the volume should be mounted.  Must\n                                      not contain ':'.\n                                    type: string\n                                  mountPropagation:\n                                    description: |-\n                                      mountPropagation determines how mounts are propagated from the host\n                                      to container and the other way around.\n                                      When not set, MountPropagationNone is used.\n                                      This field is beta in 1.10.\n                                      When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified\n                                      (which defaults to None).\n                                    type: string\n                                  name:\n                                    description: This must match the Name of a Volume.\n                                    type: string\n                                  readOnly:\n                                    description: |-\n                                      Mounted read-only if true, read-write otherwise (false or unspecified).\n                                      Defaults to false.\n                                    type: boolean\n                                  recursiveReadOnly:\n                                    description: |-\n                                      RecursiveReadOnly specifies whether read-only mounts should be handled\n                                      recursively.\n\n                                      If ReadOnly is false, this field has no meaning and must be unspecified.\n\n                                      If ReadOnly is true, and this field is set to Disabled, the mount is not made\n                                      recursively read-only.  If this field is set to IfPossible, the mount is made\n                                      recursively read-only, if it is supported by the container runtime.  If this\n                                      field is set to Enabled, the mount is made recursively read-only if it is\n                                      supported by the container runtime, otherwise the pod will not be started and\n                                      an error will be generated to indicate the reason.\n\n                                      If this field is set to IfPossible or Enabled, MountPropagation must be set to\n                                      None (or be unspecified, which defaults to None).\n\n                                      If this field is not specified, it is treated as an equivalent of Disabled.\n                                    type: string\n                                  subPath:\n                                    description: |-\n                                      Path within the volume from which the container's volume should be mounted.\n                                      Defaults to \"\" (volume's root).\n                                    type: string\n                                  subPathExpr:\n                                    description: |-\n                                      Expanded path within the volume from which the container's volume should be mounted.\n                                      Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.\n                                      Defaults to \"\" (volume's root).\n                                      SubPathExpr and SubPath are mutually exclusive.\n                                    type: string\n                                required:\n                                - mountPath\n                                - name\n                                type: object\n                              type: array\n                              x-kubernetes-list-map-keys:\n                              - mountPath\n                              x-kubernetes-list-type: map\n                            workingDir:\n                              description: |-\n                                Container's working directory.\n                                If not specified, the container runtime's default will be used, which\n                                might be configured in the container image.\n                                Cannot be updated.\n                              type: string\n                          required:\n                          - name\n                          type: object\n                        type: array\n                        x-kubernetes-list-map-keys:\n                        - name\n                        x-kubernetes-list-type: map\n                      hostAliases:\n                        description: |-\n                          HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts\n                          file if specified.\n                        items:\n                          description: |-\n                            HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the\n                            pod's hosts file.\n                          properties:\n                            hostnames:\n                              description: Hostnames for the above IP address.\n                              items:\n                                type: string\n                              type: array\n                              x-kubernetes-list-type: atomic\n                            ip:\n                              description: IP address of the host file entry.\n                              type: string\n                          required:\n                          - ip\n                          type: object\n                        type: array\n                        x-kubernetes-list-map-keys:\n                        - ip\n                        x-kubernetes-list-type: map\n                      hostIPC:\n                        description: |-\n                          Use the host's ipc namespace.\n                          Optional: Default to false.\n                        type: boolean\n                      hostNetwork:\n                        description: |-\n                          Host networking requested for this pod. Use the host's network namespace.\n                          When using HostNetwork you should specify ports so the scheduler is aware.\n                          When `hostNetwork` is true, specified `hostPort` fields in port definitions must match `containerPort`,\n                          and unspecified `hostPort` fields in port definitions are defaulted to match `containerPort`.\n                          Default to false.\n                        type: boolean\n                      hostPID:\n                        description: |-\n                          Use the host's pid namespace.\n                          Optional: Default to false.\n                        type: boolean\n                      hostUsers:\n                        description: |-\n                          Use the host's user namespace.\n                          Optional: Default to true.\n                          If set to true or not present, the pod will be run in the host user namespace, useful\n                          for when the pod needs a feature only available to the host user namespace, such as\n                          loading a kernel module with CAP_SYS_MODULE.\n                          When set to false, a new userns is created for the pod. Setting false is useful for\n                          mitigating container breakout vulnerabilities even allowing users to run their\n                          containers as root without actually having root privileges on the host.\n                          This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.\n                        type: boolean\n                      hostname:\n                        description: |-\n                          Specifies the hostname of the Pod\n                          If not specified, the pod's hostname will be set to a system-defined value.\n                        type: string\n                      hostnameOverride:\n                        description: |-\n                          HostnameOverride specifies an explicit override for the pod's hostname as perceived by the pod.\n                          This field only specifies the pod's hostname and does not affect its DNS records.\n                          When this field is set to a non-empty string:\n                          - It takes precedence over the values set in `hostname` and `subdomain`.\n                          - The Pod's hostname will be set to this value.\n                          - `setHostnameAsFQDN` must be nil or set to false.\n                          - `hostNetwork` must be set to false.\n\n                          This field must be a valid DNS subdomain as defined in RFC 1123 and contain at most 64 characters.\n                          Requires the HostnameOverride feature gate to be enabled.\n                        type: string\n                      imagePullSecrets:\n                        description: |-\n                          ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec.\n                          If specified, these secrets will be passed to individual puller implementations for them to use.\n                          More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod\n                        items:\n                          description: |-\n                            LocalObjectReference contains enough information to let you locate the\n                            referenced object inside the same namespace.\n                          properties:\n                            name:\n                              default: \"\"\n                              description: |-\n                                Name of the referent.\n                                This field is effectively required, but due to backwards compatibility is\n                                allowed to be empty. Instances of this type with an empty value here are\n                                almost certainly wrong.\n                                More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\n                              type: string\n                          type: object\n                          x-kubernetes-map-type: atomic\n                        type: array\n                        x-kubernetes-list-map-keys:\n                        - name\n                        x-kubernetes-list-type: map\n                      initContainers:\n                        description: |-\n                          List of initialization containers belonging to the pod.\n                          Init containers are executed in order prior to containers being started. If any\n                          init container fails, the pod is considered to have failed and is handled according\n                          to its restartPolicy. The name for an init container or normal container must be\n                          unique among all containers.\n                          Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.\n                          The resourceRequirements of an init container are taken into account during scheduling\n                          by finding the highest request/limit for each resource type, and then using the max of\n                          that value or the sum of the normal containers. Limits are applied to init containers\n                          in a similar fashion.\n                          Init containers cannot currently be added or removed.\n                          Cannot be updated.\n                          More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/\n                        items:\n                          description: A single application container that you want\n                            to run within a pod.\n                          properties:\n                            args:\n                              description: |-\n                                Arguments to the entrypoint.\n                                The container image's CMD is used if this is not provided.\n                                Variable references $(VAR_NAME) are expanded using the container's environment. If a variable\n                                cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced\n                                to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will\n                                produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless\n                                of whether the variable exists or not. Cannot be updated.\n                                More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell\n                              items:\n                                type: string\n                              type: array\n                              x-kubernetes-list-type: atomic\n                            command:\n                              description: |-\n                                Entrypoint array. Not executed within a shell.\n                                The container image's ENTRYPOINT is used if this is not provided.\n                                Variable references $(VAR_NAME) are expanded using the container's environment. If a variable\n                                cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced\n                                to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will\n                                produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless\n                                of whether the variable exists or not. Cannot be updated.\n                                More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell\n                              items:\n                                type: string\n                              type: array\n                              x-kubernetes-list-type: atomic\n                            env:\n                              description: |-\n                                List of environment variables to set in the container.\n                                Cannot be updated.\n                              items:\n                                description: EnvVar represents an environment variable\n                                  present in a Container.\n                                properties:\n                                  name:\n                                    description: |-\n                                      Name of the environment variable.\n                                      May consist of any printable ASCII characters except '='.\n                                    type: string\n                                  value:\n                                    description: |-\n                                      Variable references $(VAR_NAME) are expanded\n                                      using the previously defined environment variables in the container and\n                                      any service environment variables. If a variable cannot be resolved,\n                                      the reference in the input string will be unchanged. Double $$ are reduced\n                                      to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.\n                                      \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\".\n                                      Escaped references will never be expanded, regardless of whether the variable\n                                      exists or not.\n                                      Defaults to \"\".\n                                    type: string\n                                  valueFrom:\n                                    description: Source for the environment variable's\n                                      value. Cannot be used if value is not empty.\n                                    properties:\n                                      configMapKeyRef:\n                                        description: Selects a key of a ConfigMap.\n                                        properties:\n                                          key:\n                                            description: The key to select.\n                                            type: string\n                                          name:\n                                            default: \"\"\n                                            description: |-\n                                              Name of the referent.\n                                              This field is effectively required, but due to backwards compatibility is\n                                              allowed to be empty. Instances of this type with an empty value here are\n                                              almost certainly wrong.\n                                              More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\n                                            type: string\n                                          optional:\n                                            description: Specify whether the ConfigMap\n                                              or its key must be defined\n                                            type: boolean\n                                        required:\n                                        - key\n                                        type: object\n                                        x-kubernetes-map-type: atomic\n                                      fieldRef:\n                                        description: |-\n                                          Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`,\n                                          spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.\n                                        properties:\n                                          apiVersion:\n                                            description: Version of the schema the\n                                              FieldPath is written in terms of, defaults\n                                              to \"v1\".\n                                            type: string\n                                          fieldPath:\n                                            description: Path of the field to select\n                                              in the specified API version.\n                                            type: string\n                                        required:\n                                        - fieldPath\n                                        type: object\n                                        x-kubernetes-map-type: atomic\n                                      fileKeyRef:\n                                        description: |-\n                                          FileKeyRef selects a key of the env file.\n                                          Requires the EnvFiles feature gate to be enabled.\n                                        properties:\n                                          key:\n                                            description: |-\n                                              The key within the env file. An invalid key will prevent the pod from starting.\n                                              The keys defined within a source may consist of any printable ASCII characters except '='.\n                                              During Alpha stage of the EnvFiles feature gate, the key size is limited to 128 characters.\n                                            type: string\n                                          optional:\n                                            default: false\n                                            description: |-\n                                              Specify whether the file or its key must be defined. If the file or key\n                                              does not exist, then the env var is not published.\n                                              If optional is set to true and the specified key does not exist,\n                                              the environment variable will not be set in the Pod's containers.\n\n                                              If optional is set to false and the specified key does not exist,\n                                              an error will be returned during Pod creation.\n                                            type: boolean\n                                          path:\n                                            description: |-\n                                              The path within the volume from which to select the file.\n                                              Must be relative and may not contain the '..' path or start with '..'.\n                                            type: string\n                                          volumeName:\n                                            description: The name of the volume mount\n                                              containing the env file.\n                                            type: string\n                                        required:\n                                        - key\n                                        - path\n                                        - volumeName\n                                        type: object\n                                        x-kubernetes-map-type: atomic\n                                      resourceFieldRef:\n                                        description: |-\n                                          Selects a resource of the container: only resources limits and requests\n                                          (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.\n                                        properties:\n                                          containerName:\n                                            description: 'Container name: required\n                                              for volumes, optional for env vars'\n                                            type: string\n                                          divisor:\n                                            anyOf:\n                                            - type: integer\n                                            - type: string\n                                            description: Specifies the output format\n                                              of the exposed resources, defaults to\n                                              \"1\"\n                                            pattern: ^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$\n                                            x-kubernetes-int-or-string: true\n                                          resource:\n                                            description: 'Required: resource to select'\n                                            type: string\n                                        required:\n                                        - resource\n                                        type: object\n                                        x-kubernetes-map-type: atomic\n                                      secretKeyRef:\n                                        description: Selects a key of a secret in\n                                          the pod's namespace\n                                        properties:\n                                          key:\n                                            description: The key of the secret to\n                                              select from.  Must be a valid secret\n                                              key.\n                                            type: string\n                                          name:\n                                            default: \"\"\n                                            description: |-\n                                              Name of the referent.\n                                              This field is effectively required, but due to backwards compatibility is\n                                              allowed to be empty. Instances of this type with an empty value here are\n                                              almost certainly wrong.\n                                              More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\n                                            type: string\n                                          optional:\n                                            description: Specify whether the Secret\n                                              or its key must be defined\n                                            type: boolean\n                                        required:\n                                        - key\n                                        type: object\n                                        x-kubernetes-map-type: atomic\n                                    type: object\n                                required:\n                                - name\n                                type: object\n                              type: array\n                              x-kubernetes-list-map-keys:\n                              - name\n                              x-kubernetes-list-type: map\n                            envFrom:\n                              description: |-\n                                List of sources to populate environment variables in the container.\n                                The keys defined within a source may consist of any printable ASCII characters except '='.\n                                When a key exists in multiple\n                                sources, the value associated with the last source will take precedence.\n                                Values defined by an Env with a duplicate key will take precedence.\n                                Cannot be updated.\n                              items:\n                                description: EnvFromSource represents the source of\n                                  a set of ConfigMaps or Secrets\n                                properties:\n                                  configMapRef:\n                                    description: The ConfigMap to select from\n                                    properties:\n                                      name:\n                                        default: \"\"\n                                        description: |-\n                                          Name of the referent.\n                                          This field is effectively required, but due to backwards compatibility is\n                                          allowed to be empty. Instances of this type with an empty value here are\n                                          almost certainly wrong.\n                                          More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\n                                        type: string\n                                      optional:\n                                        description: Specify whether the ConfigMap\n                                          must be defined\n                                        type: boolean\n                                    type: object\n                                    x-kubernetes-map-type: atomic\n                                  prefix:\n                                    description: |-\n                                      Optional text to prepend to the name of each environment variable.\n                                      May consist of any printable ASCII characters except '='.\n                                    type: string\n                                  secretRef:\n                                    description: The Secret to select from\n                                    properties:\n                                      name:\n                                        default: \"\"\n                                        description: |-\n                                          Name of the referent.\n                                          This field is effectively required, but due to backwards compatibility is\n                                          allowed to be empty. Instances of this type with an empty value here are\n                                          almost certainly wrong.\n                                          More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\n                                        type: string\n                                      optional:\n                                        description: Specify whether the Secret must\n                                          be defined\n                                        type: boolean\n                                    type: object\n                                    x-kubernetes-map-type: atomic\n                                type: object\n                              type: array\n                              x-kubernetes-list-type: atomic\n                            image:\n                              description: |-\n                                Container image name.\n                                More info: https://kubernetes.io/docs/concepts/containers/images\n                                This field is optional to allow higher level config management to default or override\n                                container images in workload controllers like Deployments and StatefulSets.\n                              type: string\n                            imagePullPolicy:\n                              description: |-\n                                Image pull policy.\n                                One of Always, Never, IfNotPresent.\n                                Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.\n                                Cannot be updated.\n                                More info: https://kubernetes.io/docs/concepts/containers/images#updating-images\n                              type: string\n                            lifecycle:\n                              description: |-\n                                Actions that the management system should take in response to container lifecycle events.\n                                Cannot be updated.\n                              properties:\n                                postStart:\n                                  description: |-\n                                    PostStart is called immediately after a container is created. If the handler fails,\n                                    the container is terminated and restarted according to its restart policy.\n                                    Other management of the container blocks until the hook completes.\n                                    More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks\n                                  properties:\n                                    exec:\n                                      description: Exec specifies a command to execute\n                                        in the container.\n                                      properties:\n                                        command:\n                                          description: |-\n                                            Command is the command line to execute inside the container, the working directory for the\n                                            command  is root ('/') in the container's filesystem. The command is simply exec'd, it is\n                                            not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\n                                            a shell, you need to explicitly call out to that shell.\n                                            Exit status of 0 is treated as live/healthy and non-zero is unhealthy.\n                                          items:\n                                            type: string\n                                          type: array\n                                          x-kubernetes-list-type: atomic\n                                      type: object\n                                    httpGet:\n                                      description: HTTPGet specifies an HTTP GET request\n                                        to perform.\n                                      properties:\n                                        host:\n                                          description: |-\n                                            Host name to connect to, defaults to the pod IP. You probably want to set\n                                            \"Host\" in httpHeaders instead.\n                                          type: string\n                                        httpHeaders:\n                                          description: Custom headers to set in the\n                                            request. HTTP allows repeated headers.\n                                          items:\n                                            description: HTTPHeader describes a custom\n                                              header to be used in HTTP probes\n                                            properties:\n                                              name:\n                                                description: |-\n                                                  The header field name.\n                                                  This will be canonicalized upon output, so case-variant names will be understood as the same header.\n                                                type: string\n                                              value:\n                                                description: The header field value\n                                                type: string\n                                            required:\n                                            - name\n                                            - value\n                                            type: object\n                                          type: array\n                                          x-kubernetes-list-type: atomic\n                                        path:\n                                          description: Path to access on the HTTP\n                                            server.\n                                          type: string\n                                        port:\n                                          anyOf:\n                                          - type: integer\n                                          - type: string\n                                          description: |-\n                                            Name or number of the port to access on the container.\n                                            Number must be in the range 1 to 65535.\n                                            Name must be an IANA_SVC_NAME.\n                                          x-kubernetes-int-or-string: true\n                                        scheme:\n                                          description: |-\n                                            Scheme to use for connecting to the host.\n                                            Defaults to HTTP.\n                                          type: string\n                                      required:\n                                      - port\n                                      type: object\n                                    sleep:\n                                      description: Sleep represents a duration that\n                                        the container should sleep.\n                                      properties:\n                                        seconds:\n                                          description: Seconds is the number of seconds\n                                            to sleep.\n                                          format: int64\n                                          type: integer\n                                      required:\n                                      - seconds\n                                      type: object\n                                    tcpSocket:\n                                      description: |-\n                                        Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept\n                                        for backward compatibility. There is no validation of this field and\n                                        lifecycle hooks will fail at runtime when it is specified.\n                                      properties:\n                                        host:\n                                          description: 'Optional: Host name to connect\n                                            to, defaults to the pod IP.'\n                                          type: string\n                                        port:\n                                          anyOf:\n                                          - type: integer\n                                          - type: string\n                                          description: |-\n                                            Number or name of the port to access on the container.\n                                            Number must be in the range 1 to 65535.\n                                            Name must be an IANA_SVC_NAME.\n                                          x-kubernetes-int-or-string: true\n                                      required:\n                                      - port\n                                      type: object\n                                  type: object\n                                preStop:\n                                  description: |-\n                                    PreStop is called immediately before a container is terminated due to an\n                                    API request or management event such as liveness/startup probe failure,\n                                    preemption, resource contention, etc. The handler is not called if the\n                                    container crashes or exits. The Pod's termination grace period countdown begins before the\n                                    PreStop hook is executed. Regardless of the outcome of the handler, the\n                                    container will eventually terminate within the Pod's termination grace\n                                    period (unless delayed by finalizers). Other management of the container blocks until the hook completes\n                                    or until the termination grace period is reached.\n                                    More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks\n                                  properties:\n                                    exec:\n                                      description: Exec specifies a command to execute\n                                        in the container.\n                                      properties:\n                                        command:\n                                          description: |-\n                                            Command is the command line to execute inside the container, the working directory for the\n                                            command  is root ('/') in the container's filesystem. The command is simply exec'd, it is\n                                            not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\n                                            a shell, you need to explicitly call out to that shell.\n                                            Exit status of 0 is treated as live/healthy and non-zero is unhealthy.\n                                          items:\n                                            type: string\n                                          type: array\n                                          x-kubernetes-list-type: atomic\n                                      type: object\n                                    httpGet:\n                                      description: HTTPGet specifies an HTTP GET request\n                                        to perform.\n                                      properties:\n                                        host:\n                                          description: |-\n                                            Host name to connect to, defaults to the pod IP. You probably want to set\n                                            \"Host\" in httpHeaders instead.\n                                          type: string\n                                        httpHeaders:\n                                          description: Custom headers to set in the\n                                            request. HTTP allows repeated headers.\n                                          items:\n                                            description: HTTPHeader describes a custom\n                                              header to be used in HTTP probes\n                                            properties:\n                                              name:\n                                                description: |-\n                                                  The header field name.\n                                                  This will be canonicalized upon output, so case-variant names will be understood as the same header.\n                                                type: string\n                                              value:\n                                                description: The header field value\n                                                type: string\n                                            required:\n                                            - name\n                                            - value\n                                            type: object\n                                          type: array\n                                          x-kubernetes-list-type: atomic\n                                        path:\n                                          description: Path to access on the HTTP\n                                            server.\n                                          type: string\n                                        port:\n                                          anyOf:\n                                          - type: integer\n                                          - type: string\n                                          description: |-\n                                            Name or number of the port to access on the container.\n                                            Number must be in the range 1 to 65535.\n                                            Name must be an IANA_SVC_NAME.\n                                          x-kubernetes-int-or-string: true\n                                        scheme:\n                                          description: |-\n                                            Scheme to use for connecting to the host.\n                                            Defaults to HTTP.\n                                          type: string\n                                      required:\n                                      - port\n                                      type: object\n                                    sleep:\n                                      description: Sleep represents a duration that\n                                        the container should sleep.\n                                      properties:\n                                        seconds:\n                                          description: Seconds is the number of seconds\n                                            to sleep.\n                                          format: int64\n                                          type: integer\n                                      required:\n                                      - seconds\n                                      type: object\n                                    tcpSocket:\n                                      description: |-\n                                        Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept\n                                        for backward compatibility. There is no validation of this field and\n                                        lifecycle hooks will fail at runtime when it is specified.\n                                      properties:\n                                        host:\n                                          description: 'Optional: Host name to connect\n                                            to, defaults to the pod IP.'\n                                          type: string\n                                        port:\n                                          anyOf:\n                                          - type: integer\n                                          - type: string\n                                          description: |-\n                                            Number or name of the port to access on the container.\n                                            Number must be in the range 1 to 65535.\n                                            Name must be an IANA_SVC_NAME.\n                                          x-kubernetes-int-or-string: true\n                                      required:\n                                      - port\n                                      type: object\n                                  type: object\n                                stopSignal:\n                                  description: |-\n                                    StopSignal defines which signal will be sent to a container when it is being stopped.\n                                    If not specified, the default is defined by the container runtime in use.\n                                    StopSignal can only be set for Pods with a non-empty .spec.os.name\n                                  type: string\n                              type: object\n                            livenessProbe:\n                              description: |-\n                                Periodic probe of container liveness.\n                                Container will be restarted if the probe fails.\n                                Cannot be updated.\n                                More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes\n                              properties:\n                                exec:\n                                  description: Exec specifies a command to execute\n                                    in the container.\n                                  properties:\n                                    command:\n                                      description: |-\n                                        Command is the command line to execute inside the container, the working directory for the\n                                        command  is root ('/') in the container's filesystem. The command is simply exec'd, it is\n                                        not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\n                                        a shell, you need to explicitly call out to that shell.\n                                        Exit status of 0 is treated as live/healthy and non-zero is unhealthy.\n                                      items:\n                                        type: string\n                                      type: array\n                                      x-kubernetes-list-type: atomic\n                                  type: object\n                                failureThreshold:\n                                  description: |-\n                                    Minimum consecutive failures for the probe to be considered failed after having succeeded.\n                                    Defaults to 3. Minimum value is 1.\n                                  format: int32\n                                  type: integer\n                                grpc:\n                                  description: GRPC specifies a GRPC HealthCheckRequest.\n                                  properties:\n                                    port:\n                                      description: Port number of the gRPC service.\n                                        Number must be in the range 1 to 65535.\n                                      format: int32\n                                      type: integer\n                                    service:\n                                      default: \"\"\n                                      description: |-\n                                        Service is the name of the service to place in the gRPC HealthCheckRequest\n                                        (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\n\n                                        If this is not specified, the default behavior is defined by gRPC.\n                                      type: string\n                                  required:\n                                  - port\n                                  type: object\n                                httpGet:\n                                  description: HTTPGet specifies an HTTP GET request\n                                    to perform.\n                                  properties:\n                                    host:\n                                      description: |-\n                                        Host name to connect to, defaults to the pod IP. You probably want to set\n                                        \"Host\" in httpHeaders instead.\n                                      type: string\n                                    httpHeaders:\n                                      description: Custom headers to set in the request.\n                                        HTTP allows repeated headers.\n                                      items:\n                                        description: HTTPHeader describes a custom\n                                          header to be used in HTTP probes\n                                        properties:\n                                          name:\n                                            description: |-\n                                              The header field name.\n                                              This will be canonicalized upon output, so case-variant names will be understood as the same header.\n                                            type: string\n                                          value:\n                                            description: The header field value\n                                            type: string\n                                        required:\n                                        - name\n                                        - value\n                                        type: object\n                                      type: array\n                                      x-kubernetes-list-type: atomic\n                                    path:\n                                      description: Path to access on the HTTP server.\n                                      type: string\n                                    port:\n                                      anyOf:\n                                      - type: integer\n                                      - type: string\n                                      description: |-\n                                        Name or number of the port to access on the container.\n                                        Number must be in the range 1 to 65535.\n                                        Name must be an IANA_SVC_NAME.\n                                      x-kubernetes-int-or-string: true\n                                    scheme:\n                                      description: |-\n                                        Scheme to use for connecting to the host.\n                                        Defaults to HTTP.\n                                      type: string\n                                  required:\n                                  - port\n                                  type: object\n                                initialDelaySeconds:\n                                  description: |-\n                                    Number of seconds after the container has started before liveness probes are initiated.\n                                    More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes\n                                  format: int32\n                                  type: integer\n                                periodSeconds:\n                                  description: |-\n                                    How often (in seconds) to perform the probe.\n                                    Default to 10 seconds. Minimum value is 1.\n                                  format: int32\n                                  type: integer\n                                successThreshold:\n                                  description: |-\n                                    Minimum consecutive successes for the probe to be considered successful after having failed.\n                                    Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.\n                                  format: int32\n                                  type: integer\n                                tcpSocket:\n                                  description: TCPSocket specifies a connection to\n                                    a TCP port.\n                                  properties:\n                                    host:\n                                      description: 'Optional: Host name to connect\n                                        to, defaults to the pod IP.'\n                                      type: string\n                                    port:\n                                      anyOf:\n                                      - type: integer\n                                      - type: string\n                                      description: |-\n                                        Number or name of the port to access on the container.\n                                        Number must be in the range 1 to 65535.\n                                        Name must be an IANA_SVC_NAME.\n                                      x-kubernetes-int-or-string: true\n                                  required:\n                                  - port\n                                  type: object\n                                terminationGracePeriodSeconds:\n                                  description: |-\n                                    Optional duration in seconds the pod needs to terminate gracefully upon probe failure.\n                                    The grace period is the duration in seconds after the processes running in the pod are sent\n                                    a termination signal and the time when the processes are forcibly halted with a kill signal.\n                                    Set this value longer than the expected cleanup time for your process.\n                                    If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this\n                                    value overrides the value provided by the pod spec.\n                                    Value must be non-negative integer. The value zero indicates stop immediately via\n                                    the kill signal (no opportunity to shut down).\n                                    This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.\n                                    Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.\n                                  format: int64\n                                  type: integer\n                                timeoutSeconds:\n                                  description: |-\n                                    Number of seconds after which the probe times out.\n                                    Defaults to 1 second. Minimum value is 1.\n                                    More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes\n                                  format: int32\n                                  type: integer\n                              type: object\n                            name:\n                              description: |-\n                                Name of the container specified as a DNS_LABEL.\n                                Each container in a pod must have a unique name (DNS_LABEL).\n                                Cannot be updated.\n                              type: string\n                            ports:\n                              description: |-\n                                List of ports to expose from the container. Not specifying a port here\n                                DOES NOT prevent that port from being exposed. Any port which is\n                                listening on the default \"0.0.0.0\" address inside a container will be\n                                accessible from the network.\n                                Modifying this array with strategic merge patch may corrupt the data.\n                                For more information See https://github.com/kubernetes/kubernetes/issues/108255.\n                                Cannot be updated.\n                              items:\n                                description: ContainerPort represents a network port\n                                  in a single container.\n                                properties:\n                                  containerPort:\n                                    description: |-\n                                      Number of port to expose on the pod's IP address.\n                                      This must be a valid port number, 0 < x < 65536.\n                                    format: int32\n                                    type: integer\n                                  hostIP:\n                                    description: What host IP to bind the external\n                                      port to.\n                                    type: string\n                                  hostPort:\n                                    description: |-\n                                      Number of port to expose on the host.\n                                      If specified, this must be a valid port number, 0 < x < 65536.\n                                      If HostNetwork is specified, this must match ContainerPort.\n                                      Most containers do not need this.\n                                    format: int32\n                                    type: integer\n                                  name:\n                                    description: |-\n                                      If specified, this must be an IANA_SVC_NAME and unique within the pod. Each\n                                      named port in a pod must have a unique name. Name for the port that can be\n                                      referred to by services.\n                                    type: string\n                                  protocol:\n                                    default: TCP\n                                    description: |-\n                                      Protocol for port. Must be UDP, TCP, or SCTP.\n                                      Defaults to \"TCP\".\n                                    type: string\n                                required:\n                                - containerPort\n                                type: object\n                              type: array\n                              x-kubernetes-list-map-keys:\n                              - containerPort\n                              - protocol\n                              x-kubernetes-list-type: map\n                            readinessProbe:\n                              description: |-\n                                Periodic probe of container service readiness.\n                                Container will be removed from service endpoints if the probe fails.\n                                Cannot be updated.\n                                More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes\n                              properties:\n                                exec:\n                                  description: Exec specifies a command to execute\n                                    in the container.\n                                  properties:\n                                    command:\n                                      description: |-\n                                        Command is the command line to execute inside the container, the working directory for the\n                                        command  is root ('/') in the container's filesystem. The command is simply exec'd, it is\n                                        not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\n                                        a shell, you need to explicitly call out to that shell.\n                                        Exit status of 0 is treated as live/healthy and non-zero is unhealthy.\n                                      items:\n                                        type: string\n                                      type: array\n                                      x-kubernetes-list-type: atomic\n                                  type: object\n                                failureThreshold:\n                                  description: |-\n                                    Minimum consecutive failures for the probe to be considered failed after having succeeded.\n                                    Defaults to 3. Minimum value is 1.\n                                  format: int32\n                                  type: integer\n                                grpc:\n                                  description: GRPC specifies a GRPC HealthCheckRequest.\n                                  properties:\n                                    port:\n                                      description: Port number of the gRPC service.\n                                        Number must be in the range 1 to 65535.\n                                      format: int32\n                                      type: integer\n                                    service:\n                                      default: \"\"\n                                      description: |-\n                                        Service is the name of the service to place in the gRPC HealthCheckRequest\n                                        (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\n\n                                        If this is not specified, the default behavior is defined by gRPC.\n                                      type: string\n                                  required:\n                                  - port\n                                  type: object\n                                httpGet:\n                                  description: HTTPGet specifies an HTTP GET request\n                                    to perform.\n                                  properties:\n                                    host:\n                                      description: |-\n                                        Host name to connect to, defaults to the pod IP. You probably want to set\n                                        \"Host\" in httpHeaders instead.\n                                      type: string\n                                    httpHeaders:\n                                      description: Custom headers to set in the request.\n                                        HTTP allows repeated headers.\n                                      items:\n                                        description: HTTPHeader describes a custom\n                                          header to be used in HTTP probes\n                                        properties:\n                                          name:\n                                            description: |-\n                                              The header field name.\n                                              This will be canonicalized upon output, so case-variant names will be understood as the same header.\n                                            type: string\n                                          value:\n                                            description: The header field value\n                                            type: string\n                                        required:\n                                        - name\n                                        - value\n                                        type: object\n                                      type: array\n                                      x-kubernetes-list-type: atomic\n                                    path:\n                                      description: Path to access on the HTTP server.\n                                      type: string\n                                    port:\n                                      anyOf:\n                                      - type: integer\n                                      - type: string\n                                      description: |-\n                                        Name or number of the port to access on the container.\n                                        Number must be in the range 1 to 65535.\n                                        Name must be an IANA_SVC_NAME.\n                                      x-kubernetes-int-or-string: true\n                                    scheme:\n                                      description: |-\n                                        Scheme to use for connecting to the host.\n                                        Defaults to HTTP.\n                                      type: string\n                                  required:\n                                  - port\n                                  type: object\n                                initialDelaySeconds:\n                                  description: |-\n                                    Number of seconds after the container has started before liveness probes are initiated.\n                                    More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes\n                                  format: int32\n                                  type: integer\n                                periodSeconds:\n                                  description: |-\n                                    How often (in seconds) to perform the probe.\n                                    Default to 10 seconds. Minimum value is 1.\n                                  format: int32\n                                  type: integer\n                                successThreshold:\n                                  description: |-\n                                    Minimum consecutive successes for the probe to be considered successful after having failed.\n                                    Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.\n                                  format: int32\n                                  type: integer\n                                tcpSocket:\n                                  description: TCPSocket specifies a connection to\n                                    a TCP port.\n                                  properties:\n                                    host:\n                                      description: 'Optional: Host name to connect\n                                        to, defaults to the pod IP.'\n                                      type: string\n                                    port:\n                                      anyOf:\n                                      - type: integer\n                                      - type: string\n                                      description: |-\n                                        Number or name of the port to access on the container.\n                                        Number must be in the range 1 to 65535.\n                                        Name must be an IANA_SVC_NAME.\n                                      x-kubernetes-int-or-string: true\n                                  required:\n                                  - port\n                                  type: object\n                                terminationGracePeriodSeconds:\n                                  description: |-\n                                    Optional duration in seconds the pod needs to terminate gracefully upon probe failure.\n                                    The grace period is the duration in seconds after the processes running in the pod are sent\n                                    a termination signal and the time when the processes are forcibly halted with a kill signal.\n                                    Set this value longer than the expected cleanup time for your process.\n                                    If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this\n                                    value overrides the value provided by the pod spec.\n                                    Value must be non-negative integer. The value zero indicates stop immediately via\n                                    the kill signal (no opportunity to shut down).\n                                    This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.\n                                    Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.\n                                  format: int64\n                                  type: integer\n                                timeoutSeconds:\n                                  description: |-\n                                    Number of seconds after which the probe times out.\n                                    Defaults to 1 second. Minimum value is 1.\n                                    More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes\n                                  format: int32\n                                  type: integer\n                              type: object\n                            resizePolicy:\n                              description: Resources resize policy for the container.\n                              items:\n                                description: ContainerResizePolicy represents resource\n                                  resize policy for the container.\n                                properties:\n                                  resourceName:\n                                    description: |-\n                                      Name of the resource to which this resource resize policy applies.\n                                      Supported values: cpu, memory.\n                                    type: string\n                                  restartPolicy:\n                                    description: |-\n                                      Restart policy to apply when specified resource is resized.\n                                      If not specified, it defaults to NotRequired.\n                                    type: string\n                                required:\n                                - resourceName\n                                - restartPolicy\n                                type: object\n                              type: array\n                              x-kubernetes-list-type: atomic\n                            resources:\n                              description: |-\n                                Compute Resources required by this container.\n                                Cannot be updated.\n                                More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/\n                              properties:\n                                claims:\n                                  description: |-\n                                    Claims lists the names of resources, defined in spec.resourceClaims,\n                                    that are used by this container.\n\n                                    This field depends on the\n                                    DynamicResourceAllocation feature gate.\n\n                                    This field is immutable. It can only be set for containers.\n                                  items:\n                                    description: ResourceClaim references one entry\n                                      in PodSpec.ResourceClaims.\n                                    properties:\n                                      name:\n                                        description: |-\n                                          Name must match the name of one entry in pod.spec.resourceClaims of\n                                          the Pod where this field is used. It makes that resource available\n                                          inside a container.\n                                        type: string\n                                      request:\n                                        description: |-\n                                          Request is the name chosen for a request in the referenced claim.\n                                          If empty, everything from the claim is made available, otherwise\n                                          only the result of this request.\n                                        type: string\n                                    required:\n                                    - name\n                                    type: object\n                                  type: array\n                                  x-kubernetes-list-map-keys:\n                                  - name\n                                  x-kubernetes-list-type: map\n                                limits:\n                                  additionalProperties:\n                                    anyOf:\n                                    - type: integer\n                                    - type: string\n                                    pattern: ^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$\n                                    x-kubernetes-int-or-string: true\n                                  description: |-\n                                    Limits describes the maximum amount of compute resources allowed.\n                                    More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/\n                                  type: object\n                                requests:\n                                  additionalProperties:\n                                    anyOf:\n                                    - type: integer\n                                    - type: string\n                                    pattern: ^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$\n                                    x-kubernetes-int-or-string: true\n                                  description: |-\n                                    Requests describes the minimum amount of compute resources required.\n                                    If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,\n                                    otherwise to an implementation-defined value. Requests cannot exceed Limits.\n                                    More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/\n                                  type: object\n                              type: object\n                            restartPolicy:\n                              description: |-\n                                RestartPolicy defines the restart behavior of individual containers in a pod.\n                                This overrides the pod-level restart policy. When this field is not specified,\n                                the restart behavior is defined by the Pod's restart policy and the container type.\n                                Additionally, setting the RestartPolicy as \"Always\" for the init container will\n                                have the following effect:\n                                this init container will be continually restarted on\n                                exit until all regular containers have terminated. Once all regular\n                                containers have completed, all init containers with restartPolicy \"Always\"\n                                will be shut down. This lifecycle differs from normal init containers and\n                                is often referred to as a \"sidecar\" container. Although this init\n                                container still starts in the init container sequence, it does not wait\n                                for the container to complete before proceeding to the next init\n                                container. Instead, the next init container starts immediately after this\n                                init container is started, or after any startupProbe has successfully\n                                completed.\n                              type: string\n                            restartPolicyRules:\n                              description: |-\n                                Represents a list of rules to be checked to determine if the\n                                container should be restarted on exit. The rules are evaluated in\n                                order. Once a rule matches a container exit condition, the remaining\n                                rules are ignored. If no rule matches the container exit condition,\n                                the Container-level restart policy determines the whether the container\n                                is restarted or not. Constraints on the rules:\n                                - At most 20 rules are allowed.\n                                - Rules can have the same action.\n                                - Identical rules are not forbidden in validations.\n                                When rules are specified, container MUST set RestartPolicy explicitly\n                                even it if matches the Pod's RestartPolicy.\n                              items:\n                                description: ContainerRestartRule describes how a\n                                  container exit is handled.\n                                properties:\n                                  action:\n                                    description: |-\n                                      Specifies the action taken on a container exit if the requirements\n                                      are satisfied. The only possible value is \"Restart\" to restart the\n                                      container.\n                                    type: string\n                                  exitCodes:\n                                    description: Represents the exit codes to check\n                                      on container exits.\n                                    properties:\n                                      operator:\n                                        description: |-\n                                          Represents the relationship between the container exit code(s) and the\n                                          specified values. Possible values are:\n                                          - In: the requirement is satisfied if the container exit code is in the\n                                            set of specified values.\n                                          - NotIn: the requirement is satisfied if the container exit code is\n                                            not in the set of specified values.\n                                        type: string\n                                      values:\n                                        description: |-\n                                          Specifies the set of values to check for container exit codes.\n                                          At most 255 elements are allowed.\n                                        items:\n                                          format: int32\n                                          type: integer\n                                        type: array\n                                        x-kubernetes-list-type: set\n                                    required:\n                                    - operator\n                                    type: object\n                                required:\n                                - action\n                                type: object\n                              type: array\n                              x-kubernetes-list-type: atomic\n                            securityContext:\n                              description: |-\n                                SecurityContext defines the security options the container should be run with.\n                                If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.\n                                More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/\n                              properties:\n                                allowPrivilegeEscalation:\n                                  description: |-\n                                    AllowPrivilegeEscalation controls whether a process can gain more\n                                    privileges than its parent process. This bool directly controls if\n                                    the no_new_privs flag will be set on the container process.\n                                    AllowPrivilegeEscalation is true always when the container is:\n                                    1) run as Privileged\n                                    2) has CAP_SYS_ADMIN\n                                    Note that this field cannot be set when spec.os.name is windows.\n                                  type: boolean\n                                appArmorProfile:\n                                  description: |-\n                                    appArmorProfile is the AppArmor options to use by this container. If set, this profile\n                                    overrides the pod's appArmorProfile.\n                                    Note that this field cannot be set when spec.os.name is windows.\n                                  properties:\n                                    localhostProfile:\n                                      description: |-\n                                        localhostProfile indicates a profile loaded on the node that should be used.\n                                        The profile must be preconfigured on the node to work.\n                                        Must match the loaded name of the profile.\n                                        Must be set if and only if type is \"Localhost\".\n                                      type: string\n                                    type:\n                                      description: |-\n                                        type indicates which kind of AppArmor profile will be applied.\n                                        Valid options are:\n                                          Localhost - a profile pre-loaded on the node.\n                                          RuntimeDefault - the container runtime's default profile.\n                                          Unconfined - no AppArmor enforcement.\n                                      type: string\n                                  required:\n                                  - type\n                                  type: object\n                                capabilities:\n                                  description: |-\n                                    The capabilities to add/drop when running containers.\n                                    Defaults to the default set of capabilities granted by the container runtime.\n                                    Note that this field cannot be set when spec.os.name is windows.\n                                  properties:\n                                    add:\n                                      description: Added capabilities\n                                      items:\n                                        description: Capability represent POSIX capabilities\n                                          type\n                                        type: string\n                                      type: array\n                                      x-kubernetes-list-type: atomic\n                                    drop:\n                                      description: Removed capabilities\n                                      items:\n                                        description: Capability represent POSIX capabilities\n                                          type\n                                        type: string\n                                      type: array\n                                      x-kubernetes-list-type: atomic\n                                  type: object\n                                privileged:\n                                  description: |-\n                                    Run container in privileged mode.\n                                    Processes in privileged containers are essentially equivalent to root on the host.\n                                    Defaults to false.\n                                    Note that this field cannot be set when spec.os.name is windows.\n                                  type: boolean\n                                procMount:\n                                  description: |-\n                                    procMount denotes the type of proc mount to use for the containers.\n                                    The default value is Default which uses the container runtime defaults for\n                                    readonly paths and masked paths.\n                                    This requires the ProcMountType feature flag to be enabled.\n                                    Note that this field cannot be set when spec.os.name is windows.\n                                  type: string\n                                readOnlyRootFilesystem:\n                                  description: |-\n                                    Whether this container has a read-only root filesystem.\n                                    Default is false.\n                                    Note that this field cannot be set when spec.os.name is windows.\n                                  type: boolean\n                                runAsGroup:\n                                  description: |-\n                                    The GID to run the entrypoint of the container process.\n                                    Uses runtime default if unset.\n                                    May also be set in PodSecurityContext.  If set in both SecurityContext and\n                                    PodSecurityContext, the value specified in SecurityContext takes precedence.\n                                    Note that this field cannot be set when spec.os.name is windows.\n                                  format: int64\n                                  type: integer\n                                runAsNonRoot:\n                                  description: |-\n                                    Indicates that the container must run as a non-root user.\n                                    If true, the Kubelet will validate the image at runtime to ensure that it\n                                    does not run as UID 0 (root) and fail to start the container if it does.\n                                    If unset or false, no such validation will be performed.\n                                    May also be set in PodSecurityContext.  If set in both SecurityContext and\n                                    PodSecurityContext, the value specified in SecurityContext takes precedence.\n                                  type: boolean\n                                runAsUser:\n                                  description: |-\n                                    The UID to run the entrypoint of the container process.\n                                    Defaults to user specified in image metadata if unspecified.\n                                    May also be set in PodSecurityContext.  If set in both SecurityContext and\n                                    PodSecurityContext, the value specified in SecurityContext takes precedence.\n                                    Note that this field cannot be set when spec.os.name is windows.\n                                  format: int64\n                                  type: integer\n                                seLinuxOptions:\n                                  description: |-\n                                    The SELinux context to be applied to the container.\n                                    If unspecified, the container runtime will allocate a random SELinux context for each\n                                    container.  May also be set in PodSecurityContext.  If set in both SecurityContext and\n                                    PodSecurityContext, the value specified in SecurityContext takes precedence.\n                                    Note that this field cannot be set when spec.os.name is windows.\n                                  properties:\n                                    level:\n                                      description: Level is SELinux level label that\n                                        applies to the container.\n                                      type: string\n                                    role:\n                                      description: Role is a SELinux role label that\n                                        applies to the container.\n                                      type: string\n                                    type:\n                                      description: Type is a SELinux type label that\n                                        applies to the container.\n                                      type: string\n                                    user:\n                                      description: User is a SELinux user label that\n                                        applies to the container.\n                                      type: string\n                                  type: object\n                                seccompProfile:\n                                  description: |-\n                                    The seccomp options to use by this container. If seccomp options are\n                                    provided at both the pod & container level, the container options\n                                    override the pod options.\n                                    Note that this field cannot be set when spec.os.name is windows.\n                                  properties:\n                                    localhostProfile:\n                                      description: |-\n                                        localhostProfile indicates a profile defined in a file on the node should be used.\n                                        The profile must be preconfigured on the node to work.\n                                        Must be a descending path, relative to the kubelet's configured seccomp profile location.\n                                        Must be set if type is \"Localhost\". Must NOT be set for any other type.\n                                      type: string\n                                    type:\n                                      description: |-\n                                        type indicates which kind of seccomp profile will be applied.\n                                        Valid options are:\n\n                                        Localhost - a profile defined in a file on the node should be used.\n                                        RuntimeDefault - the container runtime default profile should be used.\n                                        Unconfined - no profile should be applied.\n                                      type: string\n                                  required:\n                                  - type\n                                  type: object\n                                windowsOptions:\n                                  description: |-\n                                    The Windows specific settings applied to all containers.\n                                    If unspecified, the options from the PodSecurityContext will be used.\n                                    If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.\n                                    Note that this field cannot be set when spec.os.name is linux.\n                                  properties:\n                                    gmsaCredentialSpec:\n                                      description: |-\n                                        GMSACredentialSpec is where the GMSA admission webhook\n                                        (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the\n                                        GMSA credential spec named by the GMSACredentialSpecName field.\n                                      type: string\n                                    gmsaCredentialSpecName:\n                                      description: GMSACredentialSpecName is the name\n                                        of the GMSA credential spec to use.\n                                      type: string\n                                    hostProcess:\n                                      description: |-\n                                        HostProcess determines if a container should be run as a 'Host Process' container.\n                                        All of a Pod's containers must have the same effective HostProcess value\n                                        (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers).\n                                        In addition, if HostProcess is true then HostNetwork must also be set to true.\n                                      type: boolean\n                                    runAsUserName:\n                                      description: |-\n                                        The UserName in Windows to run the entrypoint of the container process.\n                                        Defaults to the user specified in image metadata if unspecified.\n                                        May also be set in PodSecurityContext. If set in both SecurityContext and\n                                        PodSecurityContext, the value specified in SecurityContext takes precedence.\n                                      type: string\n                                  type: object\n                              type: object\n                            startupProbe:\n                              description: |-\n                                StartupProbe indicates that the Pod has successfully initialized.\n                                If specified, no other probes are executed until this completes successfully.\n                                If this probe fails, the Pod will be restarted, just as if the livenessProbe failed.\n                                This can be used to provide different probe parameters at the beginning of a Pod's lifecycle,\n                                when it might take a long time to load data or warm a cache, than during steady-state operation.\n                                This cannot be updated.\n                                More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes\n                              properties:\n                                exec:\n                                  description: Exec specifies a command to execute\n                                    in the container.\n                                  properties:\n                                    command:\n                                      description: |-\n                                        Command is the command line to execute inside the container, the working directory for the\n                                        command  is root ('/') in the container's filesystem. The command is simply exec'd, it is\n                                        not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\n                                        a shell, you need to explicitly call out to that shell.\n                                        Exit status of 0 is treated as live/healthy and non-zero is unhealthy.\n                                      items:\n                                        type: string\n                                      type: array\n                                      x-kubernetes-list-type: atomic\n                                  type: object\n                                failureThreshold:\n                                  description: |-\n                                    Minimum consecutive failures for the probe to be considered failed after having succeeded.\n                                    Defaults to 3. Minimum value is 1.\n                                  format: int32\n                                  type: integer\n                                grpc:\n                                  description: GRPC specifies a GRPC HealthCheckRequest.\n                                  properties:\n                                    port:\n                                      description: Port number of the gRPC service.\n                                        Number must be in the range 1 to 65535.\n                                      format: int32\n                                      type: integer\n                                    service:\n                                      default: \"\"\n                                      description: |-\n                                        Service is the name of the service to place in the gRPC HealthCheckRequest\n                                        (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\n\n                                        If this is not specified, the default behavior is defined by gRPC.\n                                      type: string\n                                  required:\n                                  - port\n                                  type: object\n                                httpGet:\n                                  description: HTTPGet specifies an HTTP GET request\n                                    to perform.\n                                  properties:\n                                    host:\n                                      description: |-\n                                        Host name to connect to, defaults to the pod IP. You probably want to set\n                                        \"Host\" in httpHeaders instead.\n                                      type: string\n                                    httpHeaders:\n                                      description: Custom headers to set in the request.\n                                        HTTP allows repeated headers.\n                                      items:\n                                        description: HTTPHeader describes a custom\n                                          header to be used in HTTP probes\n                                        properties:\n                                          name:\n                                            description: |-\n                                              The header field name.\n                                              This will be canonicalized upon output, so case-variant names will be understood as the same header.\n                                            type: string\n                                          value:\n                                            description: The header field value\n                                            type: string\n                                        required:\n                                        - name\n                                        - value\n                                        type: object\n                                      type: array\n                                      x-kubernetes-list-type: atomic\n                                    path:\n                                      description: Path to access on the HTTP server.\n                                      type: string\n                                    port:\n                                      anyOf:\n                                      - type: integer\n                                      - type: string\n                                      description: |-\n                                        Name or number of the port to access on the container.\n                                        Number must be in the range 1 to 65535.\n                                        Name must be an IANA_SVC_NAME.\n                                      x-kubernetes-int-or-string: true\n                                    scheme:\n                                      description: |-\n                                        Scheme to use for connecting to the host.\n                                        Defaults to HTTP.\n                                      type: string\n                                  required:\n                                  - port\n                                  type: object\n                                initialDelaySeconds:\n                                  description: |-\n                                    Number of seconds after the container has started before liveness probes are initiated.\n                                    More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes\n                                  format: int32\n                                  type: integer\n                                periodSeconds:\n                                  description: |-\n                                    How often (in seconds) to perform the probe.\n                                    Default to 10 seconds. Minimum value is 1.\n                                  format: int32\n                                  type: integer\n                                successThreshold:\n                                  description: |-\n                                    Minimum consecutive successes for the probe to be considered successful after having failed.\n                                    Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.\n                                  format: int32\n                                  type: integer\n                                tcpSocket:\n                                  description: TCPSocket specifies a connection to\n                                    a TCP port.\n                                  properties:\n                                    host:\n                                      description: 'Optional: Host name to connect\n                                        to, defaults to the pod IP.'\n                                      type: string\n                                    port:\n                                      anyOf:\n                                      - type: integer\n                                      - type: string\n                                      description: |-\n                                        Number or name of the port to access on the container.\n                                        Number must be in the range 1 to 65535.\n                                        Name must be an IANA_SVC_NAME.\n                                      x-kubernetes-int-or-string: true\n                                  required:\n                                  - port\n                                  type: object\n                                terminationGracePeriodSeconds:\n                                  description: |-\n                                    Optional duration in seconds the pod needs to terminate gracefully upon probe failure.\n                                    The grace period is the duration in seconds after the processes running in the pod are sent\n                                    a termination signal and the time when the processes are forcibly halted with a kill signal.\n                                    Set this value longer than the expected cleanup time for your process.\n                                    If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this\n                                    value overrides the value provided by the pod spec.\n                                    Value must be non-negative integer. The value zero indicates stop immediately via\n                                    the kill signal (no opportunity to shut down).\n                                    This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.\n                                    Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.\n                                  format: int64\n                                  type: integer\n                                timeoutSeconds:\n                                  description: |-\n                                    Number of seconds after which the probe times out.\n                                    Defaults to 1 second. Minimum value is 1.\n                                    More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes\n                                  format: int32\n                                  type: integer\n                              type: object\n                            stdin:\n                              description: |-\n                                Whether this container should allocate a buffer for stdin in the container runtime. If this\n                                is not set, reads from stdin in the container will always result in EOF.\n                                Default is false.\n                              type: boolean\n                            stdinOnce:\n                              description: |-\n                                Whether the container runtime should close the stdin channel after it has been opened by\n                                a single attach. When stdin is true the stdin stream will remain open across multiple attach\n                                sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the\n                                first client attaches to stdin, and then remains open and accepts data until the client disconnects,\n                                at which time stdin is closed and remains closed until the container is restarted. If this\n                                flag is false, a container processes that reads from stdin will never receive an EOF.\n                                Default is false\n                              type: boolean\n                            terminationMessagePath:\n                              description: |-\n                                Optional: Path at which the file to which the container's termination message\n                                will be written is mounted into the container's filesystem.\n                                Message written is intended to be brief final status, such as an assertion failure message.\n                                Will be truncated by the node if greater than 4096 bytes. The total message length across\n                                all containers will be limited to 12kb.\n                                Defaults to /dev/termination-log.\n                                Cannot be updated.\n                              type: string\n                            terminationMessagePolicy:\n                              description: |-\n                                Indicate how the termination message should be populated. File will use the contents of\n                                terminationMessagePath to populate the container status message on both success and failure.\n                                FallbackToLogsOnError will use the last chunk of container log output if the termination\n                                message file is empty and the container exited with an error.\n                                The log output is limited to 2048 bytes or 80 lines, whichever is smaller.\n                                Defaults to File.\n                                Cannot be updated.\n                              type: string\n                            tty:\n                              description: |-\n                                Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.\n                                Default is false.\n                              type: boolean\n                            volumeDevices:\n                              description: volumeDevices is the list of block devices\n                                to be used by the container.\n                              items:\n                                description: volumeDevice describes a mapping of a\n                                  raw block device within a container.\n                                properties:\n                                  devicePath:\n                                    description: devicePath is the path inside of\n                                      the container that the device will be mapped\n                                      to.\n                                    type: string\n                                  name:\n                                    description: name must match the name of a persistentVolumeClaim\n                                      in the pod\n                                    type: string\n                                required:\n                                - devicePath\n                                - name\n                                type: object\n                              type: array\n                              x-kubernetes-list-map-keys:\n                              - devicePath\n                              x-kubernetes-list-type: map\n                            volumeMounts:\n                              description: |-\n                                Pod volumes to mount into the container's filesystem.\n                                Cannot be updated.\n                              items:\n                                description: VolumeMount describes a mounting of a\n                                  Volume within a container.\n                                properties:\n                                  mountPath:\n                                    description: |-\n                                      Path within the container at which the volume should be mounted.  Must\n                                      not contain ':'.\n                                    type: string\n                                  mountPropagation:\n                                    description: |-\n                                      mountPropagation determines how mounts are propagated from the host\n                                      to container and the other way around.\n                                      When not set, MountPropagationNone is used.\n                                      This field is beta in 1.10.\n                                      When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified\n                                      (which defaults to None).\n                                    type: string\n                                  name:\n                                    description: This must match the Name of a Volume.\n                                    type: string\n                                  readOnly:\n                                    description: |-\n                                      Mounted read-only if true, read-write otherwise (false or unspecified).\n                                      Defaults to false.\n                                    type: boolean\n                                  recursiveReadOnly:\n                                    description: |-\n                                      RecursiveReadOnly specifies whether read-only mounts should be handled\n                                      recursively.\n\n                                      If ReadOnly is false, this field has no meaning and must be unspecified.\n\n                                      If ReadOnly is true, and this field is set to Disabled, the mount is not made\n                                      recursively read-only.  If this field is set to IfPossible, the mount is made\n                                      recursively read-only, if it is supported by the container runtime.  If this\n                                      field is set to Enabled, the mount is made recursively read-only if it is\n                                      supported by the container runtime, otherwise the pod will not be started and\n                                      an error will be generated to indicate the reason.\n\n                                      If this field is set to IfPossible or Enabled, MountPropagation must be set to\n                                      None (or be unspecified, which defaults to None).\n\n                                      If this field is not specified, it is treated as an equivalent of Disabled.\n                                    type: string\n                                  subPath:\n                                    description: |-\n                                      Path within the volume from which the container's volume should be mounted.\n                                      Defaults to \"\" (volume's root).\n                                    type: string\n                                  subPathExpr:\n                                    description: |-\n                                      Expanded path within the volume from which the container's volume should be mounted.\n                                      Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.\n                                      Defaults to \"\" (volume's root).\n                                      SubPathExpr and SubPath are mutually exclusive.\n                                    type: string\n                                required:\n                                - mountPath\n                                - name\n                                type: object\n                              type: array\n                              x-kubernetes-list-map-keys:\n                              - mountPath\n                              x-kubernetes-list-type: map\n                            workingDir:\n                              description: |-\n                                Container's working directory.\n                                If not specified, the container runtime's default will be used, which\n                                might be configured in the container image.\n                                Cannot be updated.\n                              type: string\n                          required:\n                          - name\n                          type: object\n                        type: array\n                        x-kubernetes-list-map-keys:\n                        - name\n                        x-kubernetes-list-type: map\n                      nodeName:\n                        description: |-\n                          NodeName indicates in which node this pod is scheduled.\n                          If empty, this pod is a candidate for scheduling by the scheduler defined in schedulerName.\n                          Once this field is set, the kubelet for this node becomes responsible for the lifecycle of this pod.\n                          This field should not be used to express a desire for the pod to be scheduled on a specific node.\n                          https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodename\n                        type: string\n                      nodeSelector:\n                        additionalProperties:\n                          type: string\n                        description: |-\n                          NodeSelector is a selector which must be true for the pod to fit on a node.\n                          Selector which must match a node's labels for the pod to be scheduled on that node.\n                          More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/\n                        type: object\n                        x-kubernetes-map-type: atomic\n                      os:\n                        description: |-\n                          Specifies the OS of the containers in the pod.\n                          Some pod and container fields are restricted if this is set.\n\n                          If the OS field is set to linux, the following fields must be unset:\n                          -securityContext.windowsOptions\n\n                          If the OS field is set to windows, following fields must be unset:\n                          - spec.hostPID\n                          - spec.hostIPC\n                          - spec.hostUsers\n                          - spec.resources\n                          - spec.securityContext.appArmorProfile\n                          - spec.securityContext.seLinuxOptions\n                          - spec.securityContext.seccompProfile\n                          - spec.securityContext.fsGroup\n                          - spec.securityContext.fsGroupChangePolicy\n                          - spec.securityContext.sysctls\n                          - spec.shareProcessNamespace\n                          - spec.securityContext.runAsUser\n                          - spec.securityContext.runAsGroup\n                          - spec.securityContext.supplementalGroups\n                          - spec.securityContext.supplementalGroupsPolicy\n                          - spec.containers[*].securityContext.appArmorProfile\n                          - spec.containers[*].securityContext.seLinuxOptions\n                          - spec.containers[*].securityContext.seccompProfile\n                          - spec.containers[*].securityContext.capabilities\n                          - spec.containers[*].securityContext.readOnlyRootFilesystem\n                          - spec.containers[*].securityContext.privileged\n                          - spec.containers[*].securityContext.allowPrivilegeEscalation\n                          - spec.containers[*].securityContext.procMount\n                          - spec.containers[*].securityContext.runAsUser\n                          - spec.containers[*].securityContext.runAsGroup\n                        properties:\n                          name:\n                            description: |-\n                              Name is the name of the operating system. The currently supported values are linux and windows.\n                              Additional value may be defined in future and can be one of:\n                              https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration\n                              Clients should expect to handle additional values and treat unrecognized values in this field as os: null\n                            type: string\n                        required:\n                        - name\n                        type: object\n                      overhead:\n                        additionalProperties:\n                          anyOf:\n                          - type: integer\n                          - type: string\n                          pattern: ^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$\n                          x-kubernetes-int-or-string: true\n                        description: |-\n                          Overhead represents the resource overhead associated with running a pod for a given RuntimeClass.\n                          This field will be autopopulated at admission time by the RuntimeClass admission controller. If\n                          the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests.\n                          The RuntimeClass admission controller will reject Pod create requests which have the overhead already\n                          set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value\n                          defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero.\n                          More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md\n                        type: object\n                      preemptionPolicy:\n                        description: |-\n                          PreemptionPolicy is the Policy for preempting pods with lower priority.\n                          One of Never, PreemptLowerPriority.\n                          Defaults to PreemptLowerPriority if unset.\n                        type: string\n                      priority:\n                        description: |-\n                          The priority value. Various system components use this field to find the\n                          priority of the pod. When Priority Admission Controller is enabled, it\n                          prevents users from setting this field. The admission controller populates\n                          this field from PriorityClassName.\n                          The higher the value, the higher the priority.\n                        format: int32\n                        type: integer\n                      priorityClassName:\n                        description: |-\n                          If specified, indicates the pod's priority. \"system-node-critical\" and\n                          \"system-cluster-critical\" are two special keywords which indicate the\n                          highest priorities with the former being the highest priority. Any other\n                          name must be defined by creating a PriorityClass object with that name.\n                          If not specified, the pod priority will be default or zero if there is no\n                          default.\n                        type: string\n                      readinessGates:\n                        description: |-\n                          If specified, all readiness gates will be evaluated for pod readiness.\n                          A pod is ready when all its containers are ready AND\n                          all conditions specified in the readiness gates have status equal to \"True\"\n                          More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates\n                        items:\n                          description: PodReadinessGate contains the reference to\n                            a pod condition\n                          properties:\n                            conditionType:\n                              description: ConditionType refers to a condition in\n                                the pod's condition list with matching type.\n                              type: string\n                          required:\n                          - conditionType\n                          type: object\n                        type: array\n                        x-kubernetes-list-type: atomic\n                      resourceClaims:\n                        description: |-\n                          ResourceClaims defines which ResourceClaims must be allocated\n                          and reserved before the Pod is allowed to start. The resources\n                          will be made available to those containers which consume them\n                          by name.\n\n                          This is an alpha field and requires enabling the\n                          DynamicResourceAllocation feature gate.\n\n                          This field is immutable.\n                        items:\n                          description: |-\n                            PodResourceClaim references exactly one ResourceClaim, either directly\n                            or by naming a ResourceClaimTemplate which is then turned into a ResourceClaim\n                            for the pod.\n\n                            It adds a name to it that uniquely identifies the ResourceClaim inside the Pod.\n                            Containers that need access to the ResourceClaim reference it with this name.\n                          properties:\n                            name:\n                              description: |-\n                                Name uniquely identifies this resource claim inside the pod.\n                                This must be a DNS_LABEL.\n                              type: string\n                            resourceClaimName:\n                              description: |-\n                                ResourceClaimName is the name of a ResourceClaim object in the same\n                                namespace as this pod.\n\n                                Exactly one of ResourceClaimName and ResourceClaimTemplateName must\n                                be set.\n                              type: string\n                            resourceClaimTemplateName:\n                              description: |-\n                                ResourceClaimTemplateName is the name of a ResourceClaimTemplate\n                                object in the same namespace as this pod.\n\n                                The template will be used to create a new ResourceClaim, which will\n                                be bound to this pod. When this pod is deleted, the ResourceClaim\n                                will also be deleted. The pod name and resource name, along with a\n                                generated component, will be used to form a unique name for the\n                                ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses.\n\n                                This field is immutable and no changes will be made to the\n                                corresponding ResourceClaim by the control plane after creating the\n                                ResourceClaim.\n\n                                Exactly one of ResourceClaimName and ResourceClaimTemplateName must\n                                be set.\n                              type: string\n                          required:\n                          - name\n                          type: object\n                        type: array\n                        x-kubernetes-list-map-keys:\n                        - name\n                        x-kubernetes-list-type: map\n                      resources:\n                        description: |-\n                          Resources is the total amount of CPU and Memory resources required by all\n                          containers in the pod. It supports specifying Requests and Limits for\n                          \"cpu\", \"memory\" and \"hugepages-\" resource names only. ResourceClaims are not supported.\n\n                          This field enables fine-grained control over resource allocation for the\n                          entire pod, allowing resource sharing among containers in a pod.\n\n                          This is an alpha field and requires enabling the PodLevelResources feature\n                          gate.\n                        properties:\n                          claims:\n                            description: |-\n                              Claims lists the names of resources, defined in spec.resourceClaims,\n                              that are used by this container.\n\n                              This field depends on the\n                              DynamicResourceAllocation feature gate.\n\n                              This field is immutable. It can only be set for containers.\n                            items:\n                              description: ResourceClaim references one entry in PodSpec.ResourceClaims.\n                              properties:\n                                name:\n                                  description: |-\n                                    Name must match the name of one entry in pod.spec.resourceClaims of\n                                    the Pod where this field is used. It makes that resource available\n                                    inside a container.\n                                  type: string\n                                request:\n                                  description: |-\n                                    Request is the name chosen for a request in the referenced claim.\n                                    If empty, everything from the claim is made available, otherwise\n                                    only the result of this request.\n                                  type: string\n                              required:\n                              - name\n                              type: object\n                            type: array\n                            x-kubernetes-list-map-keys:\n                            - name\n                            x-kubernetes-list-type: map\n                          limits:\n                            additionalProperties:\n                              anyOf:\n                              - type: integer\n                              - type: string\n                              pattern: ^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$\n                              x-kubernetes-int-or-string: true\n                            description: |-\n                              Limits describes the maximum amount of compute resources allowed.\n                              More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/\n                            type: object\n                          requests:\n                            additionalProperties:\n                              anyOf:\n                              - type: integer\n                              - type: string\n                              pattern: ^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$\n                              x-kubernetes-int-or-string: true\n                            description: |-\n                              Requests describes the minimum amount of compute resources required.\n                              If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,\n                              otherwise to an implementation-defined value. Requests cannot exceed Limits.\n                              More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/\n                            type: object\n                        type: object\n                      restartPolicy:\n                        description: |-\n                          Restart policy for all containers within the pod.\n                          One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted.\n                          Default to Always.\n                          More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy\n                        type: string\n                      runtimeClassName:\n                        description: |-\n                          RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used\n                          to run this pod.  If no RuntimeClass resource matches the named class, the pod will not be run.\n                          If unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an\n                          empty definition that uses the default runtime handler.\n                          More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class\n                        type: string\n                      schedulerName:\n                        description: |-\n                          If specified, the pod will be dispatched by specified scheduler.\n                          If not specified, the pod will be dispatched by default scheduler.\n                        type: string\n                      schedulingGates:\n                        description: |-\n                          SchedulingGates is an opaque list of values that if specified will block scheduling the pod.\n                          If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the\n                          scheduler will not attempt to schedule the pod.\n\n                          SchedulingGates can only be set at pod creation time, and be removed only afterwards.\n                        items:\n                          description: PodSchedulingGate is associated to a Pod to\n                            guard its scheduling.\n                          properties:\n                            name:\n                              description: |-\n                                Name of the scheduling gate.\n                                Each scheduling gate must have a unique name field.\n                              type: string\n                          required:\n                          - name\n                          type: object\n                        type: array\n                        x-kubernetes-list-map-keys:\n                        - name\n                        x-kubernetes-list-type: map\n                      securityContext:\n                        description: |-\n                          SecurityContext holds pod-level security attributes and common container settings.\n                          Optional: Defaults to empty.  See type description for default values of each field.\n                        properties:\n                          appArmorProfile:\n                            description: |-\n                              appArmorProfile is the AppArmor options to use by the containers in this pod.\n                              Note that this field cannot be set when spec.os.name is windows.\n                            properties:\n                              localhostProfile:\n                                description: |-\n                                  localhostProfile indicates a profile loaded on the node that should be used.\n                                  The profile must be preconfigured on the node to work.\n                                  Must match the loaded name of the profile.\n                                  Must be set if and only if type is \"Localhost\".\n                                type: string\n                              type:\n                                description: |-\n                                  type indicates which kind of AppArmor profile will be applied.\n                                  Valid options are:\n                                    Localhost - a profile pre-loaded on the node.\n                                    RuntimeDefault - the container runtime's default profile.\n                                    Unconfined - no AppArmor enforcement.\n                                type: string\n                            required:\n                            - type\n                            type: object\n                          fsGroup:\n                            description: |-\n                              A special supplemental group that applies to all containers in a pod.\n                              Some volume types allow the Kubelet to change the ownership of that volume\n                              to be owned by the pod:\n\n                              1. The owning GID will be the FSGroup\n                              2. The setgid bit is set (new files created in the volume will be owned by FSGroup)\n                              3. The permission bits are OR'd with rw-rw----\n\n                              If unset, the Kubelet will not modify the ownership and permissions of any volume.\n                              Note that this field cannot be set when spec.os.name is windows.\n                            format: int64\n                            type: integer\n                          fsGroupChangePolicy:\n                            description: |-\n                              fsGroupChangePolicy defines behavior of changing ownership and permission of the volume\n                              before being exposed inside Pod. This field will only apply to\n                              volume types which support fsGroup based ownership(and permissions).\n                              It will have no effect on ephemeral volume types such as: secret, configmaps\n                              and emptydir.\n                              Valid values are \"OnRootMismatch\" and \"Always\". If not specified, \"Always\" is used.\n                              Note that this field cannot be set when spec.os.name is windows.\n                            type: string\n                          runAsGroup:\n                            description: |-\n                              The GID to run the entrypoint of the container process.\n                              Uses runtime default if unset.\n                              May also be set in SecurityContext.  If set in both SecurityContext and\n                              PodSecurityContext, the value specified in SecurityContext takes precedence\n                              for that container.\n                              Note that this field cannot be set when spec.os.name is windows.\n                            format: int64\n                            type: integer\n                          runAsNonRoot:\n                            description: |-\n                              Indicates that the container must run as a non-root user.\n                              If true, the Kubelet will validate the image at runtime to ensure that it\n                              does not run as UID 0 (root) and fail to start the container if it does.\n                              If unset or false, no such validation will be performed.\n                              May also be set in SecurityContext.  If set in both SecurityContext and\n                              PodSecurityContext, the value specified in SecurityContext takes precedence.\n                            type: boolean\n                          runAsUser:\n                            description: |-\n                              The UID to run the entrypoint of the container process.\n                              Defaults to user specified in image metadata if unspecified.\n                              May also be set in SecurityContext.  If set in both SecurityContext and\n                              PodSecurityContext, the value specified in SecurityContext takes precedence\n                              for that container.\n                              Note that this field cannot be set when spec.os.name is windows.\n                            format: int64\n                            type: integer\n                          seLinuxChangePolicy:\n                            description: |-\n                              seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod.\n                              It has no effect on nodes that do not support SELinux or to volumes does not support SELinux.\n                              Valid values are \"MountOption\" and \"Recursive\".\n\n                              \"Recursive\" means relabeling of all files on all Pod volumes by the container runtime.\n                              This may be slow for large volumes, but allows mixing privileged and unprivileged Pods sharing the same volume on the same node.\n\n                              \"MountOption\" mounts all eligible Pod volumes with `-o context` mount option.\n                              This requires all Pods that share the same volume to use the same SELinux label.\n                              It is not possible to share the same volume among privileged and unprivileged Pods.\n                              Eligible volumes are in-tree FibreChannel and iSCSI volumes, and all CSI volumes\n                              whose CSI driver announces SELinux support by setting spec.seLinuxMount: true in their\n                              CSIDriver instance. Other volumes are always re-labelled recursively.\n                              \"MountOption\" value is allowed only when SELinuxMount feature gate is enabled.\n\n                              If not specified and SELinuxMount feature gate is enabled, \"MountOption\" is used.\n                              If not specified and SELinuxMount feature gate is disabled, \"MountOption\" is used for ReadWriteOncePod volumes\n                              and \"Recursive\" for all other volumes.\n\n                              This field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers.\n\n                              All Pods that use the same volume should use the same seLinuxChangePolicy, otherwise some pods can get stuck in ContainerCreating state.\n                              Note that this field cannot be set when spec.os.name is windows.\n                            type: string\n                          seLinuxOptions:\n                            description: |-\n                              The SELinux context to be applied to all containers.\n                              If unspecified, the container runtime will allocate a random SELinux context for each\n                              container.  May also be set in SecurityContext.  If set in\n                              both SecurityContext and PodSecurityContext, the value specified in SecurityContext\n                              takes precedence for that container.\n                              Note that this field cannot be set when spec.os.name is windows.\n                            properties:\n                              level:\n                                description: Level is SELinux level label that applies\n                                  to the container.\n                                type: string\n                              role:\n                                description: Role is a SELinux role label that applies\n                                  to the container.\n                                type: string\n                              type:\n                                description: Type is a SELinux type label that applies\n                                  to the container.\n                                type: string\n                              user:\n                                description: User is a SELinux user label that applies\n                                  to the container.\n                                type: string\n                            type: object\n                          seccompProfile:\n                            description: |-\n                              The seccomp options to use by the containers in this pod.\n                              Note that this field cannot be set when spec.os.name is windows.\n                            properties:\n                              localhostProfile:\n                                description: |-\n                                  localhostProfile indicates a profile defined in a file on the node should be used.\n                                  The profile must be preconfigured on the node to work.\n                                  Must be a descending path, relative to the kubelet's configured seccomp profile location.\n                                  Must be set if type is \"Localhost\". Must NOT be set for any other type.\n                                type: string\n                              type:\n                                description: |-\n                                  type indicates which kind of seccomp profile will be applied.\n                                  Valid options are:\n\n                                  Localhost - a profile defined in a file on the node should be used.\n                                  RuntimeDefault - the container runtime default profile should be used.\n                                  Unconfined - no profile should be applied.\n                                type: string\n                            required:\n                            - type\n                            type: object\n                          supplementalGroups:\n                            description: |-\n                              A list of groups applied to the first process run in each container, in\n                              addition to the container's primary GID and fsGroup (if specified).  If\n                              the SupplementalGroupsPolicy feature is enabled, the\n                              supplementalGroupsPolicy field determines whether these are in addition\n                              to or instead of any group memberships defined in the container image.\n                              If unspecified, no additional groups are added, though group memberships\n                              defined in the container image may still be used, depending on the\n                              supplementalGroupsPolicy field.\n                              Note that this field cannot be set when spec.os.name is windows.\n                            items:\n                              format: int64\n                              type: integer\n                            type: array\n                            x-kubernetes-list-type: atomic\n                          supplementalGroupsPolicy:\n                            description: |-\n                              Defines how supplemental groups of the first container processes are calculated.\n                              Valid values are \"Merge\" and \"Strict\". If not specified, \"Merge\" is used.\n                              (Alpha) Using the field requires the SupplementalGroupsPolicy feature gate to be enabled\n                              and the container runtime must implement support for this feature.\n                              Note that this field cannot be set when spec.os.name is windows.\n                            type: string\n                          sysctls:\n                            description: |-\n                              Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported\n                              sysctls (by the container runtime) might fail to launch.\n                              Note that this field cannot be set when spec.os.name is windows.\n                            items:\n                              description: Sysctl defines a kernel parameter to be\n                                set\n                              properties:\n                                name:\n                                  description: Name of a property to set\n                                  type: string\n                                value:\n                                  description: Value of a property to set\n                                  type: string\n                              required:\n                              - name\n                              - value\n                              type: object\n                            type: array\n                            x-kubernetes-list-type: atomic\n                          windowsOptions:\n                            description: |-\n                              The Windows specific settings applied to all containers.\n                              If unspecified, the options within a container's SecurityContext will be used.\n                              If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.\n                              Note that this field cannot be set when spec.os.name is linux.\n                            properties:\n                              gmsaCredentialSpec:\n                                description: |-\n                                  GMSACredentialSpec is where the GMSA admission webhook\n                                  (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the\n                                  GMSA credential spec named by the GMSACredentialSpecName field.\n                                type: string\n                              gmsaCredentialSpecName:\n                                description: GMSACredentialSpecName is the name of\n                                  the GMSA credential spec to use.\n                                type: string\n                              hostProcess:\n                                description: |-\n                                  HostProcess determines if a container should be run as a 'Host Process' container.\n                                  All of a Pod's containers must have the same effective HostProcess value\n                                  (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers).\n                                  In addition, if HostProcess is true then HostNetwork must also be set to true.\n                                type: boolean\n                              runAsUserName:\n                                description: |-\n                                  The UserName in Windows to run the entrypoint of the container process.\n                                  Defaults to the user specified in image metadata if unspecified.\n                                  May also be set in PodSecurityContext. If set in both SecurityContext and\n                                  PodSecurityContext, the value specified in SecurityContext takes precedence.\n                                type: string\n                            type: object\n                        type: object\n                      serviceAccount:\n                        description: |-\n                          DeprecatedServiceAccount is a deprecated alias for ServiceAccountName.\n                          Deprecated: Use serviceAccountName instead.\n                        type: string\n                      serviceAccountName:\n                        description: |-\n                          ServiceAccountName is the name of the ServiceAccount to use to run this pod.\n                          More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/\n                        type: string\n                      setHostnameAsFQDN:\n                        description: |-\n                          If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default).\n                          In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname).\n                          In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\\\SYSTEM\\\\CurrentControlSet\\\\Services\\\\Tcpip\\\\Parameters to FQDN.\n                          If a pod does not have FQDN, this has no effect.\n                          Default to false.\n                        type: boolean\n                      shareProcessNamespace:\n                        description: |-\n                          Share a single process namespace between all of the containers in a pod.\n                          When this is set containers will be able to view and signal processes from other containers\n                          in the same pod, and the first process in each container will not be assigned PID 1.\n                          HostPID and ShareProcessNamespace cannot both be set.\n                          Optional: Default to false.\n                        type: boolean\n                      subdomain:\n                        description: |-\n                          If specified, the fully qualified Pod hostname will be \"<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>\".\n                          If not specified, the pod will not have a domainname at all.\n                        type: string\n                      terminationGracePeriodSeconds:\n                        description: |-\n                          Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request.\n                          Value must be non-negative integer. The value zero indicates stop immediately via\n                          the kill signal (no opportunity to shut down).\n                          If this value is nil, the default grace period will be used instead.\n                          The grace period is the duration in seconds after the processes running in the pod are sent\n                          a termination signal and the time when the processes are forcibly halted with a kill signal.\n                          Set this value longer than the expected cleanup time for your process.\n                          Defaults to 30 seconds.\n                        format: int64\n                        type: integer\n                      tolerations:\n                        description: If specified, the pod's tolerations.\n                        items:\n                          description: |-\n                            The pod this Toleration is attached to tolerates any taint that matches\n                            the triple <key,value,effect> using the matching operator <operator>.\n                          properties:\n                            effect:\n                              description: |-\n                                Effect indicates the taint effect to match. Empty means match all taint effects.\n                                When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.\n                              type: string\n                            key:\n                              description: |-\n                                Key is the taint key that the toleration applies to. Empty means match all taint keys.\n                                If the key is empty, operator must be Exists; this combination means to match all values and all keys.\n                              type: string\n                            operator:\n                              description: |-\n                                Operator represents a key's relationship to the value.\n                                Valid operators are Exists and Equal. Defaults to Equal.\n                                Exists is equivalent to wildcard for value, so that a pod can\n                                tolerate all taints of a particular category.\n                              type: string\n                            tolerationSeconds:\n                              description: |-\n                                TolerationSeconds represents the period of time the toleration (which must be\n                                of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,\n                                it is not set, which means tolerate the taint forever (do not evict). Zero and\n                                negative values will be treated as 0 (evict immediately) by the system.\n                              format: int64\n                              type: integer\n                            value:\n                              description: |-\n                                Value is the taint value the toleration matches to.\n                                If the operator is Exists, the value should be empty, otherwise just a regular string.\n                              type: string\n                          type: object\n                        type: array\n                        x-kubernetes-list-type: atomic\n                      topologySpreadConstraints:\n                        description: |-\n                          TopologySpreadConstraints describes how a group of pods ought to spread across topology\n                          domains. Scheduler will schedule pods in a way which abides by the constraints.\n                          All topologySpreadConstraints are ANDed.\n                        items:\n                          description: TopologySpreadConstraint specifies how to spread\n                            matching pods among the given topology.\n                          properties:\n                            labelSelector:\n                              description: |-\n                                LabelSelector is used to find matching pods.\n                                Pods that match this label selector are counted to determine the number of pods\n                                in their corresponding topology domain.\n                              properties:\n                                matchExpressions:\n                                  description: matchExpressions is a list of label\n                                    selector requirements. The requirements are ANDed.\n                                  items:\n                                    description: |-\n                                      A label selector requirement is a selector that contains values, a key, and an operator that\n                                      relates the key and values.\n                                    properties:\n                                      key:\n                                        description: key is the label key that the\n                                          selector applies to.\n                                        type: string\n                                      operator:\n                                        description: |-\n                                          operator represents a key's relationship to a set of values.\n                                          Valid operators are In, NotIn, Exists and DoesNotExist.\n                                        type: string\n                                      values:\n                                        description: |-\n                                          values is an array of string values. If the operator is In or NotIn,\n                                          the values array must be non-empty. If the operator is Exists or DoesNotExist,\n                                          the values array must be empty. This array is replaced during a strategic\n                                          merge patch.\n                                        items:\n                                          type: string\n                                        type: array\n                                        x-kubernetes-list-type: atomic\n                                    required:\n                                    - key\n                                    - operator\n                                    type: object\n                                  type: array\n                                  x-kubernetes-list-type: atomic\n                                matchLabels:\n                                  additionalProperties:\n                                    type: string\n                                  description: |-\n                                    matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\n                                    map is equivalent to an element of matchExpressions, whose key field is \"key\", the\n                                    operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.\n                                  type: object\n                              type: object\n                              x-kubernetes-map-type: atomic\n                            matchLabelKeys:\n                              description: |-\n                                MatchLabelKeys is a set of pod label keys to select the pods over which\n                                spreading will be calculated. The keys are used to lookup values from the\n                                incoming pod labels, those key-value labels are ANDed with labelSelector\n                                to select the group of existing pods over which spreading will be calculated\n                                for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector.\n                                MatchLabelKeys cannot be set when LabelSelector isn't set.\n                                Keys that don't exist in the incoming pod labels will\n                                be ignored. A null or empty list means only match against labelSelector.\n\n                                This is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default).\n                              items:\n                                type: string\n                              type: array\n                              x-kubernetes-list-type: atomic\n                            maxSkew:\n                              description: |-\n                                MaxSkew describes the degree to which pods may be unevenly distributed.\n                                When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference\n                                between the number of matching pods in the target topology and the global minimum.\n                                The global minimum is the minimum number of matching pods in an eligible domain\n                                or zero if the number of eligible domains is less than MinDomains.\n                                For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same\n                                labelSelector spread as 2/2/1:\n                                In this case, the global minimum is 1.\n                                | zone1 | zone2 | zone3 |\n                                |  P P  |  P P  |   P   |\n                                - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2;\n                                scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2)\n                                violate MaxSkew(1).\n                                - if MaxSkew is 2, incoming pod can be scheduled onto any zone.\n                                When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence\n                                to topologies that satisfy it.\n                                It's a required field. Default value is 1 and 0 is not allowed.\n                              format: int32\n                              type: integer\n                            minDomains:\n                              description: |-\n                                MinDomains indicates a minimum number of eligible domains.\n                                When the number of eligible domains with matching topology keys is less than minDomains,\n                                Pod Topology Spread treats \"global minimum\" as 0, and then the calculation of Skew is performed.\n                                And when the number of eligible domains with matching topology keys equals or greater than minDomains,\n                                this value has no effect on scheduling.\n                                As a result, when the number of eligible domains is less than minDomains,\n                                scheduler won't schedule more than maxSkew Pods to those domains.\n                                If value is nil, the constraint behaves as if MinDomains is equal to 1.\n                                Valid values are integers greater than 0.\n                                When value is not nil, WhenUnsatisfiable must be DoNotSchedule.\n\n                                For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same\n                                labelSelector spread as 2/2/2:\n                                | zone1 | zone2 | zone3 |\n                                |  P P  |  P P  |  P P  |\n                                The number of domains is less than 5(MinDomains), so \"global minimum\" is treated as 0.\n                                In this situation, new pod with the same labelSelector cannot be scheduled,\n                                because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones,\n                                it will violate MaxSkew.\n                              format: int32\n                              type: integer\n                            nodeAffinityPolicy:\n                              description: |-\n                                NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector\n                                when calculating pod topology spread skew. Options are:\n                                - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations.\n                                - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations.\n\n                                If this value is nil, the behavior is equivalent to the Honor policy.\n                              type: string\n                            nodeTaintsPolicy:\n                              description: |-\n                                NodeTaintsPolicy indicates how we will treat node taints when calculating\n                                pod topology spread skew. Options are:\n                                - Honor: nodes without taints, along with tainted nodes for which the incoming pod\n                                has a toleration, are included.\n                                - Ignore: node taints are ignored. All nodes are included.\n\n                                If this value is nil, the behavior is equivalent to the Ignore policy.\n                              type: string\n                            topologyKey:\n                              description: |-\n                                TopologyKey is the key of node labels. Nodes that have a label with this key\n                                and identical values are considered to be in the same topology.\n                                We consider each <key, value> as a \"bucket\", and try to put balanced number\n                                of pods into each bucket.\n                                We define a domain as a particular instance of a topology.\n                                Also, we define an eligible domain as a domain whose nodes meet the requirements of\n                                nodeAffinityPolicy and nodeTaintsPolicy.\n                                e.g. If TopologyKey is \"kubernetes.io/hostname\", each Node is a domain of that topology.\n                                And, if TopologyKey is \"topology.kubernetes.io/zone\", each zone is a domain of that topology.\n                                It's a required field.\n                              type: string\n                            whenUnsatisfiable:\n                              description: |-\n                                WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy\n                                the spread constraint.\n                                - DoNotSchedule (default) tells the scheduler not to schedule it.\n                                - ScheduleAnyway tells the scheduler to schedule the pod in any location,\n                                  but giving higher precedence to topologies that would help reduce the\n                                  skew.\n                                A constraint is considered \"Unsatisfiable\" for an incoming pod\n                                if and only if every possible node assignment for that pod would violate\n                                \"MaxSkew\" on some topology.\n                                For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same\n                                labelSelector spread as 3/1/1:\n                                | zone1 | zone2 | zone3 |\n                                | P P P |   P   |   P   |\n                                If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled\n                                to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies\n                                MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler\n                                won't make it *more* imbalanced.\n                                It's a required field.\n                              type: string\n                          required:\n                          - maxSkew\n                          - topologyKey\n                          - whenUnsatisfiable\n                          type: object\n                        type: array\n                        x-kubernetes-list-map-keys:\n                        - topologyKey\n                        - whenUnsatisfiable\n                        x-kubernetes-list-type: map\n                      volumes:\n                        description: |-\n                          List of volumes that can be mounted by containers belonging to the pod.\n                          More info: https://kubernetes.io/docs/concepts/storage/volumes\n                        items:\n                          description: Volume represents a named volume in a pod that\n                            may be accessed by any container in the pod.\n                          properties:\n                            awsElasticBlockStore:\n                              description: |-\n                                awsElasticBlockStore represents an AWS Disk resource that is attached to a\n                                kubelet's host machine and then exposed to the pod.\n                                Deprecated: AWSElasticBlockStore is deprecated. All operations for the in-tree\n                                awsElasticBlockStore type are redirected to the ebs.csi.aws.com CSI driver.\n                                More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore\n                              properties:\n                                fsType:\n                                  description: |-\n                                    fsType is the filesystem type of the volume that you want to mount.\n                                    Tip: Ensure that the filesystem type is supported by the host operating system.\n                                    Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.\n                                    More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore\n                                  type: string\n                                partition:\n                                  description: |-\n                                    partition is the partition in the volume that you want to mount.\n                                    If omitted, the default is to mount by volume name.\n                                    Examples: For volume /dev/sda1, you specify the partition as \"1\".\n                                    Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty).\n                                  format: int32\n                                  type: integer\n                                readOnly:\n                                  description: |-\n                                    readOnly value true will force the readOnly setting in VolumeMounts.\n                                    More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore\n                                  type: boolean\n                                volumeID:\n                                  description: |-\n                                    volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume).\n                                    More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore\n                                  type: string\n                              required:\n                              - volumeID\n                              type: object\n                            azureDisk:\n                              description: |-\n                                azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.\n                                Deprecated: AzureDisk is deprecated. All operations for the in-tree azureDisk type\n                                are redirected to the disk.csi.azure.com CSI driver.\n                              properties:\n                                cachingMode:\n                                  description: 'cachingMode is the Host Caching mode:\n                                    None, Read Only, Read Write.'\n                                  type: string\n                                diskName:\n                                  description: diskName is the Name of the data disk\n                                    in the blob storage\n                                  type: string\n                                diskURI:\n                                  description: diskURI is the URI of data disk in\n                                    the blob storage\n                                  type: string\n                                fsType:\n                                  default: ext4\n                                  description: |-\n                                    fsType is Filesystem type to mount.\n                                    Must be a filesystem type supported by the host operating system.\n                                    Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.\n                                  type: string\n                                kind:\n                                  description: 'kind expected values are Shared: multiple\n                                    blob disks per storage account  Dedicated: single\n                                    blob disk per storage account  Managed: azure\n                                    managed data disk (only in managed availability\n                                    set). defaults to shared'\n                                  type: string\n                                readOnly:\n                                  default: false\n                                  description: |-\n                                    readOnly Defaults to false (read/write). ReadOnly here will force\n                                    the ReadOnly setting in VolumeMounts.\n                                  type: boolean\n                              required:\n                              - diskName\n                              - diskURI\n                              type: object\n                            azureFile:\n                              description: |-\n                                azureFile represents an Azure File Service mount on the host and bind mount to the pod.\n                                Deprecated: AzureFile is deprecated. All operations for the in-tree azureFile type\n                                are redirected to the file.csi.azure.com CSI driver.\n                              properties:\n                                readOnly:\n                                  description: |-\n                                    readOnly defaults to false (read/write). ReadOnly here will force\n                                    the ReadOnly setting in VolumeMounts.\n                                  type: boolean\n                                secretName:\n                                  description: secretName is the  name of secret that\n                                    contains Azure Storage Account Name and Key\n                                  type: string\n                                shareName:\n                                  description: shareName is the azure share Name\n                                  type: string\n                              required:\n                              - secretName\n                              - shareName\n                              type: object\n                            cephfs:\n                              description: |-\n                                cephFS represents a Ceph FS mount on the host that shares a pod's lifetime.\n                                Deprecated: CephFS is deprecated and the in-tree cephfs type is no longer supported.\n                              properties:\n                                monitors:\n                                  description: |-\n                                    monitors is Required: Monitors is a collection of Ceph monitors\n                                    More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it\n                                  items:\n                                    type: string\n                                  type: array\n                                  x-kubernetes-list-type: atomic\n                                path:\n                                  description: 'path is Optional: Used as the mounted\n                                    root, rather than the full Ceph tree, default\n                                    is /'\n                                  type: string\n                                readOnly:\n                                  description: |-\n                                    readOnly is Optional: Defaults to false (read/write). ReadOnly here will force\n                                    the ReadOnly setting in VolumeMounts.\n                                    More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it\n                                  type: boolean\n                                secretFile:\n                                  description: |-\n                                    secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret\n                                    More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it\n                                  type: string\n                                secretRef:\n                                  description: |-\n                                    secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty.\n                                    More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it\n                                  properties:\n                                    name:\n                                      default: \"\"\n                                      description: |-\n                                        Name of the referent.\n                                        This field is effectively required, but due to backwards compatibility is\n                                        allowed to be empty. Instances of this type with an empty value here are\n                                        almost certainly wrong.\n                                        More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\n                                      type: string\n                                  type: object\n                                  x-kubernetes-map-type: atomic\n                                user:\n                                  description: |-\n                                    user is optional: User is the rados user name, default is admin\n                                    More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it\n                                  type: string\n                              required:\n                              - monitors\n                              type: object\n                            cinder:\n                              description: |-\n                                cinder represents a cinder volume attached and mounted on kubelets host machine.\n                                Deprecated: Cinder is deprecated. All operations for the in-tree cinder type\n                                are redirected to the cinder.csi.openstack.org CSI driver.\n                                More info: https://examples.k8s.io/mysql-cinder-pd/README.md\n                              properties:\n                                fsType:\n                                  description: |-\n                                    fsType is the filesystem type to mount.\n                                    Must be a filesystem type supported by the host operating system.\n                                    Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.\n                                    More info: https://examples.k8s.io/mysql-cinder-pd/README.md\n                                  type: string\n                                readOnly:\n                                  description: |-\n                                    readOnly defaults to false (read/write). ReadOnly here will force\n                                    the ReadOnly setting in VolumeMounts.\n                                    More info: https://examples.k8s.io/mysql-cinder-pd/README.md\n                                  type: boolean\n                                secretRef:\n                                  description: |-\n                                    secretRef is optional: points to a secret object containing parameters used to connect\n                                    to OpenStack.\n                                  properties:\n                                    name:\n                                      default: \"\"\n                                      description: |-\n                                        Name of the referent.\n                                        This field is effectively required, but due to backwards compatibility is\n                                        allowed to be empty. Instances of this type with an empty value here are\n                                        almost certainly wrong.\n                                        More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\n                                      type: string\n                                  type: object\n                                  x-kubernetes-map-type: atomic\n                                volumeID:\n                                  description: |-\n                                    volumeID used to identify the volume in cinder.\n                                    More info: https://examples.k8s.io/mysql-cinder-pd/README.md\n                                  type: string\n                              required:\n                              - volumeID\n                              type: object\n                            configMap:\n                              description: configMap represents a configMap that should\n                                populate this volume\n                              properties:\n                                defaultMode:\n                                  description: |-\n                                    defaultMode is optional: mode bits used to set permissions on created files by default.\n                                    Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\n                                    YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\n                                    Defaults to 0644.\n                                    Directories within the path are not affected by this setting.\n                                    This might be in conflict with other options that affect the file\n                                    mode, like fsGroup, and the result can be other mode bits set.\n                                  format: int32\n                                  type: integer\n                                items:\n                                  description: |-\n                                    items if unspecified, each key-value pair in the Data field of the referenced\n                                    ConfigMap will be projected into the volume as a file whose name is the\n                                    key and content is the value. If specified, the listed keys will be\n                                    projected into the specified paths, and unlisted keys will not be\n                                    present. If a key is specified which is not present in the ConfigMap,\n                                    the volume setup will error unless it is marked optional. Paths must be\n                                    relative and may not contain the '..' path or start with '..'.\n                                  items:\n                                    description: Maps a string key to a path within\n                                      a volume.\n                                    properties:\n                                      key:\n                                        description: key is the key to project.\n                                        type: string\n                                      mode:\n                                        description: |-\n                                          mode is Optional: mode bits used to set permissions on this file.\n                                          Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\n                                          YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\n                                          If not specified, the volume defaultMode will be used.\n                                          This might be in conflict with other options that affect the file\n                                          mode, like fsGroup, and the result can be other mode bits set.\n                                        format: int32\n                                        type: integer\n                                      path:\n                                        description: |-\n                                          path is the relative path of the file to map the key to.\n                                          May not be an absolute path.\n                                          May not contain the path element '..'.\n                                          May not start with the string '..'.\n                                        type: string\n                                    required:\n                                    - key\n                                    - path\n                                    type: object\n                                  type: array\n                                  x-kubernetes-list-type: atomic\n                                name:\n                                  default: \"\"\n                                  description: |-\n                                    Name of the referent.\n                                    This field is effectively required, but due to backwards compatibility is\n                                    allowed to be empty. Instances of this type with an empty value here are\n                                    almost certainly wrong.\n                                    More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\n                                  type: string\n                                optional:\n                                  description: optional specify whether the ConfigMap\n                                    or its keys must be defined\n                                  type: boolean\n                              type: object\n                              x-kubernetes-map-type: atomic\n                            csi:\n                              description: csi (Container Storage Interface) represents\n                                ephemeral storage that is handled by certain external\n                                CSI drivers.\n                              properties:\n                                driver:\n                                  description: |-\n                                    driver is the name of the CSI driver that handles this volume.\n                                    Consult with your admin for the correct name as registered in the cluster.\n                                  type: string\n                                fsType:\n                                  description: |-\n                                    fsType to mount. Ex. \"ext4\", \"xfs\", \"ntfs\".\n                                    If not provided, the empty value is passed to the associated CSI driver\n                                    which will determine the default filesystem to apply.\n                                  type: string\n                                nodePublishSecretRef:\n                                  description: |-\n                                    nodePublishSecretRef is a reference to the secret object containing\n                                    sensitive information to pass to the CSI driver to complete the CSI\n                                    NodePublishVolume and NodeUnpublishVolume calls.\n                                    This field is optional, and  may be empty if no secret is required. If the\n                                    secret object contains more than one secret, all secret references are passed.\n                                  properties:\n                                    name:\n                                      default: \"\"\n                                      description: |-\n                                        Name of the referent.\n                                        This field is effectively required, but due to backwards compatibility is\n                                        allowed to be empty. Instances of this type with an empty value here are\n                                        almost certainly wrong.\n                                        More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\n                                      type: string\n                                  type: object\n                                  x-kubernetes-map-type: atomic\n                                readOnly:\n                                  description: |-\n                                    readOnly specifies a read-only configuration for the volume.\n                                    Defaults to false (read/write).\n                                  type: boolean\n                                volumeAttributes:\n                                  additionalProperties:\n                                    type: string\n                                  description: |-\n                                    volumeAttributes stores driver-specific properties that are passed to the CSI\n                                    driver. Consult your driver's documentation for supported values.\n                                  type: object\n                              required:\n                              - driver\n                              type: object\n                            downwardAPI:\n                              description: downwardAPI represents downward API about\n                                the pod that should populate this volume\n                              properties:\n                                defaultMode:\n                                  description: |-\n                                    Optional: mode bits to use on created files by default. Must be a\n                                    Optional: mode bits used to set permissions on created files by default.\n                                    Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\n                                    YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\n                                    Defaults to 0644.\n                                    Directories within the path are not affected by this setting.\n                                    This might be in conflict with other options that affect the file\n                                    mode, like fsGroup, and the result can be other mode bits set.\n                                  format: int32\n                                  type: integer\n                                items:\n                                  description: Items is a list of downward API volume\n                                    file\n                                  items:\n                                    description: DownwardAPIVolumeFile represents\n                                      information to create the file containing the\n                                      pod field\n                                    properties:\n                                      fieldRef:\n                                        description: 'Required: Selects a field of\n                                          the pod: only annotations, labels, name,\n                                          namespace and uid are supported.'\n                                        properties:\n                                          apiVersion:\n                                            description: Version of the schema the\n                                              FieldPath is written in terms of, defaults\n                                              to \"v1\".\n                                            type: string\n                                          fieldPath:\n                                            description: Path of the field to select\n                                              in the specified API version.\n                                            type: string\n                                        required:\n                                        - fieldPath\n                                        type: object\n                                        x-kubernetes-map-type: atomic\n                                      mode:\n                                        description: |-\n                                          Optional: mode bits used to set permissions on this file, must be an octal value\n                                          between 0000 and 0777 or a decimal value between 0 and 511.\n                                          YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\n                                          If not specified, the volume defaultMode will be used.\n                                          This might be in conflict with other options that affect the file\n                                          mode, like fsGroup, and the result can be other mode bits set.\n                                        format: int32\n                                        type: integer\n                                      path:\n                                        description: 'Required: Path is  the relative\n                                          path name of the file to be created. Must\n                                          not be absolute or contain the ''..'' path.\n                                          Must be utf-8 encoded. The first item of\n                                          the relative path must not start with ''..'''\n                                        type: string\n                                      resourceFieldRef:\n                                        description: |-\n                                          Selects a resource of the container: only resources limits and requests\n                                          (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.\n                                        properties:\n                                          containerName:\n                                            description: 'Container name: required\n                                              for volumes, optional for env vars'\n                                            type: string\n                                          divisor:\n                                            anyOf:\n                                            - type: integer\n                                            - type: string\n                                            description: Specifies the output format\n                                              of the exposed resources, defaults to\n                                              \"1\"\n                                            pattern: ^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$\n                                            x-kubernetes-int-or-string: true\n                                          resource:\n                                            description: 'Required: resource to select'\n                                            type: string\n                                        required:\n                                        - resource\n                                        type: object\n                                        x-kubernetes-map-type: atomic\n                                    required:\n                                    - path\n                                    type: object\n                                  type: array\n                                  x-kubernetes-list-type: atomic\n                              type: object\n                            emptyDir:\n                              description: |-\n                                emptyDir represents a temporary directory that shares a pod's lifetime.\n                                More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir\n                              properties:\n                                medium:\n                                  description: |-\n                                    medium represents what type of storage medium should back this directory.\n                                    The default is \"\" which means to use the node's default medium.\n                                    Must be an empty string (default) or Memory.\n                                    More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir\n                                  type: string\n                                sizeLimit:\n                                  anyOf:\n                                  - type: integer\n                                  - type: string\n                                  description: |-\n                                    sizeLimit is the total amount of local storage required for this EmptyDir volume.\n                                    The size limit is also applicable for memory medium.\n                                    The maximum usage on memory medium EmptyDir would be the minimum value between\n                                    the SizeLimit specified here and the sum of memory limits of all containers in a pod.\n                                    The default is nil which means that the limit is undefined.\n                                    More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir\n                                  pattern: ^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$\n                                  x-kubernetes-int-or-string: true\n                              type: object\n                            ephemeral:\n                              description: |-\n                                ephemeral represents a volume that is handled by a cluster storage driver.\n                                The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts,\n                                and deleted when the pod is removed.\n\n                                Use this if:\n                                a) the volume is only needed while the pod runs,\n                                b) features of normal volumes like restoring from snapshot or capacity\n                                   tracking are needed,\n                                c) the storage driver is specified through a storage class, and\n                                d) the storage driver supports dynamic volume provisioning through\n                                   a PersistentVolumeClaim (see EphemeralVolumeSource for more\n                                   information on the connection between this volume type\n                                   and PersistentVolumeClaim).\n\n                                Use PersistentVolumeClaim or one of the vendor-specific\n                                APIs for volumes that persist for longer than the lifecycle\n                                of an individual pod.\n\n                                Use CSI for light-weight local ephemeral volumes if the CSI driver is meant to\n                                be used that way - see the documentation of the driver for\n                                more information.\n\n                                A pod can use both types of ephemeral volumes and\n                                persistent volumes at the same time.\n                              properties:\n                                volumeClaimTemplate:\n                                  description: |-\n                                    Will be used to create a stand-alone PVC to provision the volume.\n                                    The pod in which this EphemeralVolumeSource is embedded will be the\n                                    owner of the PVC, i.e. the PVC will be deleted together with the\n                                    pod.  The name of the PVC will be `<pod name>-<volume name>` where\n                                    `<volume name>` is the name from the `PodSpec.Volumes` array\n                                    entry. Pod validation will reject the pod if the concatenated name\n                                    is not valid for a PVC (for example, too long).\n\n                                    An existing PVC with that name that is not owned by the pod\n                                    will *not* be used for the pod to avoid using an unrelated\n                                    volume by mistake. Starting the pod is then blocked until\n                                    the unrelated PVC is removed. If such a pre-created PVC is\n                                    meant to be used by the pod, the PVC has to updated with an\n                                    owner reference to the pod once the pod exists. Normally\n                                    this should not be necessary, but it may be useful when\n                                    manually reconstructing a broken cluster.\n\n                                    This field is read-only and no changes will be made by Kubernetes\n                                    to the PVC after it has been created.\n\n                                    Required, must not be nil.\n                                  properties:\n                                    metadata:\n                                      description: |-\n                                        May contain labels and annotations that will be copied into the PVC\n                                        when creating it. No other fields are allowed and will be rejected during\n                                        validation.\n                                      type: object\n                                    spec:\n                                      description: |-\n                                        The specification for the PersistentVolumeClaim. The entire content is\n                                        copied unchanged into the PVC that gets created from this\n                                        template. The same fields as in a PersistentVolumeClaim\n                                        are also valid here.\n                                      properties:\n                                        accessModes:\n                                          description: |-\n                                            accessModes contains the desired access modes the volume should have.\n                                            More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1\n                                          items:\n                                            type: string\n                                          type: array\n                                          x-kubernetes-list-type: atomic\n                                        dataSource:\n                                          description: |-\n                                            dataSource field can be used to specify either:\n                                            * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot)\n                                            * An existing PVC (PersistentVolumeClaim)\n                                            If the provisioner or an external controller can support the specified data source,\n                                            it will create a new volume based on the contents of the specified data source.\n                                            When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef,\n                                            and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified.\n                                            If the namespace is specified, then dataSourceRef will not be copied to dataSource.\n                                          properties:\n                                            apiGroup:\n                                              description: |-\n                                                APIGroup is the group for the resource being referenced.\n                                                If APIGroup is not specified, the specified Kind must be in the core API group.\n                                                For any other third-party types, APIGroup is required.\n                                              type: string\n                                            kind:\n                                              description: Kind is the type of resource\n                                                being referenced\n                                              type: string\n                                            name:\n                                              description: Name is the name of resource\n                                                being referenced\n                                              type: string\n                                          required:\n                                          - kind\n                                          - name\n                                          type: object\n                                          x-kubernetes-map-type: atomic\n                                        dataSourceRef:\n                                          description: |-\n                                            dataSourceRef specifies the object from which to populate the volume with data, if a non-empty\n                                            volume is desired. This may be any object from a non-empty API group (non\n                                            core object) or a PersistentVolumeClaim object.\n                                            When this field is specified, volume binding will only succeed if the type of\n                                            the specified object matches some installed volume populator or dynamic\n                                            provisioner.\n                                            This field will replace the functionality of the dataSource field and as such\n                                            if both fields are non-empty, they must have the same value. For backwards\n                                            compatibility, when namespace isn't specified in dataSourceRef,\n                                            both fields (dataSource and dataSourceRef) will be set to the same\n                                            value automatically if one of them is empty and the other is non-empty.\n                                            When namespace is specified in dataSourceRef,\n                                            dataSource isn't set to the same value and must be empty.\n                                            There are three important differences between dataSource and dataSourceRef:\n                                            * While dataSource only allows two specific types of objects, dataSourceRef\n                                              allows any non-core object, as well as PersistentVolumeClaim objects.\n                                            * While dataSource ignores disallowed values (dropping them), dataSourceRef\n                                              preserves all values, and generates an error if a disallowed value is\n                                              specified.\n                                            * While dataSource only allows local objects, dataSourceRef allows objects\n                                              in any namespaces.\n                                            (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled.\n                                            (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled.\n                                          properties:\n                                            apiGroup:\n                                              description: |-\n                                                APIGroup is the group for the resource being referenced.\n                                                If APIGroup is not specified, the specified Kind must be in the core API group.\n                                                For any other third-party types, APIGroup is required.\n                                              type: string\n                                            kind:\n                                              description: Kind is the type of resource\n                                                being referenced\n                                              type: string\n                                            name:\n                                              description: Name is the name of resource\n                                                being referenced\n                                              type: string\n                                            namespace:\n                                              description: |-\n                                                Namespace is the namespace of resource being referenced\n                                                Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details.\n                                                (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.\n                                              type: string\n                                          required:\n                                          - kind\n                                          - name\n                                          type: object\n                                        resources:\n                                          description: |-\n                                            resources represents the minimum resources the volume should have.\n                                            If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements\n                                            that are lower than previous value but must still be higher than capacity recorded in the\n                                            status field of the claim.\n                                            More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources\n                                          properties:\n                                            limits:\n                                              additionalProperties:\n                                                anyOf:\n                                                - type: integer\n                                                - type: string\n                                                pattern: ^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$\n                                                x-kubernetes-int-or-string: true\n                                              description: |-\n                                                Limits describes the maximum amount of compute resources allowed.\n                                                More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/\n                                              type: object\n                                            requests:\n                                              additionalProperties:\n                                                anyOf:\n                                                - type: integer\n                                                - type: string\n                                                pattern: ^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$\n                                                x-kubernetes-int-or-string: true\n                                              description: |-\n                                                Requests describes the minimum amount of compute resources required.\n                                                If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,\n                                                otherwise to an implementation-defined value. Requests cannot exceed Limits.\n                                                More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/\n                                              type: object\n                                          type: object\n                                        selector:\n                                          description: selector is a label query over\n                                            volumes to consider for binding.\n                                          properties:\n                                            matchExpressions:\n                                              description: matchExpressions is a list\n                                                of label selector requirements. The\n                                                requirements are ANDed.\n                                              items:\n                                                description: |-\n                                                  A label selector requirement is a selector that contains values, a key, and an operator that\n                                                  relates the key and values.\n                                                properties:\n                                                  key:\n                                                    description: key is the label\n                                                      key that the selector applies\n                                                      to.\n                                                    type: string\n                                                  operator:\n                                                    description: |-\n                                                      operator represents a key's relationship to a set of values.\n                                                      Valid operators are In, NotIn, Exists and DoesNotExist.\n                                                    type: string\n                                                  values:\n                                                    description: |-\n                                                      values is an array of string values. If the operator is In or NotIn,\n                                                      the values array must be non-empty. If the operator is Exists or DoesNotExist,\n                                                      the values array must be empty. This array is replaced during a strategic\n                                                      merge patch.\n                                                    items:\n                                                      type: string\n                                                    type: array\n                                                    x-kubernetes-list-type: atomic\n                                                required:\n                                                - key\n                                                - operator\n                                                type: object\n                                              type: array\n                                              x-kubernetes-list-type: atomic\n                                            matchLabels:\n                                              additionalProperties:\n                                                type: string\n                                              description: |-\n                                                matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\n                                                map is equivalent to an element of matchExpressions, whose key field is \"key\", the\n                                                operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.\n                                              type: object\n                                          type: object\n                                          x-kubernetes-map-type: atomic\n                                        storageClassName:\n                                          description: |-\n                                            storageClassName is the name of the StorageClass required by the claim.\n                                            More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1\n                                          type: string\n                                        volumeAttributesClassName:\n                                          description: |-\n                                            volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim.\n                                            If specified, the CSI driver will create or update the volume with the attributes defined\n                                            in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName,\n                                            it can be changed after the claim is created. An empty string or nil value indicates that no\n                                            VolumeAttributesClass will be applied to the claim. If the claim enters an Infeasible error state,\n                                            this field can be reset to its previous value (including nil) to cancel the modification.\n                                            If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be\n                                            set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource\n                                            exists.\n                                            More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/\n                                          type: string\n                                        volumeMode:\n                                          description: |-\n                                            volumeMode defines what type of volume is required by the claim.\n                                            Value of Filesystem is implied when not included in claim spec.\n                                          type: string\n                                        volumeName:\n                                          description: volumeName is the binding reference\n                                            to the PersistentVolume backing this claim.\n                                          type: string\n                                      type: object\n                                  required:\n                                  - spec\n                                  type: object\n                              type: object\n                            fc:\n                              description: fc represents a Fibre Channel resource\n                                that is attached to a kubelet's host machine and then\n                                exposed to the pod.\n                              properties:\n                                fsType:\n                                  description: |-\n                                    fsType is the filesystem type to mount.\n                                    Must be a filesystem type supported by the host operating system.\n                                    Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.\n                                  type: string\n                                lun:\n                                  description: 'lun is Optional: FC target lun number'\n                                  format: int32\n                                  type: integer\n                                readOnly:\n                                  description: |-\n                                    readOnly is Optional: Defaults to false (read/write). ReadOnly here will force\n                                    the ReadOnly setting in VolumeMounts.\n                                  type: boolean\n                                targetWWNs:\n                                  description: 'targetWWNs is Optional: FC target\n                                    worldwide names (WWNs)'\n                                  items:\n                                    type: string\n                                  type: array\n                                  x-kubernetes-list-type: atomic\n                                wwids:\n                                  description: |-\n                                    wwids Optional: FC volume world wide identifiers (wwids)\n                                    Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.\n                                  items:\n                                    type: string\n                                  type: array\n                                  x-kubernetes-list-type: atomic\n                              type: object\n                            flexVolume:\n                              description: |-\n                                flexVolume represents a generic volume resource that is\n                                provisioned/attached using an exec based plugin.\n                                Deprecated: FlexVolume is deprecated. Consider using a CSIDriver instead.\n                              properties:\n                                driver:\n                                  description: driver is the name of the driver to\n                                    use for this volume.\n                                  type: string\n                                fsType:\n                                  description: |-\n                                    fsType is the filesystem type to mount.\n                                    Must be a filesystem type supported by the host operating system.\n                                    Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script.\n                                  type: string\n                                options:\n                                  additionalProperties:\n                                    type: string\n                                  description: 'options is Optional: this field holds\n                                    extra command options if any.'\n                                  type: object\n                                readOnly:\n                                  description: |-\n                                    readOnly is Optional: defaults to false (read/write). ReadOnly here will force\n                                    the ReadOnly setting in VolumeMounts.\n                                  type: boolean\n                                secretRef:\n                                  description: |-\n                                    secretRef is Optional: secretRef is reference to the secret object containing\n                                    sensitive information to pass to the plugin scripts. This may be\n                                    empty if no secret object is specified. If the secret object\n                                    contains more than one secret, all secrets are passed to the plugin\n                                    scripts.\n                                  properties:\n                                    name:\n                                      default: \"\"\n                                      description: |-\n                                        Name of the referent.\n                                        This field is effectively required, but due to backwards compatibility is\n                                        allowed to be empty. Instances of this type with an empty value here are\n                                        almost certainly wrong.\n                                        More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\n                                      type: string\n                                  type: object\n                                  x-kubernetes-map-type: atomic\n                              required:\n                              - driver\n                              type: object\n                            flocker:\n                              description: |-\n                                flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running.\n                                Deprecated: Flocker is deprecated and the in-tree flocker type is no longer supported.\n                              properties:\n                                datasetName:\n                                  description: |-\n                                    datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker\n                                    should be considered as deprecated\n                                  type: string\n                                datasetUUID:\n                                  description: datasetUUID is the UUID of the dataset.\n                                    This is unique identifier of a Flocker dataset\n                                  type: string\n                              type: object\n                            gcePersistentDisk:\n                              description: |-\n                                gcePersistentDisk represents a GCE Disk resource that is attached to a\n                                kubelet's host machine and then exposed to the pod.\n                                Deprecated: GCEPersistentDisk is deprecated. All operations for the in-tree\n                                gcePersistentDisk type are redirected to the pd.csi.storage.gke.io CSI driver.\n                                More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk\n                              properties:\n                                fsType:\n                                  description: |-\n                                    fsType is filesystem type of the volume that you want to mount.\n                                    Tip: Ensure that the filesystem type is supported by the host operating system.\n                                    Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.\n                                    More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk\n                                  type: string\n                                partition:\n                                  description: |-\n                                    partition is the partition in the volume that you want to mount.\n                                    If omitted, the default is to mount by volume name.\n                                    Examples: For volume /dev/sda1, you specify the partition as \"1\".\n                                    Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty).\n                                    More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk\n                                  format: int32\n                                  type: integer\n                                pdName:\n                                  description: |-\n                                    pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE.\n                                    More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk\n                                  type: string\n                                readOnly:\n                                  description: |-\n                                    readOnly here will force the ReadOnly setting in VolumeMounts.\n                                    Defaults to false.\n                                    More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk\n                                  type: boolean\n                              required:\n                              - pdName\n                              type: object\n                            gitRepo:\n                              description: |-\n                                gitRepo represents a git repository at a particular revision.\n                                Deprecated: GitRepo is deprecated. To provision a container with a git repo, mount an\n                                EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir\n                                into the Pod's container.\n                              properties:\n                                directory:\n                                  description: |-\n                                    directory is the target directory name.\n                                    Must not contain or start with '..'.  If '.' is supplied, the volume directory will be the\n                                    git repository.  Otherwise, if specified, the volume will contain the git repository in\n                                    the subdirectory with the given name.\n                                  type: string\n                                repository:\n                                  description: repository is the URL\n                                  type: string\n                                revision:\n                                  description: revision is the commit hash for the\n                                    specified revision.\n                                  type: string\n                              required:\n                              - repository\n                              type: object\n                            glusterfs:\n                              description: |-\n                                glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime.\n                                Deprecated: Glusterfs is deprecated and the in-tree glusterfs type is no longer supported.\n                              properties:\n                                endpoints:\n                                  description: endpoints is the endpoint name that\n                                    details Glusterfs topology.\n                                  type: string\n                                path:\n                                  description: |-\n                                    path is the Glusterfs volume path.\n                                    More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod\n                                  type: string\n                                readOnly:\n                                  description: |-\n                                    readOnly here will force the Glusterfs volume to be mounted with read-only permissions.\n                                    Defaults to false.\n                                    More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod\n                                  type: boolean\n                              required:\n                              - endpoints\n                              - path\n                              type: object\n                            hostPath:\n                              description: |-\n                                hostPath represents a pre-existing file or directory on the host\n                                machine that is directly exposed to the container. This is generally\n                                used for system agents or other privileged things that are allowed\n                                to see the host machine. Most containers will NOT need this.\n                                More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath\n                              properties:\n                                path:\n                                  description: |-\n                                    path of the directory on the host.\n                                    If the path is a symlink, it will follow the link to the real path.\n                                    More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath\n                                  type: string\n                                type:\n                                  description: |-\n                                    type for HostPath Volume\n                                    Defaults to \"\"\n                                    More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath\n                                  type: string\n                              required:\n                              - path\n                              type: object\n                            image:\n                              description: |-\n                                image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine.\n                                The volume is resolved at pod startup depending on which PullPolicy value is provided:\n\n                                - Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails.\n                                - Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present.\n                                - IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails.\n\n                                The volume gets re-resolved if the pod gets deleted and recreated, which means that new remote content will become available on pod recreation.\n                                A failure to resolve or pull the image during pod startup will block containers from starting and may add significant latency. Failures will be retried using normal volume backoff and will be reported on the pod reason and message.\n                                The types of objects that may be mounted by this volume are defined by the container runtime implementation on a host machine and at minimum must include all valid types supported by the container image field.\n                                The OCI object gets mounted in a single directory (spec.containers[*].volumeMounts.mountPath) by merging the manifest layers in the same way as for container images.\n                                The volume will be mounted read-only (ro) and non-executable files (noexec).\n                                Sub path mounts for containers are not supported (spec.containers[*].volumeMounts.subpath) before 1.33.\n                                The field spec.securityContext.fsGroupChangePolicy has no effect on this volume type.\n                              properties:\n                                pullPolicy:\n                                  description: |-\n                                    Policy for pulling OCI objects. Possible values are:\n                                    Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails.\n                                    Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present.\n                                    IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails.\n                                    Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.\n                                  type: string\n                                reference:\n                                  description: |-\n                                    Required: Image or artifact reference to be used.\n                                    Behaves in the same way as pod.spec.containers[*].image.\n                                    Pull secrets will be assembled in the same way as for the container image by looking up node credentials, SA image pull secrets, and pod spec image pull secrets.\n                                    More info: https://kubernetes.io/docs/concepts/containers/images\n                                    This field is optional to allow higher level config management to default or override\n                                    container images in workload controllers like Deployments and StatefulSets.\n                                  type: string\n                              type: object\n                            iscsi:\n                              description: |-\n                                iscsi represents an ISCSI Disk resource that is attached to a\n                                kubelet's host machine and then exposed to the pod.\n                                More info: https://kubernetes.io/docs/concepts/storage/volumes/#iscsi\n                              properties:\n                                chapAuthDiscovery:\n                                  description: chapAuthDiscovery defines whether support\n                                    iSCSI Discovery CHAP authentication\n                                  type: boolean\n                                chapAuthSession:\n                                  description: chapAuthSession defines whether support\n                                    iSCSI Session CHAP authentication\n                                  type: boolean\n                                fsType:\n                                  description: |-\n                                    fsType is the filesystem type of the volume that you want to mount.\n                                    Tip: Ensure that the filesystem type is supported by the host operating system.\n                                    Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.\n                                    More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi\n                                  type: string\n                                initiatorName:\n                                  description: |-\n                                    initiatorName is the custom iSCSI Initiator Name.\n                                    If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface\n                                    <target portal>:<volume name> will be created for the connection.\n                                  type: string\n                                iqn:\n                                  description: iqn is the target iSCSI Qualified Name.\n                                  type: string\n                                iscsiInterface:\n                                  default: default\n                                  description: |-\n                                    iscsiInterface is the interface Name that uses an iSCSI transport.\n                                    Defaults to 'default' (tcp).\n                                  type: string\n                                lun:\n                                  description: lun represents iSCSI Target Lun number.\n                                  format: int32\n                                  type: integer\n                                portals:\n                                  description: |-\n                                    portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port\n                                    is other than default (typically TCP ports 860 and 3260).\n                                  items:\n                                    type: string\n                                  type: array\n                                  x-kubernetes-list-type: atomic\n                                readOnly:\n                                  description: |-\n                                    readOnly here will force the ReadOnly setting in VolumeMounts.\n                                    Defaults to false.\n                                  type: boolean\n                                secretRef:\n                                  description: secretRef is the CHAP Secret for iSCSI\n                                    target and initiator authentication\n                                  properties:\n                                    name:\n                                      default: \"\"\n                                      description: |-\n                                        Name of the referent.\n                                        This field is effectively required, but due to backwards compatibility is\n                                        allowed to be empty. Instances of this type with an empty value here are\n                                        almost certainly wrong.\n                                        More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\n                                      type: string\n                                  type: object\n                                  x-kubernetes-map-type: atomic\n                                targetPortal:\n                                  description: |-\n                                    targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port\n                                    is other than default (typically TCP ports 860 and 3260).\n                                  type: string\n                              required:\n                              - iqn\n                              - lun\n                              - targetPortal\n                              type: object\n                            name:\n                              description: |-\n                                name of the volume.\n                                Must be a DNS_LABEL and unique within the pod.\n                                More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\n                              type: string\n                            nfs:\n                              description: |-\n                                nfs represents an NFS mount on the host that shares a pod's lifetime\n                                More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs\n                              properties:\n                                path:\n                                  description: |-\n                                    path that is exported by the NFS server.\n                                    More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs\n                                  type: string\n                                readOnly:\n                                  description: |-\n                                    readOnly here will force the NFS export to be mounted with read-only permissions.\n                                    Defaults to false.\n                                    More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs\n                                  type: boolean\n                                server:\n                                  description: |-\n                                    server is the hostname or IP address of the NFS server.\n                                    More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs\n                                  type: string\n                              required:\n                              - path\n                              - server\n                              type: object\n                            persistentVolumeClaim:\n                              description: |-\n                                persistentVolumeClaimVolumeSource represents a reference to a\n                                PersistentVolumeClaim in the same namespace.\n                                More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims\n                              properties:\n                                claimName:\n                                  description: |-\n                                    claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume.\n                                    More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims\n                                  type: string\n                                readOnly:\n                                  description: |-\n                                    readOnly Will force the ReadOnly setting in VolumeMounts.\n                                    Default false.\n                                  type: boolean\n                              required:\n                              - claimName\n                              type: object\n                            photonPersistentDisk:\n                              description: |-\n                                photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine.\n                                Deprecated: PhotonPersistentDisk is deprecated and the in-tree photonPersistentDisk type is no longer supported.\n                              properties:\n                                fsType:\n                                  description: |-\n                                    fsType is the filesystem type to mount.\n                                    Must be a filesystem type supported by the host operating system.\n                                    Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.\n                                  type: string\n                                pdID:\n                                  description: pdID is the ID that identifies Photon\n                                    Controller persistent disk\n                                  type: string\n                              required:\n                              - pdID\n                              type: object\n                            portworxVolume:\n                              description: |-\n                                portworxVolume represents a portworx volume attached and mounted on kubelets host machine.\n                                Deprecated: PortworxVolume is deprecated. All operations for the in-tree portworxVolume type\n                                are redirected to the pxd.portworx.com CSI driver when the CSIMigrationPortworx feature-gate\n                                is on.\n                              properties:\n                                fsType:\n                                  description: |-\n                                    fSType represents the filesystem type to mount\n                                    Must be a filesystem type supported by the host operating system.\n                                    Ex. \"ext4\", \"xfs\". Implicitly inferred to be \"ext4\" if unspecified.\n                                  type: string\n                                readOnly:\n                                  description: |-\n                                    readOnly defaults to false (read/write). ReadOnly here will force\n                                    the ReadOnly setting in VolumeMounts.\n                                  type: boolean\n                                volumeID:\n                                  description: volumeID uniquely identifies a Portworx\n                                    volume\n                                  type: string\n                              required:\n                              - volumeID\n                              type: object\n                            projected:\n                              description: projected items for all in one resources\n                                secrets, configmaps, and downward API\n                              properties:\n                                defaultMode:\n                                  description: |-\n                                    defaultMode are the mode bits used to set permissions on created files by default.\n                                    Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\n                                    YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\n                                    Directories within the path are not affected by this setting.\n                                    This might be in conflict with other options that affect the file\n                                    mode, like fsGroup, and the result can be other mode bits set.\n                                  format: int32\n                                  type: integer\n                                sources:\n                                  description: |-\n                                    sources is the list of volume projections. Each entry in this list\n                                    handles one source.\n                                  items:\n                                    description: |-\n                                      Projection that may be projected along with other supported volume types.\n                                      Exactly one of these fields must be set.\n                                    properties:\n                                      clusterTrustBundle:\n                                        description: |-\n                                          ClusterTrustBundle allows a pod to access the `.spec.trustBundle` field\n                                          of ClusterTrustBundle objects in an auto-updating file.\n\n                                          Alpha, gated by the ClusterTrustBundleProjection feature gate.\n\n                                          ClusterTrustBundle objects can either be selected by name, or by the\n                                          combination of signer name and a label selector.\n\n                                          Kubelet performs aggressive normalization of the PEM contents written\n                                          into the pod filesystem.  Esoteric PEM features such as inter-block\n                                          comments and block headers are stripped.  Certificates are deduplicated.\n                                          The ordering of certificates within the file is arbitrary, and Kubelet\n                                          may change the order over time.\n                                        properties:\n                                          labelSelector:\n                                            description: |-\n                                              Select all ClusterTrustBundles that match this label selector.  Only has\n                                              effect if signerName is set.  Mutually-exclusive with name.  If unset,\n                                              interpreted as \"match nothing\".  If set but empty, interpreted as \"match\n                                              everything\".\n                                            properties:\n                                              matchExpressions:\n                                                description: matchExpressions is a\n                                                  list of label selector requirements.\n                                                  The requirements are ANDed.\n                                                items:\n                                                  description: |-\n                                                    A label selector requirement is a selector that contains values, a key, and an operator that\n                                                    relates the key and values.\n                                                  properties:\n                                                    key:\n                                                      description: key is the label\n                                                        key that the selector applies\n                                                        to.\n                                                      type: string\n                                                    operator:\n                                                      description: |-\n                                                        operator represents a key's relationship to a set of values.\n                                                        Valid operators are In, NotIn, Exists and DoesNotExist.\n                                                      type: string\n                                                    values:\n                                                      description: |-\n                                                        values is an array of string values. If the operator is In or NotIn,\n                                                        the values array must be non-empty. If the operator is Exists or DoesNotExist,\n                                                        the values array must be empty. This array is replaced during a strategic\n                                                        merge patch.\n                                                      items:\n                                                        type: string\n                                                      type: array\n                                                      x-kubernetes-list-type: atomic\n                                                  required:\n                                                  - key\n                                                  - operator\n                                                  type: object\n                                                type: array\n                                                x-kubernetes-list-type: atomic\n                                              matchLabels:\n                                                additionalProperties:\n                                                  type: string\n                                                description: |-\n                                                  matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\n                                                  map is equivalent to an element of matchExpressions, whose key field is \"key\", the\n                                                  operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.\n                                                type: object\n                                            type: object\n                                            x-kubernetes-map-type: atomic\n                                          name:\n                                            description: |-\n                                              Select a single ClusterTrustBundle by object name.  Mutually-exclusive\n                                              with signerName and labelSelector.\n                                            type: string\n                                          optional:\n                                            description: |-\n                                              If true, don't block pod startup if the referenced ClusterTrustBundle(s)\n                                              aren't available.  If using name, then the named ClusterTrustBundle is\n                                              allowed not to exist.  If using signerName, then the combination of\n                                              signerName and labelSelector is allowed to match zero\n                                              ClusterTrustBundles.\n                                            type: boolean\n                                          path:\n                                            description: Relative path from the volume\n                                              root to write the bundle.\n                                            type: string\n                                          signerName:\n                                            description: |-\n                                              Select all ClusterTrustBundles that match this signer name.\n                                              Mutually-exclusive with name.  The contents of all selected\n                                              ClusterTrustBundles will be unified and deduplicated.\n                                            type: string\n                                        required:\n                                        - path\n                                        type: object\n                                      configMap:\n                                        description: configMap information about the\n                                          configMap data to project\n                                        properties:\n                                          items:\n                                            description: |-\n                                              items if unspecified, each key-value pair in the Data field of the referenced\n                                              ConfigMap will be projected into the volume as a file whose name is the\n                                              key and content is the value. If specified, the listed keys will be\n                                              projected into the specified paths, and unlisted keys will not be\n                                              present. If a key is specified which is not present in the ConfigMap,\n                                              the volume setup will error unless it is marked optional. Paths must be\n                                              relative and may not contain the '..' path or start with '..'.\n                                            items:\n                                              description: Maps a string key to a\n                                                path within a volume.\n                                              properties:\n                                                key:\n                                                  description: key is the key to project.\n                                                  type: string\n                                                mode:\n                                                  description: |-\n                                                    mode is Optional: mode bits used to set permissions on this file.\n                                                    Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\n                                                    YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\n                                                    If not specified, the volume defaultMode will be used.\n                                                    This might be in conflict with other options that affect the file\n                                                    mode, like fsGroup, and the result can be other mode bits set.\n                                                  format: int32\n                                                  type: integer\n                                                path:\n                                                  description: |-\n                                                    path is the relative path of the file to map the key to.\n                                                    May not be an absolute path.\n                                                    May not contain the path element '..'.\n                                                    May not start with the string '..'.\n                                                  type: string\n                                              required:\n                                              - key\n                                              - path\n                                              type: object\n                                            type: array\n                                            x-kubernetes-list-type: atomic\n                                          name:\n                                            default: \"\"\n                                            description: |-\n                                              Name of the referent.\n                                              This field is effectively required, but due to backwards compatibility is\n                                              allowed to be empty. Instances of this type with an empty value here are\n                                              almost certainly wrong.\n                                              More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\n                                            type: string\n                                          optional:\n                                            description: optional specify whether\n                                              the ConfigMap or its keys must be defined\n                                            type: boolean\n                                        type: object\n                                        x-kubernetes-map-type: atomic\n                                      downwardAPI:\n                                        description: downwardAPI information about\n                                          the downwardAPI data to project\n                                        properties:\n                                          items:\n                                            description: Items is a list of DownwardAPIVolume\n                                              file\n                                            items:\n                                              description: DownwardAPIVolumeFile represents\n                                                information to create the file containing\n                                                the pod field\n                                              properties:\n                                                fieldRef:\n                                                  description: 'Required: Selects\n                                                    a field of the pod: only annotations,\n                                                    labels, name, namespace and uid\n                                                    are supported.'\n                                                  properties:\n                                                    apiVersion:\n                                                      description: Version of the\n                                                        schema the FieldPath is written\n                                                        in terms of, defaults to \"v1\".\n                                                      type: string\n                                                    fieldPath:\n                                                      description: Path of the field\n                                                        to select in the specified\n                                                        API version.\n                                                      type: string\n                                                  required:\n                                                  - fieldPath\n                                                  type: object\n                                                  x-kubernetes-map-type: atomic\n                                                mode:\n                                                  description: |-\n                                                    Optional: mode bits used to set permissions on this file, must be an octal value\n                                                    between 0000 and 0777 or a decimal value between 0 and 511.\n                                                    YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\n                                                    If not specified, the volume defaultMode will be used.\n                                                    This might be in conflict with other options that affect the file\n                                                    mode, like fsGroup, and the result can be other mode bits set.\n                                                  format: int32\n                                                  type: integer\n                                                path:\n                                                  description: 'Required: Path is  the\n                                                    relative path name of the file\n                                                    to be created. Must not be absolute\n                                                    or contain the ''..'' path. Must\n                                                    be utf-8 encoded. The first item\n                                                    of the relative path must not\n                                                    start with ''..'''\n                                                  type: string\n                                                resourceFieldRef:\n                                                  description: |-\n                                                    Selects a resource of the container: only resources limits and requests\n                                                    (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.\n                                                  properties:\n                                                    containerName:\n                                                      description: 'Container name:\n                                                        required for volumes, optional\n                                                        for env vars'\n                                                      type: string\n                                                    divisor:\n                                                      anyOf:\n                                                      - type: integer\n                                                      - type: string\n                                                      description: Specifies the output\n                                                        format of the exposed resources,\n                                                        defaults to \"1\"\n                                                      pattern: ^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$\n                                                      x-kubernetes-int-or-string: true\n                                                    resource:\n                                                      description: 'Required: resource\n                                                        to select'\n                                                      type: string\n                                                  required:\n                                                  - resource\n                                                  type: object\n                                                  x-kubernetes-map-type: atomic\n                                              required:\n                                              - path\n                                              type: object\n                                            type: array\n                                            x-kubernetes-list-type: atomic\n                                        type: object\n                                      podCertificate:\n                                        description: |-\n                                          Projects an auto-rotating credential bundle (private key and certificate\n                                          chain) that the pod can use either as a TLS client or server.\n\n                                          Kubelet generates a private key and uses it to send a\n                                          PodCertificateRequest to the named signer.  Once the signer approves the\n                                          request and issues a certificate chain, Kubelet writes the key and\n                                          certificate chain to the pod filesystem.  The pod does not start until\n                                          certificates have been issued for each podCertificate projected volume\n                                          source in its spec.\n\n                                          Kubelet will begin trying to rotate the certificate at the time indicated\n                                          by the signer using the PodCertificateRequest.Status.BeginRefreshAt\n                                          timestamp.\n\n                                          Kubelet can write a single file, indicated by the credentialBundlePath\n                                          field, or separate files, indicated by the keyPath and\n                                          certificateChainPath fields.\n\n                                          The credential bundle is a single file in PEM format.  The first PEM\n                                          entry is the private key (in PKCS#8 format), and the remaining PEM\n                                          entries are the certificate chain issued by the signer (typically,\n                                          signers will return their certificate chain in leaf-to-root order).\n\n                                          Prefer using the credential bundle format, since your application code\n                                          can read it atomically.  If you use keyPath and certificateChainPath,\n                                          your application must make two separate file reads. If these coincide\n                                          with a certificate rotation, it is possible that the private key and leaf\n                                          certificate you read may not correspond to each other.  Your application\n                                          will need to check for this condition, and re-read until they are\n                                          consistent.\n\n                                          The named signer controls chooses the format of the certificate it\n                                          issues; consult the signer implementation's documentation to learn how to\n                                          use the certificates it issues.\n                                        properties:\n                                          certificateChainPath:\n                                            description: |-\n                                              Write the certificate chain at this path in the projected volume.\n\n                                              Most applications should use credentialBundlePath.  When using keyPath\n                                              and certificateChainPath, your application needs to check that the key\n                                              and leaf certificate are consistent, because it is possible to read the\n                                              files mid-rotation.\n                                            type: string\n                                          credentialBundlePath:\n                                            description: |-\n                                              Write the credential bundle at this path in the projected volume.\n\n                                              The credential bundle is a single file that contains multiple PEM blocks.\n                                              The first PEM block is a PRIVATE KEY block, containing a PKCS#8 private\n                                              key.\n\n                                              The remaining blocks are CERTIFICATE blocks, containing the issued\n                                              certificate chain from the signer (leaf and any intermediates).\n\n                                              Using credentialBundlePath lets your Pod's application code make a single\n                                              atomic read that retrieves a consistent key and certificate chain.  If you\n                                              project them to separate files, your application code will need to\n                                              additionally check that the leaf certificate was issued to the key.\n                                            type: string\n                                          keyPath:\n                                            description: |-\n                                              Write the key at this path in the projected volume.\n\n                                              Most applications should use credentialBundlePath.  When using keyPath\n                                              and certificateChainPath, your application needs to check that the key\n                                              and leaf certificate are consistent, because it is possible to read the\n                                              files mid-rotation.\n                                            type: string\n                                          keyType:\n                                            description: |-\n                                              The type of keypair Kubelet will generate for the pod.\n\n                                              Valid values are \"RSA3072\", \"RSA4096\", \"ECDSAP256\", \"ECDSAP384\",\n                                              \"ECDSAP521\", and \"ED25519\".\n                                            type: string\n                                          maxExpirationSeconds:\n                                            description: |-\n                                              maxExpirationSeconds is the maximum lifetime permitted for the\n                                              certificate.\n\n                                              Kubelet copies this value verbatim into the PodCertificateRequests it\n                                              generates for this projection.\n\n                                              If omitted, kube-apiserver will set it to 86400(24 hours). kube-apiserver\n                                              will reject values shorter than 3600 (1 hour).  The maximum allowable\n                                              value is 7862400 (91 days).\n\n                                              The signer implementation is then free to issue a certificate with any\n                                              lifetime *shorter* than MaxExpirationSeconds, but no shorter than 3600\n                                              seconds (1 hour).  This constraint is enforced by kube-apiserver.\n                                              `kubernetes.io` signers will never issue certificates with a lifetime\n                                              longer than 24 hours.\n                                            format: int32\n                                            type: integer\n                                          signerName:\n                                            description: Kubelet's generated CSRs\n                                              will be addressed to this signer.\n                                            type: string\n                                        required:\n                                        - keyType\n                                        - signerName\n                                        type: object\n                                      secret:\n                                        description: secret information about the\n                                          secret data to project\n                                        properties:\n                                          items:\n                                            description: |-\n                                              items if unspecified, each key-value pair in the Data field of the referenced\n                                              Secret will be projected into the volume as a file whose name is the\n                                              key and content is the value. If specified, the listed keys will be\n                                              projected into the specified paths, and unlisted keys will not be\n                                              present. If a key is specified which is not present in the Secret,\n                                              the volume setup will error unless it is marked optional. Paths must be\n                                              relative and may not contain the '..' path or start with '..'.\n                                            items:\n                                              description: Maps a string key to a\n                                                path within a volume.\n                                              properties:\n                                                key:\n                                                  description: key is the key to project.\n                                                  type: string\n                                                mode:\n                                                  description: |-\n                                                    mode is Optional: mode bits used to set permissions on this file.\n                                                    Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\n                                                    YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\n                                                    If not specified, the volume defaultMode will be used.\n                                                    This might be in conflict with other options that affect the file\n                                                    mode, like fsGroup, and the result can be other mode bits set.\n                                                  format: int32\n                                                  type: integer\n                                                path:\n                                                  description: |-\n                                                    path is the relative path of the file to map the key to.\n                                                    May not be an absolute path.\n                                                    May not contain the path element '..'.\n                                                    May not start with the string '..'.\n                                                  type: string\n                                              required:\n                                              - key\n                                              - path\n                                              type: object\n                                            type: array\n                                            x-kubernetes-list-type: atomic\n                                          name:\n                                            default: \"\"\n                                            description: |-\n                                              Name of the referent.\n                                              This field is effectively required, but due to backwards compatibility is\n                                              allowed to be empty. Instances of this type with an empty value here are\n                                              almost certainly wrong.\n                                              More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\n                                            type: string\n                                          optional:\n                                            description: optional field specify whether\n                                              the Secret or its key must be defined\n                                            type: boolean\n                                        type: object\n                                        x-kubernetes-map-type: atomic\n                                      serviceAccountToken:\n                                        description: serviceAccountToken is information\n                                          about the serviceAccountToken data to project\n                                        properties:\n                                          audience:\n                                            description: |-\n                                              audience is the intended audience of the token. A recipient of a token\n                                              must identify itself with an identifier specified in the audience of the\n                                              token, and otherwise should reject the token. The audience defaults to the\n                                              identifier of the apiserver.\n                                            type: string\n                                          expirationSeconds:\n                                            description: |-\n                                              expirationSeconds is the requested duration of validity of the service\n                                              account token. As the token approaches expiration, the kubelet volume\n                                              plugin will proactively rotate the service account token. The kubelet will\n                                              start trying to rotate the token if the token is older than 80 percent of\n                                              its time to live or if the token is older than 24 hours.Defaults to 1 hour\n                                              and must be at least 10 minutes.\n                                            format: int64\n                                            type: integer\n                                          path:\n                                            description: |-\n                                              path is the path relative to the mount point of the file to project the\n                                              token into.\n                                            type: string\n                                        required:\n                                        - path\n                                        type: object\n                                    type: object\n                                  type: array\n                                  x-kubernetes-list-type: atomic\n                              type: object\n                            quobyte:\n                              description: |-\n                                quobyte represents a Quobyte mount on the host that shares a pod's lifetime.\n                                Deprecated: Quobyte is deprecated and the in-tree quobyte type is no longer supported.\n                              properties:\n                                group:\n                                  description: |-\n                                    group to map volume access to\n                                    Default is no group\n                                  type: string\n                                readOnly:\n                                  description: |-\n                                    readOnly here will force the Quobyte volume to be mounted with read-only permissions.\n                                    Defaults to false.\n                                  type: boolean\n                                registry:\n                                  description: |-\n                                    registry represents a single or multiple Quobyte Registry services\n                                    specified as a string as host:port pair (multiple entries are separated with commas)\n                                    which acts as the central registry for volumes\n                                  type: string\n                                tenant:\n                                  description: |-\n                                    tenant owning the given Quobyte volume in the Backend\n                                    Used with dynamically provisioned Quobyte volumes, value is set by the plugin\n                                  type: string\n                                user:\n                                  description: |-\n                                    user to map volume access to\n                                    Defaults to serivceaccount user\n                                  type: string\n                                volume:\n                                  description: volume is a string that references\n                                    an already created Quobyte volume by name.\n                                  type: string\n                              required:\n                              - registry\n                              - volume\n                              type: object\n                            rbd:\n                              description: |-\n                                rbd represents a Rados Block Device mount on the host that shares a pod's lifetime.\n                                Deprecated: RBD is deprecated and the in-tree rbd type is no longer supported.\n                              properties:\n                                fsType:\n                                  description: |-\n                                    fsType is the filesystem type of the volume that you want to mount.\n                                    Tip: Ensure that the filesystem type is supported by the host operating system.\n                                    Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.\n                                    More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd\n                                  type: string\n                                image:\n                                  description: |-\n                                    image is the rados image name.\n                                    More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it\n                                  type: string\n                                keyring:\n                                  default: /etc/ceph/keyring\n                                  description: |-\n                                    keyring is the path to key ring for RBDUser.\n                                    Default is /etc/ceph/keyring.\n                                    More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it\n                                  type: string\n                                monitors:\n                                  description: |-\n                                    monitors is a collection of Ceph monitors.\n                                    More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it\n                                  items:\n                                    type: string\n                                  type: array\n                                  x-kubernetes-list-type: atomic\n                                pool:\n                                  default: rbd\n                                  description: |-\n                                    pool is the rados pool name.\n                                    Default is rbd.\n                                    More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it\n                                  type: string\n                                readOnly:\n                                  description: |-\n                                    readOnly here will force the ReadOnly setting in VolumeMounts.\n                                    Defaults to false.\n                                    More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it\n                                  type: boolean\n                                secretRef:\n                                  description: |-\n                                    secretRef is name of the authentication secret for RBDUser. If provided\n                                    overrides keyring.\n                                    Default is nil.\n                                    More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it\n                                  properties:\n                                    name:\n                                      default: \"\"\n                                      description: |-\n                                        Name of the referent.\n                                        This field is effectively required, but due to backwards compatibility is\n                                        allowed to be empty. Instances of this type with an empty value here are\n                                        almost certainly wrong.\n                                        More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\n                                      type: string\n                                  type: object\n                                  x-kubernetes-map-type: atomic\n                                user:\n                                  default: admin\n                                  description: |-\n                                    user is the rados user name.\n                                    Default is admin.\n                                    More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it\n                                  type: string\n                              required:\n                              - image\n                              - monitors\n                              type: object\n                            scaleIO:\n                              description: |-\n                                scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.\n                                Deprecated: ScaleIO is deprecated and the in-tree scaleIO type is no longer supported.\n                              properties:\n                                fsType:\n                                  default: xfs\n                                  description: |-\n                                    fsType is the filesystem type to mount.\n                                    Must be a filesystem type supported by the host operating system.\n                                    Ex. \"ext4\", \"xfs\", \"ntfs\".\n                                    Default is \"xfs\".\n                                  type: string\n                                gateway:\n                                  description: gateway is the host address of the\n                                    ScaleIO API Gateway.\n                                  type: string\n                                protectionDomain:\n                                  description: protectionDomain is the name of the\n                                    ScaleIO Protection Domain for the configured storage.\n                                  type: string\n                                readOnly:\n                                  description: |-\n                                    readOnly Defaults to false (read/write). ReadOnly here will force\n                                    the ReadOnly setting in VolumeMounts.\n                                  type: boolean\n                                secretRef:\n                                  description: |-\n                                    secretRef references to the secret for ScaleIO user and other\n                                    sensitive information. If this is not provided, Login operation will fail.\n                                  properties:\n                                    name:\n                                      default: \"\"\n                                      description: |-\n                                        Name of the referent.\n                                        This field is effectively required, but due to backwards compatibility is\n                                        allowed to be empty. Instances of this type with an empty value here are\n                                        almost certainly wrong.\n                                        More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\n                                      type: string\n                                  type: object\n                                  x-kubernetes-map-type: atomic\n                                sslEnabled:\n                                  description: sslEnabled Flag enable/disable SSL\n                                    communication with Gateway, default false\n                                  type: boolean\n                                storageMode:\n                                  default: ThinProvisioned\n                                  description: |-\n                                    storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned.\n                                    Default is ThinProvisioned.\n                                  type: string\n                                storagePool:\n                                  description: storagePool is the ScaleIO Storage\n                                    Pool associated with the protection domain.\n                                  type: string\n                                system:\n                                  description: system is the name of the storage system\n                                    as configured in ScaleIO.\n                                  type: string\n                                volumeName:\n                                  description: |-\n                                    volumeName is the name of a volume already created in the ScaleIO system\n                                    that is associated with this volume source.\n                                  type: string\n                              required:\n                              - gateway\n                              - secretRef\n                              - system\n                              type: object\n                            secret:\n                              description: |-\n                                secret represents a secret that should populate this volume.\n                                More info: https://kubernetes.io/docs/concepts/storage/volumes#secret\n                              properties:\n                                defaultMode:\n                                  description: |-\n                                    defaultMode is Optional: mode bits used to set permissions on created files by default.\n                                    Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\n                                    YAML accepts both octal and decimal values, JSON requires decimal values\n                                    for mode bits. Defaults to 0644.\n                                    Directories within the path are not affected by this setting.\n                                    This might be in conflict with other options that affect the file\n                                    mode, like fsGroup, and the result can be other mode bits set.\n                                  format: int32\n                                  type: integer\n                                items:\n                                  description: |-\n                                    items If unspecified, each key-value pair in the Data field of the referenced\n                                    Secret will be projected into the volume as a file whose name is the\n                                    key and content is the value. If specified, the listed keys will be\n                                    projected into the specified paths, and unlisted keys will not be\n                                    present. If a key is specified which is not present in the Secret,\n                                    the volume setup will error unless it is marked optional. Paths must be\n                                    relative and may not contain the '..' path or start with '..'.\n                                  items:\n                                    description: Maps a string key to a path within\n                                      a volume.\n                                    properties:\n                                      key:\n                                        description: key is the key to project.\n                                        type: string\n                                      mode:\n                                        description: |-\n                                          mode is Optional: mode bits used to set permissions on this file.\n                                          Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\n                                          YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\n                                          If not specified, the volume defaultMode will be used.\n                                          This might be in conflict with other options that affect the file\n                                          mode, like fsGroup, and the result can be other mode bits set.\n                                        format: int32\n                                        type: integer\n                                      path:\n                                        description: |-\n                                          path is the relative path of the file to map the key to.\n                                          May not be an absolute path.\n                                          May not contain the path element '..'.\n                                          May not start with the string '..'.\n                                        type: string\n                                    required:\n                                    - key\n                                    - path\n                                    type: object\n                                  type: array\n                                  x-kubernetes-list-type: atomic\n                                optional:\n                                  description: optional field specify whether the\n                                    Secret or its keys must be defined\n                                  type: boolean\n                                secretName:\n                                  description: |-\n                                    secretName is the name of the secret in the pod's namespace to use.\n                                    More info: https://kubernetes.io/docs/concepts/storage/volumes#secret\n                                  type: string\n                              type: object\n                            storageos:\n                              description: |-\n                                storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.\n                                Deprecated: StorageOS is deprecated and the in-tree storageos type is no longer supported.\n                              properties:\n                                fsType:\n                                  description: |-\n                                    fsType is the filesystem type to mount.\n                                    Must be a filesystem type supported by the host operating system.\n                                    Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.\n                                  type: string\n                                readOnly:\n                                  description: |-\n                                    readOnly defaults to false (read/write). ReadOnly here will force\n                                    the ReadOnly setting in VolumeMounts.\n                                  type: boolean\n                                secretRef:\n                                  description: |-\n                                    secretRef specifies the secret to use for obtaining the StorageOS API\n                                    credentials.  If not specified, default values will be attempted.\n                                  properties:\n                                    name:\n                                      default: \"\"\n                                      description: |-\n                                        Name of the referent.\n                                        This field is effectively required, but due to backwards compatibility is\n                                        allowed to be empty. Instances of this type with an empty value here are\n                                        almost certainly wrong.\n                                        More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\n                                      type: string\n                                  type: object\n                                  x-kubernetes-map-type: atomic\n                                volumeName:\n                                  description: |-\n                                    volumeName is the human-readable name of the StorageOS volume.  Volume\n                                    names are only unique within a namespace.\n                                  type: string\n                                volumeNamespace:\n                                  description: |-\n                                    volumeNamespace specifies the scope of the volume within StorageOS.  If no\n                                    namespace is specified then the Pod's namespace will be used.  This allows the\n                                    Kubernetes name scoping to be mirrored within StorageOS for tighter integration.\n                                    Set VolumeName to any name to override the default behaviour.\n                                    Set to \"default\" if you are not using namespaces within StorageOS.\n                                    Namespaces that do not pre-exist within StorageOS will be created.\n                                  type: string\n                              type: object\n                            vsphereVolume:\n                              description: |-\n                                vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine.\n                                Deprecated: VsphereVolume is deprecated. All operations for the in-tree vsphereVolume type\n                                are redirected to the csi.vsphere.vmware.com CSI driver.\n                              properties:\n                                fsType:\n                                  description: |-\n                                    fsType is filesystem type to mount.\n                                    Must be a filesystem type supported by the host operating system.\n                                    Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.\n                                  type: string\n                                storagePolicyID:\n                                  description: storagePolicyID is the storage Policy\n                                    Based Management (SPBM) profile ID associated\n                                    with the StoragePolicyName.\n                                  type: string\n                                storagePolicyName:\n                                  description: storagePolicyName is the storage Policy\n                                    Based Management (SPBM) profile name.\n                                  type: string\n                                volumePath:\n                                  description: volumePath is the path that identifies\n                                    vSphere volume vmdk\n                                  type: string\n                              required:\n                              - volumePath\n                              type: object\n                          required:\n                          - name\n                          type: object\n                        type: array\n                        x-kubernetes-list-map-keys:\n                        - name\n                        x-kubernetes-list-type: map\n                    required:\n                    - containers\n                    type: object\n                type: object\n              replicas:\n                description: |-\n                  Number of desired pods. This is a pointer to distinguish between explicit\n                  zero and not specified. Defaults to 1.\n                format: int32\n                type: integer\n              resources:\n                description: |-\n                  Compute Resources required by this container.\n                  Cannot be updated.\n                  More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/\n                properties:\n                  claims:\n                    description: |-\n                      Claims lists the names of resources, defined in spec.resourceClaims,\n                      that are used by this container.\n\n                      This field depends on the\n                      DynamicResourceAllocation feature gate.\n\n                      This field is immutable. It can only be set for containers.\n                    items:\n                      description: ResourceClaim references one entry in PodSpec.ResourceClaims.\n                      properties:\n                        name:\n                          description: |-\n                            Name must match the name of one entry in pod.spec.resourceClaims of\n                            the Pod where this field is used. It makes that resource available\n                            inside a container.\n                          type: string\n                        request:\n                          description: |-\n                            Request is the name chosen for a request in the referenced claim.\n                            If empty, everything from the claim is made available, otherwise\n                            only the result of this request.\n                          type: string\n                      required:\n                      - name\n                      type: object\n                    type: array\n                    x-kubernetes-list-map-keys:\n                    - name\n                    x-kubernetes-list-type: map\n                  limits:\n                    additionalProperties:\n                      anyOf:\n                      - type: integer\n                      - type: string\n                      pattern: ^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$\n                      x-kubernetes-int-or-string: true\n                    description: |-\n                      Limits describes the maximum amount of compute resources allowed.\n                      More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/\n                    type: object\n                  requests:\n                    additionalProperties:\n                      anyOf:\n                      - type: integer\n                      - type: string\n                      pattern: ^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$\n                      x-kubernetes-int-or-string: true\n                    description: |-\n                      Requests describes the minimum amount of compute resources required.\n                      If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,\n                      otherwise to an implementation-defined value. Requests cannot exceed Limits.\n                      More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/\n                    type: object\n                type: object\n              runtimeClassName:\n                description: |-\n                  RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used\n                  to run this pod.  If no RuntimeClass resource matches the named class, the pod will not be run.\n                  If unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an\n                  empty definition that uses the default runtime handler.\n                  More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class\n                type: string\n              storageClassName:\n                description: |-\n                  storageClassName is the name of StorageClass to which this persistent volume belongs. Empty value\n                  means that this volume does not belong to any StorageClass.\n                type: string\n            required:\n            - image\n            type: object\n          status:\n            description: ModelStatus defines the observed state of Model\n            properties:\n              availableReplicas:\n                description: Total number of available pods (ready for at least minReadySeconds)\n                  targeted by this deployment.\n                format: int32\n                type: integer\n              conditions:\n                items:\n                  properties:\n                    lastTransitionTime:\n                      description: Last time the condition transitioned from one status\n                        to another.\n                      format: date-time\n                      type: string\n                    lastUpdateTime:\n                      description: The last time this condition was updated.\n                      format: date-time\n                      type: string\n                    message:\n                      description: A human readable message indicating details about\n                        the transition.\n                      type: string\n                    reason:\n                      description: The reason for the condition's last transition.\n                      type: string\n                    status:\n                      description: Status of the condition, one of True, False, Unknown.\n                      type: string\n                    type:\n                      description: Type of deployment condition.\n                      type: string\n                  required:\n                  - status\n                  - type\n                  type: object\n                type: array\n              readyReplicas:\n                description: readyReplicas is the number of pods targeted by this\n                  Deployment with a Ready Condition.\n                format: int32\n                type: integer\n              replicas:\n                description: Total number of non-terminated pods targeted by this\n                  deployment (their labels match the selector).\n                format: int32\n                type: integer\n              unavailableReplicas:\n                description: |-\n                  Total number of unavailable pods targeted by this deployment. This is the total number of\n                  pods that are still required for the deployment to have 100% available capacity. They may\n                  either be pods that are running but not yet available or pods that still have not been created.\n                format: int32\n                type: integer\n            type: object\n        type: object\n    served: true\n    storage: true\n    subresources:\n      status: {}\n"
  },
  {
    "path": "config/crd/kustomization.yaml",
    "content": "# This kustomization.yaml is not intended to be run by itself,\n# since it depends on service name and namespace that are out of this kustomize package.\n# It should be run by config/default\nresources:\n- bases/ollama.ayaka.io_models.yaml\n#+kubebuilder:scaffold:crdkustomizeresource\n\npatches:\n# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix.\n# patches here are for enabling the conversion webhook for each CRD\n#- path: patches/webhook_in_models.yaml\n#+kubebuilder:scaffold:crdkustomizewebhookpatch\n\n# [CERTMANAGER] To enable cert-manager, uncomment all the sections with [CERTMANAGER] prefix.\n# patches here are for enabling the CA injection for each CRD\n#- path: patches/cainjection_in_models.yaml\n#+kubebuilder:scaffold:crdkustomizecainjectionpatch\n\n# [WEBHOOK] To enable webhook, uncomment the following section\n# the following config is for teaching kustomize how to do kustomization for CRDs.\n\n#configurations:\n#- kustomizeconfig.yaml\n"
  },
  {
    "path": "config/crd/kustomizeconfig.yaml",
    "content": "# This file is for teaching kustomize how to substitute name and namespace reference in CRD\nnameReference:\n- kind: Service\n  version: v1\n  fieldSpecs:\n  - kind: CustomResourceDefinition\n    version: v1\n    group: apiextensions.k8s.io\n    path: spec/conversion/webhook/clientConfig/service/name\n\nnamespace:\n- kind: CustomResourceDefinition\n  version: v1\n  group: apiextensions.k8s.io\n  path: spec/conversion/webhook/clientConfig/service/namespace\n  create: false\n\nvarReference:\n- path: metadata/annotations\n"
  },
  {
    "path": "config/default/kustomization.yaml",
    "content": "# Adds namespace to all resources.\nnamespace: ollama-operator-system\n\n# Value of this field is prepended to the\n# names of all resources, e.g. a deployment named\n# \"wordpress\" becomes \"alices-wordpress\".\n# Note that it should also match with the prefix (text before '-') of the namespace\n# field above.\nnamePrefix: ollama-operator-\n\n# Labels to add to all resources and selectors.\n#labels:\n#- includeSelectors: true\n#  pairs:\n#    someName: someValue\n\nresources:\n- ../crd\n- ../rbac\n- ../manager\n# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix including the one in\n# crd/kustomization.yaml\n#- ../webhook\n# [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER'. 'WEBHOOK' components are required.\n#- ../certmanager\n# [PROMETHEUS] To enable prometheus monitor, uncomment all sections with 'PROMETHEUS'.\n#- ../prometheus\n\npatches:\n# Protect the /metrics endpoint by putting it behind auth.\n# If you want your controller-manager to expose the /metrics\n# endpoint w/o any authn/z, please comment the following line.\n- path: manager_auth_proxy_patch.yaml\n\n# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix including the one in\n# crd/kustomization.yaml\n#- path: manager_webhook_patch.yaml\n\n# [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER'.\n# Uncomment 'CERTMANAGER' sections in crd/kustomization.yaml to enable the CA injection in the admission webhooks.\n# 'CERTMANAGER' needs to be enabled to use ca injection\n#- path: webhookcainjection_patch.yaml\n\n# [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER' prefix.\n# Uncomment the following replacements to add the cert-manager CA injection annotations\n#replacements:\n#  - source: # Add cert-manager annotation to ValidatingWebhookConfiguration, MutatingWebhookConfiguration and CRDs\n#      kind: Certificate\n#      group: cert-manager.io\n#      version: v1\n#      name: serving-cert # this name should match the one in certificate.yaml\n#      fieldPath: .metadata.namespace # namespace of the certificate CR\n#    targets:\n#      - select:\n#          kind: ValidatingWebhookConfiguration\n#        fieldPaths:\n#          - .metadata.annotations.[cert-manager.io/inject-ca-from]\n#        options:\n#          delimiter: '/'\n#          index: 0\n#          create: true\n#      - select:\n#          kind: MutatingWebhookConfiguration\n#        fieldPaths:\n#          - .metadata.annotations.[cert-manager.io/inject-ca-from]\n#        options:\n#          delimiter: '/'\n#          index: 0\n#          create: true\n#      - select:\n#          kind: CustomResourceDefinition\n#        fieldPaths:\n#          - .metadata.annotations.[cert-manager.io/inject-ca-from]\n#        options:\n#          delimiter: '/'\n#          index: 0\n#          create: true\n#  - source:\n#      kind: Certificate\n#      group: cert-manager.io\n#      version: v1\n#      name: serving-cert # this name should match the one in certificate.yaml\n#      fieldPath: .metadata.name\n#    targets:\n#      - select:\n#          kind: ValidatingWebhookConfiguration\n#        fieldPaths:\n#          - .metadata.annotations.[cert-manager.io/inject-ca-from]\n#        options:\n#          delimiter: '/'\n#          index: 1\n#          create: true\n#      - select:\n#          kind: MutatingWebhookConfiguration\n#        fieldPaths:\n#          - .metadata.annotations.[cert-manager.io/inject-ca-from]\n#        options:\n#          delimiter: '/'\n#          index: 1\n#          create: true\n#      - select:\n#          kind: CustomResourceDefinition\n#        fieldPaths:\n#          - .metadata.annotations.[cert-manager.io/inject-ca-from]\n#        options:\n#          delimiter: '/'\n#          index: 1\n#          create: true\n#  - source: # Add cert-manager annotation to the webhook Service\n#      kind: Service\n#      version: v1\n#      name: webhook-service\n#      fieldPath: .metadata.name # namespace of the service\n#    targets:\n#      - select:\n#          kind: Certificate\n#          group: cert-manager.io\n#          version: v1\n#        fieldPaths:\n#          - .spec.dnsNames.0\n#          - .spec.dnsNames.1\n#        options:\n#          delimiter: '.'\n#          index: 0\n#          create: true\n#  - source:\n#      kind: Service\n#      version: v1\n#      name: webhook-service\n#      fieldPath: .metadata.namespace # namespace of the service\n#    targets:\n#      - select:\n#          kind: Certificate\n#          group: cert-manager.io\n#          version: v1\n#        fieldPaths:\n#          - .spec.dnsNames.0\n#          - .spec.dnsNames.1\n#        options:\n#          delimiter: '.'\n#          index: 1\n#          create: true\n"
  },
  {
    "path": "config/default/manager_auth_proxy_patch.yaml",
    "content": "# This patch inject a sidecar container which is a HTTP proxy for the\n# controller manager, it performs RBAC authorization against the Kubernetes API using SubjectAccessReviews.\napiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: controller-manager\n  namespace: system\nspec:\n  template:\n    spec:\n      containers:\n      - name: kube-rbac-proxy\n        securityContext:\n          allowPrivilegeEscalation: false\n          capabilities:\n            drop:\n            - \"ALL\"\n        image: gcr.io/kubebuilder/kube-rbac-proxy:v0.15.0\n        args:\n        - \"--secure-listen-address=0.0.0.0:8443\"\n        - \"--upstream=http://127.0.0.1:8080/\"\n        - \"--logtostderr=true\"\n        - \"--v=0\"\n        ports:\n        - containerPort: 8443\n          protocol: TCP\n          name: https\n        resources:\n          limits:\n            cpu: 500m\n            memory: 128Mi\n          requests:\n            cpu: 5m\n            memory: 64Mi\n      - name: manager\n        args:\n        - \"--health-probe-bind-address=:8081\"\n        - \"--metrics-bind-address=127.0.0.1:8080\"\n        - \"--leader-elect\"\n"
  },
  {
    "path": "config/default/manager_config_patch.yaml",
    "content": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: controller-manager\n  namespace: system\nspec:\n  template:\n    spec:\n      containers:\n      - name: manager\n"
  },
  {
    "path": "config/manager/kustomization.yaml",
    "content": "resources:\n- manager.yaml\napiVersion: kustomize.config.k8s.io/v1beta1\nkind: Kustomization\nimages:\n- name: controller\n  newName: ghcr.io/nekomeowww/ollama-operator\n  newTag: 0.10.10\n"
  },
  {
    "path": "config/manager/manager.yaml",
    "content": "apiVersion: v1\nkind: Namespace\nmetadata:\n  labels:\n    control-plane: controller-manager\n    app.kubernetes.io/name: namespace\n    app.kubernetes.io/instance: system\n    app.kubernetes.io/component: manager\n    app.kubernetes.io/created-by: ollama-operator\n    app.kubernetes.io/part-of: ollama-operator\n    app.kubernetes.io/managed-by: kustomize\n  name: system\n---\napiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: controller-manager\n  namespace: system\n  labels:\n    control-plane: controller-manager\n    app.kubernetes.io/name: deployment\n    app.kubernetes.io/instance: controller-manager\n    app.kubernetes.io/component: manager\n    app.kubernetes.io/created-by: ollama-operator\n    app.kubernetes.io/part-of: ollama-operator\n    app.kubernetes.io/managed-by: kustomize\nspec:\n  selector:\n    matchLabels:\n      control-plane: controller-manager\n  replicas: 1\n  template:\n    metadata:\n      annotations:\n        kubectl.kubernetes.io/default-container: manager\n      labels:\n        control-plane: controller-manager\n    spec:\n      # TODO(user): Uncomment the following code to configure the nodeAffinity expression\n      # according to the platforms which are supported by your solution.\n      # It is considered best practice to support multiple architectures. You can\n      # build your manager image using the makefile target docker-buildx.\n      # affinity:\n      #   nodeAffinity:\n      #     requiredDuringSchedulingIgnoredDuringExecution:\n      #       nodeSelectorTerms:\n      #         - matchExpressions:\n      #           - key: kubernetes.io/arch\n      #             operator: In\n      #             values:\n      #               - amd64\n      #               - arm64\n      #               - ppc64le\n      #               - s390x\n      #           - key: kubernetes.io/os\n      #             operator: In\n      #             values:\n      #               - linux\n      securityContext:\n        runAsNonRoot: true\n        # TODO(user): For common cases that do not require escalating privileges\n        # it is recommended to ensure that all your Pods/Containers are restrictive.\n        # More info: https://kubernetes.io/docs/concepts/security/pod-security-standards/#restricted\n        # Please uncomment the following code if your project does NOT have to work on old Kubernetes\n        # versions < 1.19 or on vendors versions which do NOT support this field by default (i.e. Openshift < 4.11 ).\n        # seccompProfile:\n        #   type: RuntimeDefault\n      containers:\n      - command:\n        - /manager\n        args:\n        - --leader-elect\n        image: controller:latest\n        name: manager\n        securityContext:\n          allowPrivilegeEscalation: false\n          capabilities:\n            drop:\n            - \"ALL\"\n        livenessProbe:\n          httpGet:\n            path: /healthz\n            port: 8081\n          initialDelaySeconds: 15\n          periodSeconds: 20\n        readinessProbe:\n          httpGet:\n            path: /readyz\n            port: 8081\n          initialDelaySeconds: 5\n          periodSeconds: 10\n        # TODO(user): Configure the resources accordingly based on the project requirements.\n        # More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/\n        resources:\n          limits:\n            cpu: 500m\n            memory: 128Mi\n          requests:\n            cpu: 10m\n            memory: 64Mi\n      serviceAccountName: controller-manager\n      terminationGracePeriodSeconds: 10\n"
  },
  {
    "path": "config/prometheus/kustomization.yaml",
    "content": "resources:\n- monitor.yaml\n"
  },
  {
    "path": "config/prometheus/monitor.yaml",
    "content": "# Prometheus Monitor Service (Metrics)\napiVersion: monitoring.coreos.com/v1\nkind: ServiceMonitor\nmetadata:\n  labels:\n    control-plane: controller-manager\n    app.kubernetes.io/name: servicemonitor\n    app.kubernetes.io/instance: controller-manager-metrics-monitor\n    app.kubernetes.io/component: metrics\n    app.kubernetes.io/created-by: ollama-operator\n    app.kubernetes.io/part-of: ollama-operator\n    app.kubernetes.io/managed-by: kustomize\n  name: controller-manager-metrics-monitor\n  namespace: system\nspec:\n  endpoints:\n    - path: /metrics\n      port: https\n      scheme: https\n      bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token\n      tlsConfig:\n        insecureSkipVerify: true\n  selector:\n    matchLabels:\n      control-plane: controller-manager\n"
  },
  {
    "path": "config/rbac/auth_proxy_client_clusterrole.yaml",
    "content": "apiVersion: rbac.authorization.k8s.io/v1\nkind: ClusterRole\nmetadata:\n  labels:\n    app.kubernetes.io/name: clusterrole\n    app.kubernetes.io/instance: metrics-reader\n    app.kubernetes.io/component: kube-rbac-proxy\n    app.kubernetes.io/created-by: ollama-operator\n    app.kubernetes.io/part-of: ollama-operator\n    app.kubernetes.io/managed-by: kustomize\n  name: metrics-reader\nrules:\n- nonResourceURLs:\n  - \"/metrics\"\n  verbs:\n  - get\n"
  },
  {
    "path": "config/rbac/auth_proxy_role.yaml",
    "content": "apiVersion: rbac.authorization.k8s.io/v1\nkind: ClusterRole\nmetadata:\n  labels:\n    app.kubernetes.io/name: clusterrole\n    app.kubernetes.io/instance: proxy-role\n    app.kubernetes.io/component: kube-rbac-proxy\n    app.kubernetes.io/created-by: ollama-operator\n    app.kubernetes.io/part-of: ollama-operator\n    app.kubernetes.io/managed-by: kustomize\n  name: proxy-role\nrules:\n- apiGroups:\n  - authentication.k8s.io\n  resources:\n  - tokenreviews\n  verbs:\n  - create\n- apiGroups:\n  - authorization.k8s.io\n  resources:\n  - subjectaccessreviews\n  verbs:\n  - create\n"
  },
  {
    "path": "config/rbac/auth_proxy_role_binding.yaml",
    "content": "apiVersion: rbac.authorization.k8s.io/v1\nkind: ClusterRoleBinding\nmetadata:\n  labels:\n    app.kubernetes.io/name: clusterrolebinding\n    app.kubernetes.io/instance: proxy-rolebinding\n    app.kubernetes.io/component: kube-rbac-proxy\n    app.kubernetes.io/created-by: ollama-operator\n    app.kubernetes.io/part-of: ollama-operator\n    app.kubernetes.io/managed-by: kustomize\n  name: proxy-rolebinding\nroleRef:\n  apiGroup: rbac.authorization.k8s.io\n  kind: ClusterRole\n  name: proxy-role\nsubjects:\n- kind: ServiceAccount\n  name: controller-manager\n  namespace: system\n"
  },
  {
    "path": "config/rbac/auth_proxy_service.yaml",
    "content": "apiVersion: v1\nkind: Service\nmetadata:\n  labels:\n    control-plane: controller-manager\n    app.kubernetes.io/name: service\n    app.kubernetes.io/instance: controller-manager-metrics-service\n    app.kubernetes.io/component: kube-rbac-proxy\n    app.kubernetes.io/created-by: ollama-operator\n    app.kubernetes.io/part-of: ollama-operator\n    app.kubernetes.io/managed-by: kustomize\n  name: controller-manager-metrics-service\n  namespace: system\nspec:\n  ports:\n  - name: https\n    port: 8443\n    protocol: TCP\n    targetPort: https\n  selector:\n    control-plane: controller-manager\n"
  },
  {
    "path": "config/rbac/kustomization.yaml",
    "content": "resources:\n# All RBAC will be applied under this service account in\n# the deployment namespace. You may comment out this resource\n# if your manager will use a service account that exists at\n# runtime. Be sure to update RoleBinding and ClusterRoleBinding\n# subjects if changing service account names.\n- service_account.yaml\n- role.yaml\n- role_binding.yaml\n- leader_election_role.yaml\n- leader_election_role_binding.yaml\n# Comment the following 4 lines if you want to disable\n# the auth proxy (https://github.com/brancz/kube-rbac-proxy)\n# which protects your /metrics endpoint.\n- auth_proxy_service.yaml\n- auth_proxy_role.yaml\n- auth_proxy_role_binding.yaml\n- auth_proxy_client_clusterrole.yaml\n"
  },
  {
    "path": "config/rbac/leader_election_role.yaml",
    "content": "# permissions to do leader election.\napiVersion: rbac.authorization.k8s.io/v1\nkind: Role\nmetadata:\n  labels:\n    app.kubernetes.io/name: role\n    app.kubernetes.io/instance: leader-election-role\n    app.kubernetes.io/component: rbac\n    app.kubernetes.io/created-by: ollama-operator\n    app.kubernetes.io/part-of: ollama-operator\n    app.kubernetes.io/managed-by: kustomize\n  name: leader-election-role\nrules:\n- apiGroups:\n  - \"\"\n  resources:\n  - configmaps\n  verbs:\n  - get\n  - list\n  - watch\n  - create\n  - update\n  - patch\n  - delete\n- apiGroups:\n  - coordination.k8s.io\n  resources:\n  - leases\n  verbs:\n  - get\n  - list\n  - watch\n  - create\n  - update\n  - patch\n  - delete\n- apiGroups:\n  - \"\"\n  resources:\n  - events\n  verbs:\n  - create\n  - patch\n"
  },
  {
    "path": "config/rbac/leader_election_role_binding.yaml",
    "content": "apiVersion: rbac.authorization.k8s.io/v1\nkind: RoleBinding\nmetadata:\n  labels:\n    app.kubernetes.io/name: rolebinding\n    app.kubernetes.io/instance: leader-election-rolebinding\n    app.kubernetes.io/component: rbac\n    app.kubernetes.io/created-by: ollama-operator\n    app.kubernetes.io/part-of: ollama-operator\n    app.kubernetes.io/managed-by: kustomize\n  name: leader-election-rolebinding\nroleRef:\n  apiGroup: rbac.authorization.k8s.io\n  kind: Role\n  name: leader-election-role\nsubjects:\n- kind: ServiceAccount\n  name: controller-manager\n  namespace: system\n"
  },
  {
    "path": "config/rbac/model_editor_role.yaml",
    "content": "# permissions for end users to edit models.\napiVersion: rbac.authorization.k8s.io/v1\nkind: ClusterRole\nmetadata:\n  labels:\n    app.kubernetes.io/name: clusterrole\n    app.kubernetes.io/instance: model-editor-role\n    app.kubernetes.io/component: rbac\n    app.kubernetes.io/created-by: ollama-operator\n    app.kubernetes.io/part-of: ollama-operator\n    app.kubernetes.io/managed-by: kustomize\n  name: model-editor-role\nrules:\n- apiGroups:\n  - ollama.ayaka.io\n  resources:\n  - models\n  verbs:\n  - create\n  - delete\n  - get\n  - list\n  - patch\n  - update\n  - watch\n- apiGroups:\n  - ollama.ayaka.io\n  resources:\n  - models/status\n  verbs:\n  - get\n"
  },
  {
    "path": "config/rbac/model_viewer_role.yaml",
    "content": "# permissions for end users to view models.\napiVersion: rbac.authorization.k8s.io/v1\nkind: ClusterRole\nmetadata:\n  labels:\n    app.kubernetes.io/name: clusterrole\n    app.kubernetes.io/instance: model-viewer-role\n    app.kubernetes.io/component: rbac\n    app.kubernetes.io/created-by: ollama-operator\n    app.kubernetes.io/part-of: ollama-operator\n    app.kubernetes.io/managed-by: kustomize\n  name: model-viewer-role\nrules:\n- apiGroups:\n  - ollama.ayaka.io\n  resources:\n  - models\n  verbs:\n  - get\n  - list\n  - watch\n- apiGroups:\n  - ollama.ayaka.io\n  resources:\n  - models/status\n  verbs:\n  - get\n"
  },
  {
    "path": "config/rbac/role.yaml",
    "content": "---\napiVersion: rbac.authorization.k8s.io/v1\nkind: ClusterRole\nmetadata:\n  name: manager-role\nrules:\n- apiGroups:\n  - \"\"\n  resources:\n  - namespaces\n  - persistentvolumes\n  - storageclasses\n  verbs:\n  - get\n  - list\n  - watch\n- apiGroups:\n  - \"\"\n  resources:\n  - persistentvolumeclaims\n  - services\n  verbs:\n  - create\n  - delete\n  - get\n  - list\n  - patch\n  - update\n  - watch\n- apiGroups:\n  - apps\n  resources:\n  - deployments\n  - statefulsets\n  verbs:\n  - create\n  - delete\n  - get\n  - list\n  - patch\n  - update\n  - watch\n- apiGroups:\n  - batch\n  resources:\n  - jobs\n  verbs:\n  - create\n  - delete\n  - deletecollection\n  - get\n  - list\n  - patch\n  - update\n  - watch\n- apiGroups:\n  - batch\n  resources:\n  - jobs/status\n  verbs:\n  - get\n- apiGroups:\n  - ollama.ayaka.io\n  resources:\n  - models\n  verbs:\n  - create\n  - delete\n  - get\n  - list\n  - patch\n  - update\n  - watch\n- apiGroups:\n  - ollama.ayaka.io\n  resources:\n  - models/finalizers\n  verbs:\n  - update\n- apiGroups:\n  - ollama.ayaka.io\n  resources:\n  - models/status\n  verbs:\n  - get\n  - patch\n  - update\n"
  },
  {
    "path": "config/rbac/role_binding.yaml",
    "content": "apiVersion: rbac.authorization.k8s.io/v1\nkind: ClusterRoleBinding\nmetadata:\n  labels:\n    app.kubernetes.io/name: clusterrolebinding\n    app.kubernetes.io/instance: manager-rolebinding\n    app.kubernetes.io/component: rbac\n    app.kubernetes.io/created-by: ollama-operator\n    app.kubernetes.io/part-of: ollama-operator\n    app.kubernetes.io/managed-by: kustomize\n  name: manager-rolebinding\nroleRef:\n  apiGroup: rbac.authorization.k8s.io\n  kind: ClusterRole\n  name: manager-role\nsubjects:\n- kind: ServiceAccount\n  name: controller-manager\n  namespace: system\n"
  },
  {
    "path": "config/rbac/service_account.yaml",
    "content": "apiVersion: v1\nkind: ServiceAccount\nmetadata:\n  labels:\n    app.kubernetes.io/name: ollama-operator\n    app.kubernetes.io/managed-by: kustomize\n  name: controller-manager\n  namespace: system\n"
  },
  {
    "path": "config/samples/kustomization.yaml",
    "content": "## Append samples of your project ##\nresources:\n- ollama_v1_model.yaml\n#+kubebuilder:scaffold:manifestskustomizesamples\n"
  },
  {
    "path": "config/samples/ollama_v1_model.yaml",
    "content": "apiVersion: ollama.ayaka.io/v1\nkind: Model\nmetadata:\n  labels:\n    app.kubernetes.io/name: ollama-operator\n    app.kubernetes.io/managed-by: kustomize\n  name: model-sample\nspec:\n  image: phi\n"
  },
  {
    "path": "cspell.config.yaml",
    "content": "version: \"0.2\"\nignorePaths: []\ndictionaryDefinitions: []\ndictionaries: []\nwords:\n  - alices\n  - AnnotatedEventf\n  - antfu\n  - apierrors\n  - apiextensions\n  - apimachinery\n  - appsv1\n  - asciinema\n  - ayaka\n  - batchv1\n  - cainjection_in_models\n  - certmanager\n  - clientcmd\n  - clientgoscheme\n  - clusterrole\n  - clusterrolebinding\n  - containedctx\n  - containerregistry\n  - corev1\n  - crdkustomizecainjectionpatch\n  - crdkustomizeresource\n  - crdkustomizewebhookpatch\n  - deepcopy\n  - deepseek\n  - deletecollection\n  - dupl\n  - durationcheck\n  - envtest\n  - errcheck\n  - errname\n  - Eventf\n  - exportloopref\n  - finalizers\n  - forcetypeassert\n  - genericclioptions\n  - genericiooptions\n  - goarch\n  - goconst\n  - gocyclo\n  - gofmt\n  - goheader\n  - goimports\n  - gomega\n  - goprintffuncname\n  - gosec\n  - gosimple\n  - govet\n  - healthz\n  - iconify\n  - ineffassign\n  - intstr\n  - kollama\n  - krew\n  - krew.googlecontainertools.github.com\n  - kubebuilder\n  - kubebuilder:subresource\n  - kubectlollama\n  - kustomization\n  - kustomize\n  - kustomizeconfig\n  - manifestskustomizesamples\n  - metav1\n  - metricsserver\n  - musttag\n  - nakedret\n  - namepkg\n  - nekomeowww\n  - nestif\n  - nodeport\n  - nolebase\n  - nolint\n  - nolintlint\n  - nosprintfhostport\n  - octicon\n  - OIDC\n  - ollama\n  - ollamav1\n  - onsi\n  - persistentvolumeclaims\n  - persistentvolumes\n  - pflag\n  - prealloc\n  - predeclared\n  - printcolumn\n  - readyz\n  - rolebinding\n  - samber\n  - servicemonitor\n  - statefulsets\n  - staticcheck\n  - storageclasses\n  - stretchr\n  - subresource\n  - tenv\n  - testableexamples\n  - unconvert\n  - undeployed\n  - unocss\n  - unparam\n  - utilruntime\n  - vitepress\n  - vueuse\n  - webhookcainjection_patc\nignoreWords: []\nimport: []\n"
  },
  {
    "path": "docs/.editorconfig",
    "content": "root = true\n\n[*]\ncharset = utf-8\nindent_style = space\nindent_size = 2\nend_of_line = lf\ninsert_final_newline = true\ntrim_trailing_whitespace = true\n"
  },
  {
    "path": "docs/.vitepress/config.mts",
    "content": "import { defineConfig } from 'vitepress'\nimport { tabsMarkdownPlugin } from 'vitepress-plugin-tabs'\n\n// https://vitepress.dev/references/site-config\nexport default defineConfig({\n  markdown: {\n    config(md) {\n      md.use(tabsMarkdownPlugin as any)\n    },\n  },\n  title: 'Ollama Operator',\n  description: 'Large language models, scaled, deployed. - Yet another operator for running large language models on Kubernetes with ease. 🙀',\n  lastUpdated: true,\n  ignoreDeadLinks: [\n    // Site Config | VitePress\n    // https://vitepress.dev/references/site-config#ignoredeadlinks\n    //\n    // ignore all localhost links\n    /^https?:\\/\\/localhost/,\n  ],\n  themeConfig: {\n    outline: 'deep',\n    socialLinks: [\n      { icon: 'github', link: 'https://github.com/nekomeowww/ollama-operator' },\n    ],\n    search: {\n      provider: 'local',\n      options: {\n        locales: {\n          'zh-CN': {\n            translations: {\n              button: {\n                buttonText: '搜索文档',\n                buttonAriaLabel: '搜索文档',\n              },\n              modal: {\n                noResultsText: '无法找到相关结果',\n                resetButtonTitle: '清除查询条件',\n                footer: {\n                  selectText: '选择',\n                  navigateText: '切换',\n                },\n              },\n            },\n          },\n        },\n      },\n    },\n  },\n  head: [\n    ['link', { rel: 'apple-touch-icon', sizes: '180x180', href: '/apple-touch-icon.png' }],\n    ['link', { rel: 'icon', type: 'image/png', href: '/logo.png' }],\n    ['link', { rel: 'manifest', href: '/site.webmanifest' }],\n    ['link', { rel: 'mask-icon', href: '/safari-pinned-tab.svg', color: '#5bbad5' }],\n    ['meta', { name: 'msapplication-TileColor', content: '#2b5797' }],\n    ['meta', { name: 'theme-color', content: '#ffffff' }],\n  ],\n  locales: {\n    'root': {\n      label: 'English',\n      lang: 'en',\n      link: '/pages/en/',\n      title: 'Ollama Operator',\n      description: 'Large language models, scaled, deployed - Yet another operator for running large language models on Kubernetes with ease. 🙀',\n      themeConfig: {\n        nav: [\n          {\n            text: 'Guide',\n            items: [\n              { text: 'Overview', link: '/pages/en/guide/overview' },\n              {\n                text: 'Getting started',\n                items: [\n                  { text: 'Install Ollama Operator', link: '/pages/en/guide/getting-started/' },\n                  { text: 'Deploy models through CLI', link: '/pages/en/guide/getting-started/cli' },\n                  { text: 'Deploy models through CRD', link: '/pages/en/guide/getting-started/crd' },\n                ],\n              },\n              { text: 'Supported models', link: '/pages/en/guide/supported-models' },\n            ],\n          },\n          {\n            text: 'Reference',\n            items: [\n              { text: 'CLI Reference', link: '/pages/en/references/cli/' },\n              { text: 'CRD Reference', link: '/pages/en/references/crd/' },\n              { text: 'Architectural Design', link: '/pages/en/references/architectural-design' },\n            ],\n          },\n          {\n            text: 'Acknowledgements',\n            link: '/pages/en/acknowledgements',\n          },\n        ],\n        sidebar: [\n          {\n            text: 'Guide',\n            items: [\n              { text: 'Overview', link: '/pages/en/guide/overview' },\n              {\n                text: 'Getting started',\n                items: [\n                  { text: 'Install Ollama Operator', link: '/pages/en/guide/getting-started/' },\n                  { text: 'Deploy models through CLI', link: '/pages/en/guide/getting-started/cli' },\n                  { text: 'Deploy models through CRD', link: '/pages/en/guide/getting-started/crd' },\n                ],\n              },\n              { text: 'Supported models', link: '/pages/en/guide/supported-models' },\n            ],\n          },\n          {\n            text: 'Reference',\n            items: [\n              {\n                text: 'CLI Reference',\n                items: [\n                  { text: 'Commands list', link: '/pages/en/references/cli/' },\n                  {\n                    text: 'Commands',\n                    items: [\n                      { text: 'kollama deploy', link: '/pages/en/references/cli/commands/deploy' },\n                      { text: 'kollama undeploy', link: '/pages/en/references/cli/commands/undeploy' },\n                      { text: 'kollama expose', link: '/pages/en/references/cli/commands/expose' },\n                    ],\n                  },\n                ],\n              },\n              {\n                text: 'CRD Reference',\n                items: [\n                  { text: 'CRD list', link: '/pages/en/references/crd/' },\n                  { text: 'Model', link: '/pages/en/references/crd/model' },\n                ],\n              },\n              { text: 'Architectural Design', link: '/pages/en/references/architectural-design' },\n            ],\n          },\n          {\n            text: 'Acknowledgements',\n            link: '/pages/en/acknowledgements',\n          },\n        ],\n      },\n    },\n    'zh-CN': {\n      label: '简体中文',\n      lang: 'zh-CN',\n      link: '/pages/zh-CN/',\n      title: 'Ollama Operator',\n      description: '大语言模型，伸缩自如，轻松部署 - 一个用于在 Kubernetes 上轻松运行大型语言模型的 Operator。 🙀',\n      themeConfig: {\n        nav: [\n          {\n            text: '指南',\n            items: [\n              { text: '概览', link: '/pages/zh-CN/guide/overview' },\n              {\n                text: '快速上手',\n                items: [\n                  { text: '安装 Ollama Operator', link: '/pages/zh-CN/guide/getting-started/' },\n                  { text: '通过 CLI 部署模型', link: '/pages/zh-CN/guide/getting-started/cli' },\n                  { text: '通过 CRD 部署模型', link: '/pages/zh-CN/guide/getting-started/crd' },\n                ],\n              },\n              { text: '支持模型', link: '/pages/zh-CN/guide/supported-models' },\n            ],\n          },\n          {\n            text: '参考',\n            items: [\n              {\n                text: 'CLI 参考',\n                items: [\n                  { text: '命令列表', link: '/pages/zh-CN/references/cli/' },\n                ],\n              },\n              { text: 'CRD 参考', link: '/pages/zh-CN/references/crd/' },\n              { text: '架构设计', link: '/pages/zh-CN/references/architectural-design' },\n            ],\n          },\n          {\n            text: '致谢',\n            link: '/pages/zh-CN/acknowledgements',\n          },\n        ],\n        sidebar: [\n          {\n            text: '指南',\n            items: [\n              { text: '概览', link: '/pages/zh-CN/guide/overview' },\n              {\n                text: '快速上手',\n                items: [\n                  { text: '安装 Ollama Operator', link: '/pages/zh-CN/guide/getting-started/' },\n                  { text: '通过 CLI 部署模型', link: '/pages/zh-CN/guide/getting-started/cli' },\n                  { text: '通过 CRD 部署模型', link: '/pages/zh-CN/guide/getting-started/crd' },\n                ],\n              },\n              { text: '支持模型', link: '/pages/zh-CN/guide/supported-models' },\n            ],\n          },\n          {\n            text: '参考',\n            items: [\n              {\n                text: 'CLI 参考',\n                items: [\n                  { text: '命令列表', link: '/pages/zh-CN/references/cli/' },\n                  {\n                    text: '子命令',\n                    items: [\n                      { text: 'kollama deploy', link: '/pages/zh-CN/references/cli/commands/deploy' },\n                      { text: 'kollama undeploy', link: '/pages/zh-CN/references/cli/commands/undeploy' },\n                      { text: 'kollama expose', link: '/pages/zh-CN/references/cli/commands/expose' },\n                    ],\n                  },\n                ],\n              },\n              {\n                text: 'CRD 参考',\n                items: [\n                  { text: 'CRD 列表', link: '/pages/zh-CN/references/crd/' },\n                  { text: 'Model 模型资源', link: '/pages/zh-CN/references/crd/model' },\n                ],\n              },\n              { text: '架构设计', link: '/pages/zh-CN/references/architectural-design' },\n            ],\n          },\n          {\n            text: '致谢',\n            link: '/pages/zh-CN/acknowledgements',\n          },\n        ],\n      },\n    },\n  },\n})\n"
  },
  {
    "path": "docs/.vitepress/theme/components/GettingStartedBlocksEn.vue",
    "content": "<template>\n  <TitleBlockContainerGroup>\n    <TitleBlockContainer\n      href=\"/pages/en/guide/getting-started/cli\"\n      class=\"[&_.title-block-container]:bg-zinc-200 [&_.title-block-container]:dark:bg-zinc-600 [&_.title-block-container]:text-zinc-900 [&_.title-block-container]:dark:text-zinc-100 text-$vp-c-brand-1!\"\n    >\n      <template #title>\n        <div flex-1 flex items-center gap-2>\n          <div class=\"title-block-container\" transition=\"all ease-in-out duration-300\" p-2 rounded-lg w-10 h-10 items-center flex justify-center>\n            <div i-icon-park-outline:bank-card-two />\n          </div>\n          <span font-semibold>Deploy models through Kollama CLI</span>\n        </div>\n      </template>\n      <div flex=\"~ col\" h-full gap-2>\n        <div flex-1>\n          <p m=\"0!\" pt=\"2\" text=\"zinc-600 dark:zinc-300\">\n            Dislike YAML?\n          </p>\n          <p m=\"0!\" text=\"zinc-600 dark:zinc-300\">\n            Faster and better UX?\n          </p>\n          <p m=\"0!\" text=\"zinc-600 dark:zinc-300\">\n            No worries, kollama here to rescue!\n          </p>\n        </div>\n        <pre class=\"title-block-body whitespace-pre-line m-0\" transition=\"all ease-in-out duration-300\" font-mono p-2 bg=\"zinc-200/50 dark:zinc-700/80\" rounded-lg>\n          <span text=\"zinc-400\"># <span>as regular binary cli</span></span>\n          $ <span text=\"blue-800 dark:blue-300\">kollama </span><span text=\"green-800 dark:green-300\">deploy phi</span>\n        </pre>\n        <span items-center>or</span>\n        <pre class=\"title-block-body whitespace-pre-line m-0\" transition=\"all ease-in-out duration-300\" font-mono p-2 bg=\"zinc-200/50 dark:zinc-700/80\" rounded-lg>\n          <span text=\"zinc-400\"># <span>as kubectl plugin</span></span>\n          $ <span text=\"blue-800 dark:blue-300\">kubectl </span><span text=\"green-800 dark:green-300\">ollama deploy phi</span>\n        </pre>\n      </div>\n    </TitleBlockContainer>\n    <TitleBlockContainer\n      href=\"/pages/en/guide/getting-started/crd\"\n      class=\"[&_.title-block-container]:bg-zinc-200 [&_.title-block-container]:dark:bg-zinc-600 [&_.title-block-container]:text-zinc-900 [&_.title-block-container]:dark:text-zinc-100 text-$vp-c-brand-1!\"\n    >\n      <template #title>\n        <div flex-1 flex items-center gap-2>\n          <div class=\"title-block-container\" transition=\"all ease-in-out duration-300\" p-2 rounded-lg w-10 h-10 items-center flex justify-center>\n            <div i-icon-park-outline:file-code />\n          </div>\n          <span font-semibold>Deploy models through CRD</span>\n        </div>\n      </template>\n      <div flex=\"~ col\" h-full>\n        <div flex-1>\n          <p m=\"0!\" pt=\"2\" text=\"zinc-600 dark:zinc-300\">\n            Fine-grained control over parameters?\n          </p>\n          <p m=\"0!\" text=\"zinc-600 dark:zinc-300\">\n            GitOps and CI/CD?\n          </p>\n          <p m=\"0!\" text=\"zinc-600 dark:zinc-300\">\n            CRD is simple enough with 6 lines!\n          </p>\n        </div>\n        <pre class=\"title-block-body whitespace-pre-line m-0\" transition=\"all ease-in-out duration-300\" font-mono p-2 bg=\"zinc-200/50 dark:zinc-700/80\" rounded-lg>\n          <span text=\"blue-800 dark:blue-300\">apiVersion: </span><span text=\"green-800 dark:green-300\">ollama.ayaka.io/v1</span>\n          <span text=\"blue-800 dark:blue-300\">kind: </span><span text=\"green-800 dark:green-300\">Model</span>\n          <span text=\"blue-800 dark:blue-300\">metadata:</span>\n          <span text=\"blue-800 dark:blue-300\">&nbsp;&nbsp;name: </span><span text=\"green-800 dark:green-300\">phi</span>\n          <span text=\"blue-800 dark:blue-300\">spec:</span>\n          <span text=\"blue-800 dark:blue-300\">&nbsp;&nbsp;image: </span><span text=\"green-800 dark:green-300\">phi</span>\n        </pre>\n      </div>\n    </TitleBlockContainer>\n  </TitleBlockContainerGroup>\n</template>\n"
  },
  {
    "path": "docs/.vitepress/theme/components/GettingStartedBlocksZhCn.vue",
    "content": "<template>\n  <TitleBlockContainerGroup>\n    <TitleBlockContainer\n      href=\"/pages/zh-CN/guide/getting-started/cli\"\n      class=\"[&_.title-block-container]:bg-zinc-200 [&_.title-block-container]:dark:bg-zinc-600 [&_.title-block-container]:text-zinc-900 [&_.title-block-container]:dark:text-zinc-100 text-$vp-c-brand-1!\"\n    >\n      <template #title>\n        <div flex-1 flex items-center gap-2>\n          <div class=\"title-block-container\" transition=\"all ease-in-out duration-300\" p-2 rounded-lg w-10 h-10 items-center flex justify-center>\n            <div i-icon-park-outline:bank-card-two />\n          </div>\n          <span font-semibold>通过 Kollama CLI 部署模型</span>\n        </div>\n      </template>\n      <div flex=\"~ col\" h-full gap-2>\n        <div flex-1>\n          <p m=\"0!\" pt=\"2\" text=\"zinc-600 dark:zinc-300\">\n            讨厌 YAML？\n          </p>\n          <p m=\"0!\" text=\"zinc-600 dark:zinc-300\">\n            更好更快的使用体验？\n          </p>\n          <p m=\"0!\" text=\"zinc-600 dark:zinc-300\">\n            没问题的，用 kollama 也可以！\n          </p>\n        </div>\n        <pre class=\"title-block-body whitespace-pre-line m-0\" transition=\"all ease-in-out duration-300\" font-mono p-2 bg=\"zinc-200/50 dark:zinc-700/80\" rounded-lg>\n          <span text=\"zinc-400\"># <span>常规二进制</span></span>\n          $ <span text=\"blue-800 dark:blue-300\">kollama </span><span text=\"green-800 dark:green-300\">deploy phi</span>\n        </pre>\n        <span items-center>or</span>\n        <pre class=\"title-block-body whitespace-pre-line m-0\" transition=\"all ease-in-out duration-300\" font-mono p-2 bg=\"zinc-200/50 dark:zinc-700/80\" rounded-lg>\n          <span text=\"zinc-400\"># <span>作为 kubectl 插件</span></span>\n          $ <span text=\"blue-800 dark:blue-300\">kubectl </span><span text=\"green-800 dark:green-300\">ollama deploy phi</span>\n        </pre>\n      </div>\n    </TitleBlockContainer>\n    <TitleBlockContainer\n      href=\"/pages/zh-CN/guide/getting-started/crd\"\n      class=\"[&_.title-block-container]:bg-zinc-200 [&_.title-block-container]:dark:bg-zinc-600 [&_.title-block-container]:text-zinc-900 [&_.title-block-container]:dark:text-zinc-100 text-$vp-c-brand-1!\"\n    >\n      <template #title>\n        <div flex-1 flex items-center gap-2>\n          <div class=\"title-block-container\" transition=\"all ease-in-out duration-300\" p-2 rounded-lg w-10 h-10 items-center flex justify-center>\n            <div i-icon-park-outline:file-code />\n          </div>\n          <span font-semibold>通过 CRD 部署模型</span>\n        </div>\n      </template>\n      <div flex=\"~ col\" h-full>\n        <div flex-1>\n          <p m=\"0!\" pt=\"2\" text=\"zinc-600 dark:zinc-300\">\n            对部署参数的精细控制？\n          </p>\n          <p m=\"0!\" text=\"zinc-600 dark:zinc-300\">\n            GitOps 和自动化部署？\n          </p>\n          <p m=\"0!\" text=\"zinc-600 dark:zinc-300\">\n            CRD 也超简单，只有 6 行！\n          </p>\n        </div>\n        <pre class=\"title-block-body whitespace-pre-line m-0\" transition=\"all ease-in-out duration-300\" font-mono p-2 bg=\"zinc-200/50 dark:zinc-700/80\" rounded-lg>\n          <span text=\"blue-800 dark:blue-300\">apiVersion: </span><span text=\"green-800 dark:green-300\">ollama.ayaka.io/v1</span>\n          <span text=\"blue-800 dark:blue-300\">kind: </span><span text=\"green-800 dark:green-300\">Model</span>\n          <span text=\"blue-800 dark:blue-300\">metadata:</span>\n          <span text=\"blue-800 dark:blue-300\">&nbsp;&nbsp;name: </span><span text=\"green-800 dark:green-300\">phi</span>\n          <span text=\"blue-800 dark:blue-300\">spec:</span>\n          <span text=\"blue-800 dark:blue-300\">&nbsp;&nbsp;image: </span><span text=\"green-800 dark:green-300\">phi</span>\n        </pre>\n      </div>\n    </TitleBlockContainer>\n  </TitleBlockContainerGroup>\n</template>\n"
  },
  {
    "path": "docs/.vitepress/theme/components/TitleBlockContainer.vue",
    "content": "<script setup lang=\"ts\">\nconst props = defineProps<{\n  title?: string\n  href?: string\n}>()\n</script>\n\n<template>\n  <a\n    w-full\n    p-4\n    rounded-lg\n    transition=\"all ease-in-out duration-300\"\n    cursor-pointer\n    flex=\"~ col\"\n    decoration=\"none!\"\n    bg=\"zinc-50 dark:zinc-800\"\n    border=\"~ solid 2 transparent hover:zinc-200 dark:hover:zinc-600\"\n    :href=\"props.href\"\n  >\n    <div flex=\"1\">\n      <div flex=\"~\" items-center>\n        <div v-if=\"props.title\" text-lg font-semibold flex-1>\n          <span>{{ props.title }}</span>\n        </div>\n        <template v-else>\n          <slot name=\"title\" />\n        </template>\n      </div>\n    </div>\n    <slot />\n  </a>\n</template>\n"
  },
  {
    "path": "docs/.vitepress/theme/components/TitleBlockContainerGroup.vue",
    "content": "<template>\n  <div flex=\"~ row <md:col\" w-full my-4 gap-4>\n    <slot />\n  </div>\n</template>\n"
  },
  {
    "path": "docs/.vitepress/theme/index.mts",
    "content": "// https://vitepress.dev/guide/custom-theme\nimport { h } from 'vue'\nimport type { Theme } from 'vitepress'\nimport DefaultTheme from 'vitepress/theme'\n\nimport {\n  InjectionKey,\n  NolebaseEnhancedReadabilitiesMenu,\n  NolebaseEnhancedReadabilitiesScreenMenu,\n} from '@nolebase/vitepress-plugin-enhanced-readabilities/client'\nimport {\n  NolebaseGitChangelogPlugin,\n} from '@nolebase/vitepress-plugin-git-changelog/client'\nimport {\n  NolebaseHighlightTargetedHeading,\n} from '@nolebase/vitepress-plugin-highlight-targeted-heading/client'\n\nimport { enhanceAppWithTabs } from 'vitepress-plugin-tabs/client'\n\nimport TitleBlockContainer from './components/TitleBlockContainer.vue'\nimport TitleBlockContainerGroup from './components/TitleBlockContainerGroup.vue'\nimport GettingStartedBlocksEn from './components/GettingStartedBlocksEn.vue'\nimport GettingStartedBlocksZhCn from './components/GettingStartedBlocksZhCn.vue'\n\nimport '@nolebase/vitepress-plugin-enhanced-mark/client/style.css'\nimport '@nolebase/vitepress-plugin-enhanced-readabilities/client/style.css'\nimport '@nolebase/vitepress-plugin-highlight-targeted-heading/client/style.css'\n\nimport 'asciinema-player/dist/bundle/asciinema-player.css'\n\nimport 'virtual:uno.css'\nimport './style.css'\n\nexport default {\n  extends: DefaultTheme,\n  Layout: () => {\n    return h(DefaultTheme.Layout, null, {\n      'layout-top': () => [\n        h(NolebaseHighlightTargetedHeading),\n      ],\n      // A enhanced readabilities menu for wider screens\n      'nav-bar-content-after': () => [\n        h(NolebaseEnhancedReadabilitiesMenu),\n      ],\n      // A enhanced readabilities menu for narrower screens (usually smaller than iPad Mini)\n      'nav-screen-content-after': () => [\n        h(NolebaseEnhancedReadabilitiesScreenMenu),\n      ],\n    })\n  },\n  enhanceApp({ app }) {\n    app.component('TitleBlockContainer', TitleBlockContainer)\n    app.component('TitleBlockContainerGroup', TitleBlockContainerGroup)\n    app.component('GettingStartedBlocksEn', GettingStartedBlocksEn)\n    app.component('GettingStartedBlocksZhCn', GettingStartedBlocksZhCn)\n\n    app.use(enhanceAppWithTabs)\n    app.provide(InjectionKey, {\n      spotlight: {\n        defaultToggle: true,\n      },\n    })\n    app.use(NolebaseGitChangelogPlugin, {\n      locales: {\n        'en': {\n          gitChangelogMarkdownSectionTitles: {\n            changelog: 'Changelog',\n            contributors: 'Contributors',\n          },\n        },\n        'zh-CN': {\n          gitChangelogMarkdownSectionTitles: {\n            changelog: '页面历史',\n            contributors: '贡献者',\n          },\n        },\n      },\n    })\n  },\n} satisfies Theme\n"
  },
  {
    "path": "docs/.vitepress/theme/style.css",
    "content": "/**\n * Customize default theme styling by overriding CSS variables:\n * https://github.com/vuejs/vitepress/blob/main/src/client/theme-default/styles/vars.css\n */\n\n/**\n * Colors\n *\n * Each colors have exact same color scale system with 3 levels of solid\n * colors with different brightness, and 1 soft color.\n *\n * - `XXX-1`: The most solid color used mainly for colored text. It must\n *   satisfy the contrast ratio against when used on top of `XXX-soft`.\n *\n * - `XXX-2`: The color used mainly for hover state of the button.\n *\n * - `XXX-3`: The color for solid background, such as bg color of the button.\n *   It must satisfy the contrast ratio with pure white (#ffffff) text on\n *   top of it.\n *\n * - `XXX-soft`: The color used for subtle background such as custom container\n *   or badges. It must satisfy the contrast ratio when putting `XXX-1` colors\n *   on top of it.\n *\n *   The soft color must be semi transparent alpha channel. This is crucial\n *   because it allows adding multiple \"soft\" colors on top of each other\n *   to create a accent, such as when having inline code block inside\n *   custom containers.\n *\n * - `default`: The color used purely for subtle indication without any\n *   special meanings attched to it such as bg color for menu hover state.\n *\n * - `brand`: Used for primary brand colors, such as link text, button with\n *   brand theme, etc.\n *\n * - `tip`: Used to indicate useful information. The default theme uses the\n *   brand color for this by default.\n *\n * - `warning`: Used to indicate warning to the users. Used in custom\n *   container, badges, etc.\n *\n * - `danger`: Used to show error, or dangerous message to the users. Used\n *   in custom container, badges, etc.\n * -------------------------------------------------------------------------- */\n\n :root {\n  --vp-c-default-1: var(--vp-c-gray-1);\n  --vp-c-default-2: var(--vp-c-gray-2);\n  --vp-c-default-3: var(--vp-c-gray-3);\n  --vp-c-default-soft: var(--vp-c-gray-soft);\n\n  --vp-c-brand-1: var(#326de6);\n  --vp-c-brand-2: var(--vp-c-indigo-2);\n  --vp-c-brand-3: var(--vp-c-indigo-3);\n  --vp-c-brand-soft: var(--vp-c-indigo-soft);\n\n  --vp-c-tip-1: var(--vp-c-brand-1);\n  --vp-c-tip-2: var(--vp-c-brand-2);\n  --vp-c-tip-3: var(--vp-c-brand-3);\n  --vp-c-tip-soft: var(--vp-c-brand-soft);\n\n  --vp-c-warning-1: var(--vp-c-yellow-1);\n  --vp-c-warning-2: var(--vp-c-yellow-2);\n  --vp-c-warning-3: var(--vp-c-yellow-3);\n  --vp-c-warning-soft: var(--vp-c-yellow-soft);\n\n  --vp-c-danger-1: var(--vp-c-red-1);\n  --vp-c-danger-2: var(--vp-c-red-2);\n  --vp-c-danger-3: var(--vp-c-red-3);\n  --vp-c-danger-soft: var(--vp-c-red-soft);\n}\n\n/**\n * Component: Button\n * -------------------------------------------------------------------------- */\n\n:root {\n  --vp-button-brand-border: transparent;\n  --vp-button-brand-text: var(--vp-c-white);\n  --vp-button-brand-bg: var(--vp-c-brand-3);\n  --vp-button-brand-hover-border: transparent;\n  --vp-button-brand-hover-text: var(--vp-c-white);\n  --vp-button-brand-hover-bg: var(--vp-c-brand-2);\n  --vp-button-brand-active-border: transparent;\n  --vp-button-brand-active-text: var(--vp-c-white);\n  --vp-button-brand-active-bg: var(--vp-c-brand-1);\n}\n\n/**\n * Component: Home\n * -------------------------------------------------------------------------- */\n\n:root {\n  --vp-home-hero-name-color: transparent;\n  --vp-home-hero-name-background: -webkit-linear-gradient(\n    120deg,\n    #326de6 30%,\n    #7f8ba0\n  );\n\n  --vp-home-hero-image-background-image: linear-gradient(\n    -45deg,\n    #326de6 50%,\n    #7f8ba0 50%\n  );\n  --vp-home-hero-image-filter: blur(44px);\n}\n\n@media (min-width: 640px) {\n  :root {\n    --vp-home-hero-image-filter: blur(56px);\n  }\n}\n\n@media (min-width: 960px) {\n  :root {\n    --vp-home-hero-image-filter: blur(68px);\n  }\n}\n\n/**\n * Component: Custom Block\n * -------------------------------------------------------------------------- */\n\n:root {\n  --vp-custom-block-tip-border: transparent;\n  --vp-custom-block-tip-text: var(--vp-c-text-1);\n  --vp-custom-block-tip-bg: var(--vp-c-brand-soft);\n  --vp-custom-block-tip-code-bg: var(--vp-c-brand-soft);\n}\n\n/**\n * Component: Algolia\n * -------------------------------------------------------------------------- */\n\n.DocSearch {\n  --docsearch-primary-color: var(--vp-c-brand-1) !important;\n}\n\n"
  },
  {
    "path": "docs/eslint.config.js",
    "content": "import antfu from '@antfu/eslint-config'\n\nexport default antfu({\n  ignores: [\n    '**/*.md',\n    '**/*.yaml',\n    '**/*.yml',\n  ],\n})\n"
  },
  {
    "path": "docs/package.json",
    "content": "{\n  \"name\": \"docs\",\n  \"type\": \"module\",\n  \"packageManager\": \"pnpm@10.32.1\",\n  \"scripts\": {\n    \"docs:dev\": \"vitepress dev\",\n    \"docs:build\": \"vitepress build\",\n    \"docs:preview\": \"vitepress preview\"\n  },\n  \"devDependencies\": {\n    \"@antfu/eslint-config\": \"^7.0.0\",\n    \"@iconify-json/carbon\": \"^1.2.13\",\n    \"@iconify-json/icon-park-outline\": \"^1.2.4\",\n    \"@iconify-json/octicon\": \"^1.2.14\",\n    \"@iconify-json/simple-icons\": \"^1.2.53\",\n    \"@iconify-json/twemoji\": \"^1.2.4\",\n    \"@nolebase/ui\": \"^2.18.2\",\n    \"@nolebase/ui-asciinema\": \"^2.18.2\",\n    \"@nolebase/vitepress-plugin-enhanced-mark\": \"^2.18.2\",\n    \"@nolebase/vitepress-plugin-enhanced-readabilities\": \"^2.18.2\",\n    \"@nolebase/vitepress-plugin-git-changelog\": \"^2.18.2\",\n    \"@nolebase/vitepress-plugin-highlight-targeted-heading\": \"^2.18.2\",\n    \"@types/node\": \"^24.6.1\",\n    \"@vueuse/core\": \"^14.0.0\",\n    \"asciinema-player\": \"^3.10.0\",\n    \"eslint\": \"^10.0.0\",\n    \"typescript\": \"^5.9.3\",\n    \"unocss\": \"^66.5.2\",\n    \"vite\": \"^8.0.0\",\n    \"vite-plugin-inspect\": \"^11.3.3\",\n    \"vitepress\": \"^1.6.4\",\n    \"vitepress-plugin-tabs\": \"^0.8.0\",\n    \"vue\": \"^3.5.22\"\n  },\n  \"pnpm\": {\n    \"onlyBuiltDependencies\": [\n      \"esbuild\"\n    ]\n  }\n}\n"
  },
  {
    "path": "docs/pages/en/acknowledgements.md",
    "content": "# Acknowledgements\n\nGratefully thanks to the following projects and their authors, contributors:\n\n- [Ollama](https://github.com/ollama/ollama)\n- [llama.cpp](https://github.com/ggerganov/llama.cpp)\n- [Kubebuilder](https://book.kubebuilder.io/introduction.html)\n\nIt is because of their hard work and contributions that this program exists.\n"
  },
  {
    "path": "docs/pages/en/guide/getting-started/cli.md",
    "content": "# Deploy through `kollama` CLI\n\nWe have a CLI called `kollama` here to simplify the deployment process. It is a simple way to deploy Ollama models to your Kubernetes cluster.\n\n## Getting Started\n\n1. Install the CLI:\n\n```shell\ngo install github.com/nekomeowww/ollama-operator/cmd/kollama@latest\n```\n\n> To learn about the supported commands, please refer to [`kollama`](/pages/en/references/cli/).\n\n2. Deploy a model:\n\n```shell\nkollama deploy phi --expose --node-port 30101\n```\n\n> For more information about the `deploy` command, please refer to [`kollama deploy`](/pages/en/references/cli/commands/deploy).\n\nThat's it.\n\n3. Interact with the model:\n\n```shell\nOLLAMA_HOST=<Node ip>:30101 ollama run phi\n```\n\nor use the OpenAI API compatible endpoint:\n\n```shell\ncurl http://<Node ip>:30101/v1/chat/completions -H \"Content-Type: application/json\" -d '{\n  \"model\": \"phi\",\n  \"messages\": [\n      {\n          \"role\": \"user\",\n          \"content\": \"Hello!\"\n      }\n  ]\n}'\n```\n"
  },
  {
    "path": "docs/pages/en/guide/getting-started/crd.md",
    "content": "# Deploy models through CRD\n\n## Deploy the model\n\n1. Create one [`Model` CRD](/pages/en/references/crd/model) to rule them all.\n\n::: tip What is CRD?\n\nCRD stands for Custom Resource Definition for Kubernetes, which extends the Kubernetes API by allowing users to customize resource types.\n\nCervices called Operator and Controller manages these custom resources to deploy, manage, and monitor applications in a Kubernetes cluster.\n\nOllama Operator manages the deployment and operation of large language models through a CRD with version number `ollama.ayaka.io/v1` and type `Model`.\n\n```yaml\napiVersion: ollama.ayaka.io/v1 # [!code focus]\nkind: Model # [!code focus]\nmetadata:\n  name: phi\nspec:\n  image: phi\n```\n\n:::\n\n::: warning Working with `kind`?\n\nThe default provisioned `StorageClass` in `kind` is `standard`, and will only work with `ReadWriteOnce` access mode, therefore if you would need to run the operator with `kind`, you should specify `persistentVolume` with `accessMode: ReadWriteOnce` in the `Model` CRD:\n\n```yaml\napiVersion: ollama.ayaka.io/v1\nkind: Model\nmetadata:\n  name: phi\nspec:\n  image: phi\n  persistentVolume: # [!code focus]\n    accessMode: ReadWriteOnce # [!code focus]\n```\n\n:::\n\nCopy the following command to create a phi [`Model` CRD](/pages/en/references/crd/model):\n\n```shell\ncat <<EOF >> ollama-model-phi.yaml\napiVersion: ollama.ayaka.io/v1\nkind: Model\nmetadata:\n  name: phi\nspec:\n  image: phi\n  persistentVolume:\n    accessMode: ReadWriteOnce\nEOF\n```\n\nor you can create your own file:\n\n::: code-group\n\n```yaml [ollama-model-phi.yaml]\napiVersion: ollama.ayaka.io/v1 # [!code ++]\nkind: Model # [!code ++]\nmetadata: # [!code ++]\n  name: phi # [!code ++]\nspec: # [!code ++]\n  image: phi # [!code ++]\n```\n\n:::\n\n2. Apply the [`Model` CRD](/pages/en/references/crd/model) to your Kubernetes cluster:\n\n```shell\nkubectl apply -f ollama-model-phi.yaml\n```\n\n1. Wait for the [`Model`](/pages/en/references/crd/model) to be ready:\n\n```shell\nkubectl wait --for=jsonpath='{.status.readyReplicas}'=1 deployment/ollama-model-phi\n```\n\n4. Ready! Now let's forward the ports to access the model:\n\n```shell\nkubectl port-forward svc/ollama-model-phi ollama\n```\n\n5. Interact with the model:\n\n```shell\nollama run phi\n```\n\nor use the OpenAI API compatible endpoint:\n\n```shell\ncurl http://localhost:11434/v1/chat/completions -H \"Content-Type: application/json\" -d '{\n  \"model\": \"phi\",\n  \"messages\": [\n      {\n          \"role\": \"user\",\n          \"content\": \"Hello!\"\n      }\n  ]\n}'\n```\n"
  },
  {
    "path": "docs/pages/en/guide/getting-started/index.md",
    "content": "# Getting Started\n\n## Install operator\n\n<!--@include: @/pages/en/snippets/deploy-kubernetes-cluster-with-kind.md-->\n\n<!--@include: @/pages/en/snippets/install-ollama-operator.md-->\n\n## Deploy the model\n\nThere are two major ways to get started with the Ollama Operator:\n\n<GettingStartedBlocksEn text-sm />\n\n1. `kollama` provides a simple way to deploy the Ollama model CRD to your Kubernetes cluster.\n2. General Kubernetes CRD is available for advanced users who want to customize the Ollama model CRD.\n\nDifferent ways provides different levels of customization and flexibility. Choose the one that best fits your needs.\n"
  },
  {
    "path": "docs/pages/en/guide/overview.md",
    "content": "# Overview\n\nWhile [Ollama](https://github.com/ollama/ollama) is a powerful tool for running large language models locally, and the user experience of CLI is just the same as using Docker CLI, it's not possible yet to replicate the same user experience on Kubernetes, especially when it comes to running multiple models on the same cluster with loads of resources and configurations.\n\nThat's where the Ollama Operator kicks in:\n\n- Install the operator on your Kubernetes cluster\n- Apply the needed CRDs\n- Create your models\n- Wait for the models to be fetched and loaded, that's it!\n\nThanks to the great works of [lama.cpp](https://github.com/ggerganov/llama.cpp), **no more worries about Python environment, CUDA drivers.**\n\nThe journey to large language models, AIGC, localized agents, [🦜🔗 Langchain](https://www.langchain.com/) and more is just a few steps away!\n\n## Features\n\n<div grid=\"~ cols-[auto_1fr] gap-1\" items-start my-1>\n  <div h=[1rem]><div i-icon-park-outline:check-one text=\"green-600\" /></div>\n  <span>Abilities to run multiple models on the same cluster.</span>\n  <div h=[1rem]><div i-icon-park-outline:check-one text=\"green-600\" /></div>\n  <span>Compatible with all Ollama models, APIs, and CLI.</span>\n  <div h=[1rem]><div i-icon-park-outline:check-one text=\"green-600\" /></div>\n  <span>Able to run on <a href=\"https://kubernetes.io/\">general Kubernetes clusters</a>, <a href=\"https://k3s.io/\">K3s clusters</a> (Respberry Pi, TrueNAS SCALE, etc.), <a href=\"https://kind.sigs.k8s.io/\">kind</a>, <a href=\"https://minikube.sigs.k8s.io/docs/\">minikube</a>, etc. You name it!</span>\n  <div h=[1rem]><div i-icon-park-outline:check-one text=\"green-600\" /></div>\n  <span>Easy to install, uninstall, and upgrade.</span>\n  <div h=[1rem]><div i-icon-park-outline:check-one text=\"green-600\" /></div>\n  <span>Pull image once, share across the entire node (just like normal images).</span>\n  <div h=[1rem]><div i-icon-park-outline:check-one text=\"green-600\" /></div>\n  <span>Easy to expose with existing Kubernetes services, ingress, etc.</span>\n  <div h=[1rem]><div i-icon-park-outline:check-one text=\"green-600\" /></div>\n  <span>Doesn't require any additional dependencies, just Kubernetes</span>\n</div>\n\n## Requirements\n\n### Kubernetes cluster\n\n::: tip Do I have to have a complete deployed Kubernetes cluster over cloud or self managed to use Ollama Operator?\n\nIn fact, it is not.\n\nFor any macOS, Windows device, you just need to install [Docker Desktop](https://www.docker.com/products/docker-desktop/) or the macOS-only [OrbStack](https://), along with the utilities like [kind](https://kind.sigs.k8s.io/) and [minikube](https://minikube.sigs.k8s.io/docs/) tools for running a Kubernetes cluster locally, you can start your own Kubernetes cluster locally.\n\nKubernetes is not as difficult as you might think, as long as you have Docker and a Kubernetes tool, you can run a Kubernetes cluster locally, and then install the Ollama Operator to run large language models locally.\n\n:::\n\n- Kubernetes\n- K3s\n- kind\n- minikube\n\n### Memory requirements\n\nYou should have at least 8 GB of RAM available on your node to run the 7B models, 16 GB to run the 13B models, and 32 GB to run the 33B models.\n\n### Disk requirements\n\nThe actual size of downloaded large language models are huge by comparing to the size of general container images.\n\n1. Fast and stable network connection is recommended to download the models.\n2. Efficient storage is required to store the models if you want to run models larger than 13B.\n"
  },
  {
    "path": "docs/pages/en/guide/supported-models.md",
    "content": "# Supported models\n\nThe out of box supported models are listed below.\nYou can use them directly by specifying the model image in the `Model` CRD.\n\n> [!TIP] Not just these\n> By the power of [`Modelfile`](https://github.com/ollama/ollama/blob/main/docs/modelfile.md) backed by Ollama, you can create and bundle any of your own model. **As long as it's a GGUF formatted model.**\n\n| Model                                                              | Parameters | Size  | Model image         | Full model image URL                           | Multi-modal | Uncensored |\n| ------------------------------------------------------------------ | ---------- | ----- | ------------------- | ---------------------------------------------- | ----------- | ---------- |\n| [Phi-3 Mini](https://ollama.com/library/phi3)                      | 3.8B       | 2.3GB | `phi3`              | `registry.ollama.ai/library/phi3`              |             |            |\n| [Llama 3](https://ollama.com/library/llama3)                       | 8B         | 4.7GB | `llama3`            | `registry.ollama.ai/library/llama3`            |             |            |\n| [Dolphin Llama 3](https://ollama.com/library/dolphin-llama3)       | 8B         | 4.7GB | `dolphin-llama3`    | `registry.ollama.ai/dolphin-llama3`            |             | ✅          |\n| [WizardLM-2](https://ollama.com/library/wizardlm2)                 | 7B         | 4.1GB | `wizardlm2`         | `registry.ollama.ai/library/wizardlm2`         |             |            |\n| [Llama 2](https://ollama.com/library/llama2)                       | 7B         | 3.8GB | `llama2`            | `registry.ollama.ai/library/llama2`            |             |            |\n| [Mistral](https://ollama.com/library/mistral)                      | 7B         | 4.1GB | `mistral`           | `registry.ollama.ai/library/mistral`           |             |            |\n| [Mixtral 8x7B](https://ollama.com/library/mixtral:8x7b)            | 8x7B       | 26GB  | `mixtral:8x7b`      | `registry.ollama.ai/library/mixtral:8x7b`      |             |            |\n| [Mixtral 8x22B](https://ollama.com/library/mixtral:8x22b)          | 8x22B      | 80GB  | `mixtral:8x22b`     | `registry.ollama.ai/library/mixtral:8x22b`     |             |            |\n| [Command R](https://ollama.com/library/command-r)                  | 35B        | 20GB  | `command-r`         | `registry.ollama.ai/library/command-r`         |             |            |\n| [Command R Plus](https://ollama.com/library/command-r-plus)        | 104B       | 59GB  | `command-r-plus`    | `registry.ollama.ai/library/command-r-plus`    |             |            |\n| [Dolphin Phi](https://ollama.com/library/dolphin-phi)              | 2.7B       | 1.6GB | `dolphin-phi`       | `registry.ollama.ai/library/dolphin-phi`       |             | ✅          |\n| [Phi-2](https://ollama.com/library/phi)                            | 2.7B       | 1.7GB | `phi`               | `registry.ollama.ai/library/phi`               |             |            |\n| [Neural Chat](https://ollama.com/library/neural-chat)              | 7B         | 4.1GB | `neural-chat`       | `registry.ollama.ai/library/neural-chat`       |             |            |\n| [Starling](https://ollama.com/library/starling-lm)                 | 7B         | 4.1GB | `starling-lm`       | `registry.ollama.ai/library/starling-lm`       |             |            |\n| [Code Llama](https://ollama.com/library/codellama)                 | 7B         | 3.8GB | `codellama`         | `registry.ollama.ai/library/codellama`         |             |            |\n| [Llama 2 Uncensored](https://ollama.com/library/llama2-uncensored) | 7B         | 3.8GB | `llama2-uncensored` | `registry.ollama.ai/library/llama2-uncensored` |             | ✅          |\n| [Llama 2 13B](https://ollama.com/library/llama2)                   | 13B        | 7.3GB | `llama2:13b`        | `registry.ollama.ai/library/llama2:13b`        |             |            |\n| [Llama 2 70B](https://ollama.com/library/llama2)                   | 70B        | 39GB  | `llama2:70b`        | `registry.ollama.ai/library/llama2:70b`        |             |            |\n| Orca Mini                                                          | 3B         | 1.9GB | `orca-mini`         | `registry.ollama.ai/library/orca-mini`         |             |            |\n| Vicuna                                                             | 7B         | 3.8GB | `vicuna`            | `registry.ollama.ai/library/vicuna`            |             |            |\n| LLaVA                                                              | 7B         | 4.5GB | `llava`             | `registry.ollama.ai/library/llava`             | ✅           |            |\n| Gemma 2B                                                           | 2B         | 1.4GB | `gemma:2b`          | `registry.ollama.ai/library/gemma:2b`          |             |            |\n| Gemma 7B                                                           | 7B         | 4.8GB | `gemma:7b`          | `registry.ollama.ai/library/gemma:7b`          |             |            |\n\nFull list of available images can be found at [Ollama Library](https://ollama.com/library).\n"
  },
  {
    "path": "docs/pages/en/index.md",
    "content": "---\nlayout: home\nsidebar: false\n\ntitle: Ollama Operator\n\nhero:\n  name: Ollama Operator\n  text: Large language models, scaled, deployed\n  tagline: Yet another operator for running large language models on Kubernetes with ease. Powered by Ollama! 🐫\n  image:\n    src: /logo.png\n    alt: Ollama Operator\n  actions:\n    - theme: brand\n      text: Getting Started\n      link: /pages/en/guide/getting-started/\n    - theme: alt\n      text: View on GitHub\n      link: https://github.com/nekomeowww/ollama-operator\n\nfeatures:\n  - icon: <div i-twemoji:rocket></div>\n    title: Launch and chat\n    details: Easy to use API, the spec is simple enough to just a few lines of YAML to deploy a model, and you can chat with it right away.\n  - icon: <div i-twemoji:ship></div>\n    title: Cross-kubernetes\n    details: Extend the user experience of Ollama to any Kubernetes cluster, edge or any cloud infrastructure, with the same spec, and chat with it from anywhere.\n  - icon: <div i-simple-icons:openai></div>\n    title: OpenAI API compatible\n    details: Your familiar <code>/v1/chat/completions</code> endpoint is here, with the same request and response format. No need to change your code or switch to another API.\n  - icon: <div i-twemoji:parrot></div>\n    title: Langchain ready\n    details: Power on to function calling, agents, knowldgebase retrieving. Unleash all the power Langchain has out of box with Ollama Operator.\n---\n\n<script setup>\nimport { NuAsciinemaPlayer } from '@nolebase/ui-asciinema'\n</script>\n\n### Getting started\n\n<GettingStartedBlocksEn />\n\n### See it in action\n\n<br>\n\n<div w-full rounded-xl overflow-hidden>\n  <NuAsciinemaPlayer\n    src=\"/demo.cast\"\n    :loop=\"true\"\n    :autoPlay=\"true\"\n    :rows=\"20\"\n    :speed=\"3\"\n    w-full\n  />\n</div>\n"
  },
  {
    "path": "docs/pages/en/references/architectural-design.md",
    "content": "# Architectural Design\n\nThere are two major components that the Ollama Operator will create for:\n\n1. **Model Inferencing Server**: The model inferencing server is a gRPC server that runs the model and serves the model's API. It is created as a `Deployment` in the Kubernetes cluster.\n2. **Model Image Storage**: We need a service to store the downloaded models and re-use them instead of downloading their own each time requested, a `StatefulSet` along with a `PersistentVolumeClaim` will be created. And the image will be stored in a dynamic provisioned `PersistentVolume`.\n\n::: info Why do we need an extra **Model Image Storage**?\nThe image that created by [`Modelfile`](https://github.com/ollama/ollama/blob/main/docs/modelfile.md) of Ollama is a valid OCI format image, however, due to the incompatible `contentType` value, and the overall structure of the `Modelfile` image to the general container image, it's not possible to run the model directly with the general container runtime. Therefore a standalone service/deployment of **Model Image Storage** is required to be persisted on the Kubernetes cluster in order to hold and cache the previously downloaded model image.\n\nAlthough it's a standalone service, we are not deploying large registry server like Docker Registry or Harbor. What Ollama Operator will do, is simply start a server with the `ollama serve` built-in command. At the time where each model inference service got created, a image pull request will be sent directly to this service.\n:::\n\nThe detailed resources it creates, and the relationships between them are shown in the following diagram:\n\n <picture>\n <source\n   srcset=\"/architecture-theme-night.png\"\n   media=\"(prefers-color-scheme: dark)\"\n />\n <source\n   srcset=\"/architecture-theme-day.png\"\n   media=\"(prefers-color-scheme: light), (prefers-color-scheme: no-preference)\"\n />\n <img src=\"/architecture-theme-day.png\" />\n</picture>\n"
  },
  {
    "path": "docs/pages/en/references/cli/commands/deploy.md",
    "content": "# `kollama deploy`\n\n`kollama deploy` command is used to deploy a [`Model`](/pages/en/references/crd/model) to the Kubernetes cluster. It's basic a wrapper and utility CLI to interact with the Ollama Operator by manipulating CRD resources.\n\n[[toc]]\n\n## Use cases\n\n### Deploy model that lives on [registry.ollama.ai](https://registry.ollama.ai)\n\n```shell\nkollama deploy phi\n```\n\n### Deploy to a specific namespace\n\n```shell\nkollama deploy phi --namespace=production\n```\n\n### Deploy [`Model`](/pages/en/references/crd/model) that lives on a custom registry\n\n```shell\nkollama deploy phi --image=registry.example.com/library/phi:latest\n```\n\n### Deploy [`Model`](/pages/en/references/crd/model) with exposed NodePort service for external access\n\n```shell\nkollama deploy phi --expose\n```\n\n### Deploy [`Model`](/pages/en/references/crd/model) with exposed LoadBalancer service for external access\n\n```shell\nkollama deploy phi --expose --service-type=LoadBalancer\n```\n\n### Deploy [`Model`](/pages/en/references/crd/model) with resources limits\n\nThe following example deploys the `phi` model with CPU limit to `1` and memory limit to `1Gi`.\n\n```shell\nkollama deploy phi --limit=cpu=1 --limit=memory=1Gi\n```\n\n## Flags\n\n### `--namespace`\n\nIf present, the namespace scope for this CLI request.\n\n### `--image`\n\nDefault: `registry.ollama.ai/library/<model name>:latest`\n\n```shell\nkollama deploy phi --image=registry.ollama.ai/library/phi:latest\n```\n\nModel image to deploy.\n\n- If not specified, the [`Model`](/pages/en/references/crd/model) name will be used as the image name (will be pulled from `registry.ollama.ai/library/<model name>` by default if no registry is specified). For example, if the [`Model`](/pages/en/references/crd/model) name is `phi`, the image name will be `registry.ollama.ai/library/phi:latest`.\n- If not specified, the tag will be latest.\n\n### `--limit` (supports multiple flags)\n\n> Multiple limits can be specified by using the flag multiple times.\n\nResource limits for the deployed [`Model`](/pages/en/references/crd/model). This is useful for clusters that don't have a large enough number of resources, or if you want to deploy multiple [`Models`](/pages/en/references/crd/model) in a cluster with limited resources.\n\n::: tip For resource limits on NVIDIA, AMD GPUs...\n\nIn Kubernetes, any GPU resource follows this pattern for resources labels:\n\n```yaml\nresources:\n  limits:\n    gpu-vendor.example/example-gpu: 1 # requesting 1 GPU\n```\n\nUsing `nvidia.com/gpu` allows you to limit the number of NVIDIA GPUs, therefore when using `kollama deploy` you can use `--limit nvidia.com/gpu=1` to specify the number of NVIDIA GPUs as `1`:\n\n```shell\nkollama deploy phi --limit=nvidia.com/gpu=1\n```\n\nthis is what it may looks like in the YAML configuration file:\n\n\n```yaml\nresources:\n  limits:\n    nvidia.com/gpu: 1 # requesting 1 GPU # [!code focus]\n```\n\n> [Documentation on using resource labels with `nvidia/k8s-device-plugin`](https://github.com/NVIDIA/k8s-device-plugin?tab=readme-ov-file#enabling-gpu-support-in-kubernetes)\n\nUsing `amd.com/gpu` allows you to limit the number of AMD GPUs, therefore when using `kollama deploy` you can use `--limit amd.com/gpu=1` to specify the number of AMD GPUs as `1`.\n\n```shell\nkollama deploy phi --limit=amd.com/gpu=1\n```\n\nthis is what it may looks like in the YAML configuration file:\n\n```yaml\nresources:\n  limits:\n    amd.com/gpu: 1 # requesting a GPU  # [!code focus]\n```\n\n> [Example YAML manifest of labels with `ROCm/k8s-device-plugin`](https://github.com/ROCm/k8s-device-plugin/blob/4607bf06b700e53803d566e0bf9555f773f0b4f1/example/pod/alexnet-gpu.yaml)\n\nYour can read more here: [Schedule GPUs | Kubernetes](https://kubernetes.io/docs/tasks/manage-gpus/scheduling-gpus/)\n\n:::\n\n::: details I have deployed [`Model`](/pages/en/references/crd/model), but I want to change the resource limit...\n\nOf course you can, with the [`kubectl set resources`](https://kubernetes.io/zh-cn/docs/reference/kubectl/generated/kubectl_set/kubectl_set_resources/) command, you can change the resource limit:\n\n```shell\nkubectl set resources deployment -l model.ollama.ayaka.io/name=<model name> --limits cpu=4\n```\n\nFor memory limits:\n\n```shell\nkubectl set resources deployment -l model.ollama.ayaka.io/name=<model name> --limits memory=8Gi\n```\n\n:::\n\nThe format is `<resource>=<quantity>`.\n\nFor example: `--limit=cpu=1` `--limit=memory=1Gi`.\n\n### `--storage-class`\n\n```shell\nkollama deploy phi --storage-class=standard\n```\n\n[`StorageClass`](https://kubernetes.io/docs/concepts/storage/storage-classes/#storageclass-objects) to use for the [`Model`](/pages/en/references/crd/model)'s associated [`PersistentVolumeClaim`](https://kubernetes.io/docs/concepts/storage/persistent-volumes/#persistentvolumeclaims).\n\nIf not specified, the [default `StorageClass`](https://kubernetes.io/docs/concepts/storage/storage-classes/#default-storageclass) will be used.\n\n### `--pv-access-mode`\n\n```shell\nkollama deploy phi --pv-access-mode=ReadWriteMany\n```\n\n[Access mode](https://kubernetes.io/docs/concepts/storage/persistent-volumes/#access-modes) for Ollama Operator created image store (to cache pulled images)'s [`StatefulSet`](https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/) resource associated [`PersistentVolume`](https://kubernetes.io/docs/concepts/storage/persistent-volumes/#introduction).\n\nIf not specified, the access mode will be [`ReadWriteOnce`](https://kubernetes.io/docs/concepts/storage/persistent-volumes/#access-modes).\n\nIf you are deploying [`Model`](/pages/en/references/crd/model)s into default deployed [kind](https://kind.sigs.k8s.io/) and [k3s](https://k3s.io/) clusters, you should keep it as [`ReadWriteOnce`](https://kubernetes.io/docs/concepts/storage/persistent-volumes/#access-modes). If you are deploying [`Model`](/pages/en/references/crd/model)s into a custom cluster, you can set it to [`ReadWriteMany`](https://kubernetes.io/docs/concepts/storage/persistent-volumes/#access-modes) if [`StorageClass`](https://kubernetes.io/docs/concepts/storage/storage-classes/#storageclass-objects) supports it.\n\n### `--expose`\n\nDefault: `false`\n\n```shell\nkollama deploy phi --expose\n```\n\nWhether to expose the [`Model`](/pages/en/references/crd/model) through a Service for external access and makes it easy to interact with the [`Model`](/pages/en/references/crd/model).\n\n::: info Actually, when creating a Model resource, a `ClusterIP` type service will be created\n\nAt the case where users didn't supply either `--expose` flag, Ollama Operator will create a associated service for the [`Model`](/pages/en/references/crd/model) with the type of `ClusterIP` with the same name as the corresponding Deployment by default, and the service will be used for internal communication between the [`Model`](/pages/en/references/crd/model) and other services in the cluster.\n\n:::\n\nBy default, [`--expose`](#expose) will create a [`NodePort`](https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport) service.\n\nUse `--expose=LoadBalancer` to create a [`LoadBalancer`](https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer) service.\n\n### `--service-type`\n\n```shell\nkollama deploy phi --expose --service-type=NodePort\n```\n\nDefault: `NodePort`\n\nType of the [`Service`](https://kubernetes.io/docs/concepts/services-networking/service/) to expose the [`Model`](/pages/en/references/crd/model). **Only valid when [`--expose`](#expose) is specified.**\n\nIf not specified, the service will be exposed as [`NodePort`](https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport).\n\n::: tip To understand how many Services are associated to [`Model`](/pages/en/references/crd/model)...\n\n```shell\nkubectl get svc --selector ollama.ayaka.io/type=model\n```\n\n:::\n\nUse [`LoadBalancer`](https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer) to expose the service as [`LoadBalancer`](https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer).\n\n### `--service-name`\n\n```shell\nkollama deploy phi --expose --service-name=phi-svc-nodeport\n```\n\nDefault: `ollama-model-<model name>-<service type>`\n\nName of the [`Service`](https://kubernetes.io/docs/concepts/services-networking/service/) to expose the [`Model`](/pages/en/references/crd/model).\n\nIf not specified, the [`Model`](/pages/en/references/crd/model) name will be used as the service name with `-nodeport` as the suffix for [`NodePort`](https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport).\n\n### `--node-port`\n\n```shell\nkollama deploy phi --expose --service-type=NodePort --node-port=30000\n```\n\nDefault: Random port\n\n::: tip To understand what NodePort is used for the [`Model`](/pages/en/references/crd/model)...\n\n```shell\nkubectl get svc --selector model.ollama.ayaka.io/name=<model name> -o json | jq \".spec.ports[0].nodePort\"\n```\n\n:::\n\n::: warning You can't simply specify a port number!\n\nThere are several restrictions:\n\n1. By default, `30000-32767` is the `NodePort` port range in the Kubernetes cluster. If you want to use ports outside this range, you need to configure the `--service-node-port-range` parameter for the cluster.\n2. You can't use the port number already occupied by other services.\n\nFor more information about choosing your own port number, please refer to [Chapter of Kubernetes Official Document about `nodePort`](https://kubernetes.io/docs/concepts/services-networking/service/#nodeport-custom-port).\n\n:::\n\n[`nodePort`](https://kubernetes.io/docs/concepts/services-networking/service/#nodeport-custom-port) to expose the [`Model`](/pages/en/references/crd/model).\n\nIf not specified, a random port will be assigned. Only valid when [`--expose`](#expose) is specified, and [`--service-type`](#service-type) is set to NodePort.\n"
  },
  {
    "path": "docs/pages/en/references/cli/commands/expose.md",
    "content": "# `kollama expose`\n\n`kolamma expose` is a command to expose a [`Model`](/pages/en/references/crd/model) as a service.\n\n[[toc]]\n\n## Use cases\n\n### Expose a [`Model`](/pages/en/references/crd/model) service\n\n```shell\nkollama expose phi\n```\n\n### Expose a [`Model`](/pages/en/references/crd/model) service in a specific namespace\n\n```shell\nkollama expose phi --namespace=production\n```\n\n### Expose the service as a [`LoadBalancer`](https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer) type\n\n```shell\nkollama expose phi --service-type=LoadBalancer\n```\n\n## Flags\n\n### `--namespace`\n\nIf present, the namespace scope for this CLI request.\n\n### `--service-type`\n\n```shell\nkollama deploy phi --expose --service-type=NodePort\n```\n\nDefault: `NodePort`\n\nType of the [`Service`](https://kubernetes.io/docs/concepts/services-networking/service/) to expose the model. **Only valid when [`--expose`](#expose) is specified.**\n\nIf not specified, the service will be exposed as [`NodePort`](https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport).\n\n::: tip To understand how many Services are associated to models...\n\n```shell\nkubectl get svc --selector ollama.ayaka.io/type=model\n```\n\n:::\n\nUse [`LoadBalancer`](https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer) to expose the service as [`LoadBalancer`](https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer).\n\n### `--service-type`\n\n```shell\nkollama deploy phi --expose --service-type=NodePort\n```\n\nDefault: `NodePort`\n\nType of the [`Service`](https://kubernetes.io/docs/concepts/services-networking/service/) to expose the [`Model`](/pages/en/references/crd/model). **Only valid when [`--expose`](#expose) is specified.**\n\nIf not specified, the service will be exposed as [`NodePort`](https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport).\n\n::: tip To understand how many Services are associated to [`Model`](/pages/en/references/crd/model)...\n\n```shell\nkubectl get svc --selector ollama.ayaka.io/type=model\n```\n\n:::\n\nUse [`LoadBalancer`](https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer) to expose the service as [`LoadBalancer`](https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer).\n\n### `--service-name`\n\n```shell\nkollama deploy phi --expose --service-name=phi-svc-nodeport\n```\n\nDefault: `ollama-model-<model name>-<service type>`\n\nName of the [`Service`](https://kubernetes.io/docs/concepts/services-networking/service/) to expose the [`Model`](/pages/en/references/crd/model).\n\nIf not specified, the [`Model`](/pages/en/references/crd/model) name will be used as the service name with `-nodeport` as the suffix for [`NodePort`](https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport).\n\n### `--node-port`\n\n```shell\nkollama deploy phi --expose --service-type=NodePort --node-port=30000\n```\n\nDefault: Random port\n\n::: tip To understand what NodePort is used for the [`Model`](/pages/en/references/crd/model)...\n\n```shell\nkubectl get svc --selector model.ollama.ayaka.io/name=<model name> -o json | jq \".spec.ports[0].nodePort\"\n```\n\n:::\n\n::: warning You can't simply specify a port number!\n\nThere are several restrictions:\n\n1. By default, `30000-32767` is the `NodePort` port range in the Kubernetes cluster. If you want to use ports outside this range, you need to configure the `--service-node-port-range` parameter for the cluster.\n2. You can't use the port number already occupied by other services.\n\nFor more information about choosing your own port number, please refer to [Chapter of Kubernetes Official Document about `nodePort`](https://kubernetes.io/docs/concepts/services-networking/service/#nodeport-custom-port).\n\n:::\n\n[`nodePort`](https://kubernetes.io/docs/concepts/services-networking/service/#nodeport-custom-port) to expose the [`Model`](/pages/en/references/crd/model).\n\nIf not specified, a random port will be assigned. Only valid when [`--expose`](#expose) is specified, and [`--service-type`](#service-type) is set to NodePort.\n"
  },
  {
    "path": "docs/pages/en/references/cli/commands/undeploy.md",
    "content": "# `kollama undeploy`\n\n::: info No need to worry about deleting past [`Model`](/pages/en/references/crd/model) deployments and having to re-download the model image!\n\nOllama Operator deploys a separate [`StatefulSet`](https://kubernetes.io/zh-cn/docs/concepts/workloads/controllers/statefulset/) resource for storing downloaded Ollama model images and its corresponding storage resource in addition to the normal [`Deployment`](https://kubernetes.io/zh-cn/docs/concepts/workloads/controllers/deployment/) type resource for [`Model`](/pages/en/references/crd/model)s.\n\nTherefore, even if the deployment of a [`Model`](/pages/en/references/crd/model) is deleted, it will not affect the model images that have already been downloaded. They are stored in a separate resource called `ollama-models-store` until manually deleted.\n\nYou can check the status of `ollama-models-store` with the following command:\n\n```shell\nkubectl describe statefulset ollama-models-store\n```\n\n:::\n\n`kollama undeploy` is used to delete the deployment of a [`Model`](/pages/en/references/crd/model).\n\n[[toc]]\n\n## Use cases\n\n### Delete the deployment of a [`Model`](/pages/en/references/crd/model)\n\n```shell\nkollama undeploy phi\n```\n\n### Delete the deployment of a [`Model`](/pages/en/references/crd/model) in a specific namespace\n\n```shell\nkollama undeploy phi --namespace=production\n```\n\n## Flags\n\n### `--namespace`\n\nIf present, the namespace scope for this CLI request.\n"
  },
  {
    "path": "docs/pages/en/references/cli/index.md",
    "content": "# `kollama` CLI Reference\n\n- [`kollama deploy`](/pages/en/references/cli/commands/deploy)\n- [`kollama undeploy`](/pages/en/references/cli/commands/undeploy)\n- [`kollama expose`](/pages/en/references/cli/commands/expose)\n"
  },
  {
    "path": "docs/pages/en/references/crd/index.md",
    "content": "# CRD Reference\n\n- [`Model`](/pages/en/references/crd/model)\n"
  },
  {
    "path": "docs/pages/en/references/crd/model.md",
    "content": "# `Model`\n\n`Model` is a custom resource definition (CRD) that represents a Ollama server instance in the cluster.\n\nWhen created, the creation of `Model` triggers the creation of [`Deployment`](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/), [`Service`](https://kubernetes.io/docs/concepts/services-networking/service/).\n\n> If it is created for the first time, an additional StatefulSet and PersistentVolumeClaim will be created to store and persist the downloaded Ollama image.\n\n## Full CRD Reference\n\n```yaml\napiVersion: ollama.ayaka.io/v1\nkind: Model\nmetadata:\n  name: phi\nspec:\n  # Scale the model to 2 replicas\n  replicas: 2\n  # Use the model image `phi`\n  image: phi\n  imagePullPolicy: IfNotPresent\n  resources:\n    limits:\n      cpu: 4\n      memory: 8Gi\n      nvidia.com/gpu: 1 # If you got GPUs\n    requests:\n      cpu: 4\n      memory: 8Gi\n      nvidia.com/gpu: 1 # If you got GPUs\n  storageClassName: local-path\n  # If you have your own PersistentVolumeClaim created\n  persistentVolumeClaim: your-pvc\n  # If you need to specify the access mode for the PersistentVolume\n  persistentVolume:\n    accessMode: ReadWriteOnce\n```\n"
  },
  {
    "path": "docs/pages/en/snippets/deploy-kubernetes-cluster-with-kind.md",
    "content": "::: tip Don't have an existing Kubernetes cluster?\n\nRun the following commands to create a new Kubernetes cluster with `kind`:\n\n::: code-group\n\n```shell [macOS]\nbrew install --cask docker\nbrew install docker kind kubectl\nwget https://raw.githubusercontent.com/nekomeowww/ollama-operator/main/hack/kind-config.yaml\nkind create cluster --config kind-config.yaml\n```\n\n```shell [Windows]\nInvoke-WebRequest  -OutFile \"./Docker Desktop Installer.exe\"\nStart-Process 'Docker Desktop Installer.exe' -Wait install\nstart /w \"\" \"Docker Desktop Installer.exe\" install\n\n# If you use Scoop command line installer\nscoop install docker kubectl go\n# Alternatively, if you use Chocolatey as package manager\nchoco install docker-desktop kubernetes-cli golang\n\ngo install sigs.k8s.io/kind@latest\nwget https://raw.githubusercontent.com/nekomeowww/ollama-operator/main/hack/kind-config.yaml\nkind create cluster --config kind-config.yaml\n```\n\n```shell [Linux]\n# refer to Install Docker Engine on Debian | Docker Docs https://docs.docker.com/engine/install/debian/\n# and Install and Set Up kubectl on Linux | Kubernetes https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/\n```\n\n:::\n"
  },
  {
    "path": "docs/pages/en/snippets/install-ollama-operator.md",
    "content": "1. Install operator.\n\n```shell\nkubectl apply \\\n  --server-side=true \\\n  -f https://raw.githubusercontent.com/nekomeowww/ollama-operator/v0.10.1/dist/install.yaml\n```\n\n2. Wait for the operator to be ready:\n\n```shell\nkubectl wait \\\n   -n ollama-operator-system \\\n  --for=jsonpath='{.status.readyReplicas}'=1 deployment/ollama-operator-controller-manager\n```\n"
  },
  {
    "path": "docs/pages/zh-CN/acknowledgements.md",
    "content": "# 致谢\n\n非常感谢以下项目的作者和贡献者：\n\n- [Ollama](https://github.com/ollama/ollama)\n- [llama.cpp](https://github.com/ggerganov/llama.cpp)\n- [Kubebuilder](https://book.kubebuilder.io/introduction.html)\n\n正是因为他们的努力付出与贡献，这个项目才得以存在。\n"
  },
  {
    "path": "docs/pages/zh-CN/guide/getting-started/cli.md",
    "content": "# 通过 `kollama` CLI 进行部署\n\n我们有一个名为 `kollama` 的 CLI 来简化部署过程。这是一种将 Ollama 模型部署到 Kubernetes 集群的简单方法。\n\n## 开始操作\n\n1. 通过 `go install` 安装 `kollama` CLI：\n\n```shell\ngo install github.com/nekomeowww/ollama-operator/cmd/kollama@latest\n```\n\n> 要了解 `kollama` CLI 支持的命令，请参阅 [`kollama`](/pages/zh-CN/references/cli/)。\n\n2. 部署 Ollama 模型 CRD 到 Kubernetes 集群：\n\n```shell\nkollama deploy phi --expose --node-port 30101\n```\n\n> 有关 `deploy` 命令的更多信息，请参阅 [`kollama deploy`](/pages/zh-CN/references/cli/commands/deploy)。\n\n3. 开始与模型进行交互吧：\n\n```shell\nOLLAMA_HOST=<节点 IP>:30101 ollama run phi\n```\n\n或者使用 `curl` 连接到与 OpenAI API 兼容的接口：\n\n```shell\ncurl http://<节点 IP>:30101/v1/chat/completions -H \"Content-Type: application/json\" -d '{\n  \"model\": \"phi\",\n  \"messages\": [\n      {\n          \"role\": \"user\",\n          \"content\": \"Hello!\"\n      }\n  ]\n}'\n```\n\n"
  },
  {
    "path": "docs/pages/zh-CN/guide/getting-started/crd.md",
    "content": "# 通过 CRD 部署\n\n## 部署模型\n\n1. 创建一个 [`Model`](/pages/zh-CN/references/crd/model) 类型的 CRD 资源\n\n::: tip 什么是 CRD？\n\nCRD 是 Kubernetes 的自定义资源定义（Custom Resource Definition）的缩写，它允许用户自定义资源类型，从而扩展 Kubernetes API。\n\n名为 Operator 的服务可以管理这些自定义资源，以便在 Kubernetes 集群中部署、管理和监控应用程序。\n\nOllama Operator 就是通过版本号为 `ollama.ayaka.io/v1`，类型为 `Model` 的 CRD 来管理大型语言模型的部署和运行的。\n\n```yaml\napiVersion: ollama.ayaka.io/v1 # [!code focus]\nkind: Model # [!code focus]\nmetadata:\n  name: phi\nspec:\n  image: phi\n```\n\n:::\n\n::: warning 使用了 `kind` 作为集群吗？\n\n`kind` 默认配置的 `StorageClass` 是 `standard`，并且仅适用于 `ReadWriteOnce` 访问模式，因此，如果您需要使用 `kind` 运行这个 Operator 并部署模型，您应该在 `Model` CRD 中使用 `accessMode：ReadWriteOnce` 指定 `persistentVolume`：\n\n```yaml\napiVersion: ollama.ayaka.io/v1\nkind: Model\nmetadata:\n  name: phi\nspec:\n  image: phi\n  persistentVolume: # [!code focus]\n    accessMode: ReadWriteOnce # [!code focus]\n```\n\n:::\n\n复制以下命令以创建一个名为 phi 的 [`Model` CRD](/pages/zh-CN/references/crd/model)：\n\n```shell\ncat <<EOF >> ollama-model-phi.yaml\napiVersion: ollama.ayaka.io/v1\nkind: Model\nmetadata:\n  name: phi\nspec:\n  image: phi\n  persistentVolume:\n    accessMode: ReadWriteOnce\nEOF\n```\n\n或者您可以创建自己的文件：\n\n::: code-group\n\n```yaml [ollama-model-phi.yaml]\napiVersion: ollama.ayaka.io/v1 # [!code ++]\nkind: Model # [!code ++]\nmetadata: # [!code ++]\n  name: phi # [!code ++]\nspec: # [!code ++]\n  image: phi # [!code ++]\n```\n\n:::\n\n1. 将 [`Model` CRD](/pages/zh-CN/references/crd/model) 应用到 Kubernetes 集群：\n\n```shell\nkubectl apply -f ollama-model-phi.yaml\n```\n\n3. 等待 [`Model` CRD](/pages/zh-CN/references/crd/model) 就绪：\n\n```shell\nkubectl wait --for=jsonpath='{.status.readyReplicas}'=1 deployment/ollama-model-phi\n```\n\n4. 准备就绪！现在让我们转发访问模型的端口到本地：\n\n```shell\nkubectl port-forward svc/ollama-model-phi ollama\n```\n\n5. 直接与模型交互：\n\n```shell\nollama run phi\n```\n\n或者使用 `curl` 连接到与 OpenAI API 兼容的接口：\n\n```shell\ncurl http://localhost:11434/v1/chat/completions -H \"Content-Type: application/json\" -d '{\n  \"model\": \"phi\",\n  \"messages\": [\n      {\n          \"role\": \"user\",\n          \"content\": \"Hello!\"\n      }\n  ]\n}'\n```\n"
  },
  {
    "path": "docs/pages/zh-CN/guide/getting-started/index.md",
    "content": "# 快速上手\n\n## 安装 Ollama Operator\n\n<!--@include: @/pages/zh-CN/snippets/deploy-kubernetes-cluster-with-kind.md-->\n\n<!--@include: @/pages/zh-CN/snippets/install-ollama-operator.md-->\n\n开始使用 Ollama Operator 主要有两种方法：\n\n<GettingStartedBlocksZhCn text-sm />\n\n1. `kollama` 提供了一种简单的方式将 Ollama 模型 CRD 部署到您的 Kubernetes 集群中。\n2. 通用的 Kubernetes CRD 适用于希望自定义 Ollama 模型 CRD 的高级用户。\n\n不同的方式提供了不同的定制和灵活性。选择最适合您需求的方式。\n\n\n"
  },
  {
    "path": "docs/pages/zh-CN/guide/overview.md",
    "content": "# 概览\n\n即便 [Ollama](https://github.com/ollama/ollama) 已经是一个强大的用于在本地运行大型语言模型的工具，并且 CLI 的用户体验与使用 Docker CLI 相同，但可惜的是，目前还无法在 Kubernetes 上直接复刻相同的用户体验，特别是同一集群上在运行多个模型时，涉及大量资源和配置。\n\n这就是 Ollama Operator 发挥作用的地方：\n\n- 在您的 Kubernetes 集群上安装 operator\n- 应用所需的 CRDs\n- 创建您的模型\n- 等待模型被获取和加载，就是这样！\n\n多亏了 [lama.cpp](https://github.com/ggerganov/llama.cpp) 的出色工作，**不再担心 Python 环境、CUDA 驱动程序**。\n通往大型语言模型、AIGC、本地化代理、[🦜🔗 Langchain](https://www.langchain.com/) 等的旅程只需几步之遥！\n\n## 能力\n\n<div grid=\"~ cols-[auto_1fr] gap-1\" items-start my-1>\n  <div h=[1rem]><div i-icon-park-outline:check-one text=\"green-600\" /></div>\n  <span>在同一集群上运行多个模型的能力</span>\n  <div h=[1rem]><div i-icon-park-outline:check-one text=\"green-600\" /></div>\n  <span>与所有 Ollama 模型、API 和 CLI 兼容</span>\n  <div h=[1rem]><div i-icon-park-outline:check-one text=\"green-600\" /></div>\n  <span>可以在 <a href=\"https://kubernetes.io/\">常规 Kubernetes 集群</a>、<a href=\"https://k3s.io/\">K3s 集群</a> (Respberry Pi（树莓派），TrueNAS SCALE，等等), <a href=\"https://kind.sigs.k8s.io/\">kind</a>, <a href=\"https://minikube.sigs.k8s.io/docs/\">minikube</a> 上运行</span>\n  <div h=[1rem]><div i-icon-park-outline:check-one text=\"green-600\" /></div>\n  <span>易于安装、卸载和升级</span>\n  <div h=[1rem]><div i-icon-park-outline:check-one text=\"green-600\" /></div>\n  <span>一次拉取，全节点共享（就像普通镜像一样）</span>\n  <div h=[1rem]><div i-icon-park-outline:check-one text=\"green-600\" /></div>\n  <span>易于与现有的 Kubernetes 服务、Ingress，微服务网关等结合使用</span>\n  <div h=[1rem]><div i-icon-park-outline:check-one text=\"green-600\" /></div>\n  <span>除去 Kubernetes 以外，什么都不需要配置</span>\n</div>\n\n## 需求\n\n### Kubernetes 集群\n\n::: tip 我必须要有一整套云上或者自部署的 Kubernetes 集群才能用 Ollama Operator 吗？\n\n其实并不是，对于任意的 macOS，Windows 设备而言，只需要安装了 [Docker Desktop](https://www.docker.com/products/docker-desktop/) 或者 macOS 独享的 [OrbStack](https://orbstack.dev/)，配合用于在本地运行 Kubernetes 集群的 [kind](https://kind.sigs.k8s.io/) 和 [minikube](https://minikube.sigs.k8s.io/docs/) 工具即可在本地启动一个自己的 Kubernetes 集群。\n\nKubernetes 并没有想象中那么难，只要有 Docker 和一个 Kubernetes 工具，就可以在本地运行 Kubernetes 集群，然后安装 Ollama Operator，就可以在本地运行大型语言模型了。\n\n:::\n\n- Kubernetes\n- K3s\n- kind\n- minikube\n\n### 内存需求\n\n要运行 7B 机型，节点上至少应有 8GB 内存；要运行 13B 机型，节点上至少应有 16GB 内存；要运行 33B 机型，节点上至少应有 32GB 内存。\n\n\n### 磁盘需求\n\n与一般容器镜像的大小相比，下载的大型语言模型的实际大小非常大。\n\n1. 建议使用快速稳定的网络连接下载模型。\n2. 如果要运行大于 13B 的模型，则需要高效的存储设备来存储模型。\n"
  },
  {
    "path": "docs/pages/zh-CN/guide/supported-models.md",
    "content": "# 支持的模型\n\n支持的开箱即用的模型列表如下。\n您可以通过在 `Model` CRD 中指定模型镜像字段 `image` 来直接使用它们。\n\n> [!TIP] 不止这些\n> 借助由 Ollama 支持的 [`Modelfile`](https://github.com/ollama/ollama/blob/main/docs/modelfile.md)，您可以创建并打包任何自己喜欢的模型。**只要它是 GGUF 格式的模型**就可以无缝支持。\n\n| 模型名称                                                               | 参数大小  | 实际大小  | 模型镜像                | 完整的模型镜像路径                                      | 多模态 | 去审查 |\n| ------------------------------------------------------------------ | ----- | ----- | ------------------- | ---------------------------------------------- | --- | --- |\n| [Phi-3 Mini](https://ollama.com/library/phi3)                      | 3.8B  | 2.3GB | `phi3`              | `registry.ollama.ai/library/phi3`              |     |     |\n| [Llama 3](https://ollama.com/library/llama3)                       | 8B    | 4.7GB | `llama3`            | `registry.ollama.ai/library/llama3`            |     |     |\n| [Dolphin Llama 3](https://ollama.com/library/dolphin-llama3)       | 8B    | 4.7GB | `dolphin-llama3`    | `registry.ollama.ai/dolphin-llama3`            |     | ✅   |\n| [WizardLM-2](https://ollama.com/library/wizardlm2)                 | 7B    | 4.1GB | `wizardlm2`         | `registry.ollama.ai/library/wizardlm2`         |     |     |\n| [Llama 2](https://ollama.com/library/llama2)                       | 7B    | 3.8GB | `llama2`            | `registry.ollama.ai/library/llama2`            |     |     |\n| [Mistral](https://ollama.com/library/mistral)                      | 7B    | 4.1GB | `mistral`           | `registry.ollama.ai/library/mistral`           |     |     |\n| [Mixtral 8x7B](https://ollama.com/library/mixtral:8x7b)            | 8x7B  | 26GB  | `mixtral:8x7b`      | `registry.ollama.ai/library/mixtral:8x7b`      |     |     |\n| [Mixtral 8x22B](https://ollama.com/library/mixtral:8x22b)          | 8x22B | 80GB  | `mixtral:8x22b`     | `registry.ollama.ai/library/mixtral:8x22b`     |     |     |\n| [Command R](https://ollama.com/library/command-r)                  | 35B   | 20GB  | `command-r`         | `registry.ollama.ai/library/command-r`         |     |     |\n| [Command R Plus](https://ollama.com/library/command-r-plus)        | 104B  | 59GB  | `command-r-plus`    | `registry.ollama.ai/library/command-r-plus`    |     |     |\n| [Dolphin Phi](https://ollama.com/library/dolphin-phi)              | 2.7B  | 1.6GB | `dolphin-phi`       | `registry.ollama.ai/library/dolphin-phi`       |     | ✅   |\n| [Phi-2](https://ollama.com/library/phi)                            | 2.7B  | 1.7GB | `phi`               | `registry.ollama.ai/library/phi`               |     |     |\n| [Neural Chat](https://ollama.com/library/neural-chat)              | 7B    | 4.1GB | `neural-chat`       | `registry.ollama.ai/library/neural-chat`       |     |     |\n| [Starling](https://ollama.com/library/starling-lm)                 | 7B    | 4.1GB | `starling-lm`       | `registry.ollama.ai/library/starling-lm`       |     |     |\n| [Code Llama](https://ollama.com/library/codellama)                 | 7B    | 3.8GB | `codellama`         | `registry.ollama.ai/library/codellama`         |     |     |\n| [Llama 2 Uncensored](https://ollama.com/library/llama2-uncensored) | 7B    | 3.8GB | `llama2-uncensored` | `registry.ollama.ai/library/llama2-uncensored` |     | ✅   |\n| [Llama 2 13B](https://ollama.com/library/llama2)                   | 13B   | 7.3GB | `llama2:13b`        | `registry.ollama.ai/library/llama2:13b`        |     |     |\n| [Llama 2 70B](https://ollama.com/library/llama2)                   | 70B   | 39GB  | `llama2:70b`        | `registry.ollama.ai/library/llama2:70b`        |     |     |\n| Orca Mini                                                          | 3B    | 1.9GB | `orca-mini`         | `registry.ollama.ai/library/orca-mini`         |     |     |\n| Vicuna                                                             | 7B    | 3.8GB | `vicuna`            | `registry.ollama.ai/library/vicuna`            |     |     |\n| LLaVA                                                              | 7B    | 4.5GB | `llava`             | `registry.ollama.ai/library/llava`             | ✅   |     |\n| Gemma 2B                                                           | 2B    | 1.4GB | `gemma:2b`          | `registry.ollama.ai/library/gemma:2b`          |     |     |\n| Gemma 7B                                                           | 7B    | 4.8GB | `gemma:7b`          | `registry.ollama.ai/library/gemma:7b`          |     |     |\n\n可以在 [Ollama Library](https://ollama.com/library) 页面查看现在已经可以开箱即用的模型。\n"
  },
  {
    "path": "docs/pages/zh-CN/index.md",
    "content": "---\nlayout: home\nsidebar: false\n\ntitle: Ollama Operator\n\nhero:\n  name: Ollama Operator\n  text: 大语言模型，伸缩自如，轻松部署\n  tagline: 一个在 Kubernetes 上让部署和运行大型语言模型变得轻松简单的 Operator，由 Ollama 强力驱动 🐫\n  image:\n    src: /logo.png\n    alt: Ollama Operator\n  actions:\n    - theme: brand\n      text: 快速开始\n      link: /pages/zh-CN/guide/getting-started/\n    - theme: alt\n      text: 在 GitHub 上查看\n      link: https://github.com/nekomeowww/ollama-operator\n\nfeatures:\n  - icon: <div i-twemoji:rocket></div>\n    title: 简单易用\n    details: 易于使用的 API，足够简单的 CRD 规格，只需几行 YAML 定义即可部署一个模型，然后立即与之交互。\n  - icon: <div i-twemoji:ship></div>\n    title: 兼容各种 Kubernetes\n    details: 将 Ollama 的用户体验扩展到任何 Kubernetes 集群、边缘或任何云基础设施，使用相同的 CRD API，从任何地方与之交互。\n  - icon: <div i-simple-icons:openai></div>\n    title: 兼容 OpenAI API\n    details: 您熟悉的 <code>/v1/chat/completions</code> 接口就在这里，具有相同的请求和响应格式。无需更改代码或切换到其他 API。\n  - icon: <div i-twemoji:parrot></div>\n    title: 随时对接 Langchain\n    details: 强大的功能调用、代理、知识库检索。使用 Ollama Operator，释放 Langchain 开箱即用的所有功能。\n---\n\n<script setup>\nimport { NuAsciinemaPlayer } from '@nolebase/ui-asciinema'\n</script>\n\n### 开始\n\n<GettingStartedBlocksZhCn />\n\n### 一睹为快\n\n<br>\n\n<div w-full rounded-xl overflow-hidden>\n  <NuAsciinemaPlayer\n    src=\"/demo.cast\"\n    :loop=\"true\"\n    :autoPlay=\"true\"\n    :rows=\"20\"\n    :speed=\"3\"\n    w-full\n  />\n</div>\n"
  },
  {
    "path": "docs/pages/zh-CN/references/architectural-design.md",
    "content": "# 架构设计\n\nOllama Operator 会根据 CRD 的定义，创建两个主要组件：\n\n1. **模型推理服务**：模型推断服务器是一个简单的 API 服务器，用于运行模型并为模型的 API 提供服务。它在 Kubernetes 集群中作为 `Deployment` 创建。\n2. **模型镜像托管服务**：我们需要一项服务来存储下载过的模型镜像并重复使用它们，而不是在模型推理服务创建的时候每次都下载自己的模型，因此将创建一个 `StatefulSet` 和一个 `PersistentVolumeClaim` 。实际的文件将会被存储在动态调配的 `PersistentVolume` 中。\n\n::: info 为什么会需要额外的 **模型镜像托管服务**？\n虽然 Ollama 的 [`Modelfile`](https://github.com/ollama/ollama/blob/main/docs/modelfile.md) 创建的模型镜像是有效的 OCI 格式映像，但由于镜像内的 `contentType` 值和 `Modelfile` 镜像的整体结构与一般的容器映像不兼容，因此无法直接使用一般容器运行时（containerd，docker）运行模型。因此，我们需要在 Kubernetes 集群上持久化**模型镜像托管服务**的独立 Service/Deployment，以保存和缓存之前下载的模型镜像。\n\n虽说是一个额外的服务，但是实际上我们并不会创建一个 Docker Registry 或者 Harbor 这样大体量的 Registry 服务器，而是简单地用 `ollama serve` 这个内置命令来启动一个简单服务，在每次的模型推理服务创建时，都会有单独的镜像拉取请求直接发送到这个服务上。\n:::\n\n它创建的具体资源及其之间的关系如下图所示：\n\n <picture>\n <source\n   srcset=\"/architecture-theme-night.png\"\n   media=\"(prefers-color-scheme: dark)\"\n />\n <source\n   srcset=\"/architecture-theme-day.png\"\n   media=\"(prefers-color-scheme: light), (prefers-color-scheme: no-preference)\"\n />\n <img src=\"/architecture-theme-day.png\" />\n</picture>\n"
  },
  {
    "path": "docs/pages/zh-CN/references/cli/commands/deploy.md",
    "content": "# `kollama deploy`\n\n`kollama deploy` 命令用于将 [`Model`](/pages/zh-CN/references/crd/model) 部署到 Kubernetes 集群。它是通过操作 CRD 资源与 Ollama Operator 交互的基本封装和工具类型 CLI。\n\n[[toc]]\n\n## 用例\n\n### 部署存储于 [registry.ollama.ai](https://registry.ollama.ai) 镜像仓库上的模型\n\n```shell\nkollama deploy phi\n```\n\n### 部署到特定命名空间（namespace）\n\n```shell\nkollama deploy phi --namespace=production\n```\n\n### 部署存储于自定义镜像仓库上的模型\n\n```shell\nkollama deploy phi --image=registry.example.com/library/phi:latest\n```\n\n### 部署带有暴露 NodePort 服务的 [`Model`](/pages/zh-CN/references/crd/model) 以供外部访问\n\n```shell\nkollama deploy phi --expose\n```\n\n::: tip 了解 [`Model`](/pages/zh-CN/references/crd/model) 使用的 NodePort 端口号...\n\n```shell\nkubectl get svc --selector model.ollama.ayaka.io/name=<model name> -o json | jq \".spec.ports[0].nodePort\"\n```\n\n:::\n\n::: tip 配置期望分配的 NodePort 端口号...\n\n```shell\nkollama deploy phi --expose --node-port=30000\n```\n\n:::\n\n### 部署带有暴露 LoadBalancer 服务的 [`Model`](/pages/zh-CN/references/crd/model) 以供外部访问\n\n```shell\nkollama deploy phi --expose --service-type=LoadBalancer\n```\n\n### 部署有着资源限制的 [`Model`](/pages/zh-CN/references/crd/model)\n\n下面的示例部署了 `phi` 模型，并限制 CPU 使用率为 `1` 个核心，内存使用量为 `1Gi`。\n\n```shell\nkollama deploy phi --limit=cpu=1 --limit=memory=1Gi\n```\n\n## 选项\n\n### `--namespace`\n\n如果配置了该参数，将会在指定的命名空间中部署 [`Model`](/pages/zh-CN/references/crd/model)。\n\n### `--image`\n\n默认：`registry.ollama.ai/library/<model name>:latest`\n\n```shell\nkollama deploy phi --image=registry.ollama.ai/library/phi:latest\n```\n\n要部署的模型镜像。\n\n- 如果未指定，将使用 [`Model`](/pages/zh-CN/references/crd/model) 名称作为镜像名称（如果未指定镜像仓库（Registry），这个时候会默认从 `registry.ollama.ai/library/<model name>` 拉取）。例如，如果 [`Model`](/pages/zh-CN/references/crd/model) 名称是 `phi`，最终获取的镜像名称将是 `registry.ollama.ai/library/phi:latest`。\n- 如果没有指定，标签将会使用 `latest` 的。\n\n### `--limit`（支持多次使用）\n\n> 多次使用该选项可指定多个资源限制。\n\n为即将部署的 [`Model`](/pages/zh-CN/references/crd/model) 指定资源限制。这对于没有足够多资源的集群，或者是希望在有限资源的集群中部署多个 [`Model`](/pages/zh-CN/references/crd/model) 是非常有用的。\n\n::: tip 对于 NVIDIA、AMD GPU 的资源限制...\n\n在 Kubernetes 中，任何 GPU 资源都遵循这个格式：\n\n```yaml\nresources:\n  limits:\n    gpu-vendor.example/example-gpu: 1 # requesting 1 GPU\n```\n\n使用 `nvidia.com/gpu` 可以限制 NVIDIA GPU 的数量，因此，在使用 `kollama deploy` 时，你可以使用 `--limit nvidia.com/gpu=1` 来指定 NVIDIA GPU 的数量为 `1`：\n\n```shell\nkollama deploy phi --limit=nvidia.com/gpu=1\n```\n\n```yaml\nresources:\n  limits:\n    nvidia.com/gpu: 1 # requesting 1 GPU # [!code focus]\n```\n\n> [有关配合 `nvidia/k8s-device-plugin` 使用资源标签的文档](https://github.com/NVIDIA/k8s-device-plugin?tab=readme-ov-file#enabling-gpu-support-in-kubernetes)\n\n使用 `amd.com/gpu` 可以限制 AMD GPU 的数量，在使用 `kollama deploy` 时，你可以使用 `--limit amd.com/gpu=1` 来指定 AMD GPU 的数量为 `1`。\n\n```shell\nkollama deploy phi --limit=amd.com/gpu=1\n```\n\n最终会渲染为：\n\n```yaml\nresources:\n  limits:\n    amd.com/gpu: 1 # requesting a GPU  # [!code focus]\n```\n\n> [关于配合 `ROCm/k8s-device-plugin` 使用 Label 的 YAML 配置文件的示例](https://github.com/ROCm/k8s-device-plugin/blob/4607bf06b700e53803d566e0bf9555f773f0b4f1/example/pod/alexnet-gpu.yaml)\n\n你可以在这里阅读更多：[调度 GPUs | Kubernetes](https://kubernetes.io/zh-cn/docs/tasks/manage-gpus/scheduling-gpus/)\n\n:::\n\n::: details 我已经部署过 [`Model`](/pages/zh-CN/references/crd/model)，但是我想要更改资源限制...\n\n当然可以，用 [`kubectl set resources`](https://kubernetes.io/zh-cn/docs/reference/kubectl/generated/kubectl_set/kubectl_set_resources/) 命令来可以更改资源限制：\n\n```shell\nkubectl set resources deployment -l model.ollama.ayaka.io/name=<model name> --limits cpu=4\n```\n\n改内存限制：\n\n```shell\nkubectl set resources deployment -l model.ollama.ayaka.io/name=<model name> --limits memory=8Gi\n```\n\n:::\n\n格式是 `<resource>=<quantity>`.\n\n比如：`--limit=cpu=1` `--limit=memory=1Gi`.\n\n\n### `--storage-class`\n\n```shell\nkollama deploy phi --storage-class=standard\n```\n\n要给 [`Model`](/pages/zh-CN/references/crd/model) 部署服务关联的 [`PersistentVolumeClaim`](https://kubernetes.io/zh-cn/docs/concepts/storage/persistent-volumes/#persistentvolumeclaims) 使用的 [`StorageClass`](https://kubernetes.io/zh-cn/docs/concepts/storage/storage-classes/#storageclass-objects)。\n\n如果没有指定，则会使用 [默认的 `StorageClass`](https://kubernetes.io/zh-cn/docs/concepts/storage/storage-classes/#default-storageclass)。\n\n### `--pv-access-mode`\n\n```shell\nkollama deploy phi --pv-access-mode=ReadWriteMany\n```\n\n用于给 Ollama Operator 所创建的 image store 的 [`StatefulSet`](https://kubernetes.io/zh-cn/docs/concepts/workloads/controllers/statefulset/) 资源所关联的 [`PersistentVolume`](https://kubernetes.io/zh-cn/docs/concepts/storage/persistent-volumes/#introduction) 所使用的 [访问模式（Access mode）](https://kubernetes.io/zh-cn/docs/concepts/storage/persistent-volumes/#access-modes)。\n\n如果未指定，则默认使用 [`ReadWriteOnce`](https://kubernetes.io/zh-cn/docs/concepts/storage/persistent-volumes/#access-modes) 作为[访问模式（Access mode）](https://kubernetes.io/zh-cn/docs/concepts/storage/persistent-volumes/#access-modes)的值。\n\n如果你会将 [`Model`](/pages/zh-CN/references/crd/model) 部署到 Ollama Operator 默认支持的 [kind](https://kind.sigs.k8s.io/) 和 [k3s](https://k3s.io/) 集群，你应该保持其当前的默认值 [`ReadWriteOnce`](https://kubernetes.io/zh-cn/docs/concepts/storage/persistent-volumes/#access-modes)。有且仅有当你部署到一个自托管的集群的时候，且 [`StorageClass`](https://kubernetes.io/zh-cn/docs/concepts/storage/storage-classes/#storageclass-objects) 支持时，就可以指定访问模式为 [`ReadWriteMany`](https://kubernetes.io/zh-cn/docs/concepts/storage/persistent-volumes/#access-modes)。\n\n### `--expose`\n\n默认：`false`\n\n```shell\nkollama deploy phi --expose\n```\n\n是否通过服务公开 [`Model`](/pages/zh-CN/references/crd/model) 所暴露的接口供外部访问，使其方便与 [`Model`](/pages/zh-CN/references/crd/model) 交互。\n\n::: info 其实创建 Model 资源时，也会创建一个 `ClusterIP` 类型的服务\n\n在没有指定 `--expose` 情况下，在为 [`Model`](/pages/zh-CN/references/crd/model) 创建资源时，Ollama Operator 也默认将为 [`Model`](/pages/zh-CN/references/crd/model) 创建一个用于集群中其他服务内部直接请求到 [`Model`](/pages/zh-CN/references/crd/model) 的关联服务，方便其他服务直接与之进行集成，其类型为 `ClusterIP`，名称与 [`Model`](/pages/zh-CN/references/crd/model) 所关联的 Deployment 的名称（也就是 `ollama-model-<model name>`）相同。\n\n:::\n\n默认情况下，[`--expose`](#expose) 参数包含在内时，将会创建一个类型为 [`NodePort`](https://kubernetes.io/zh-cn/docs/concepts/services-networking/service/#type-nodeport) 的 [`Service`](https://kubernetes.io/zh-cn/docs/concepts/services-networking/service/)。\n\n你可以使用 [`--service-type`](#service-type) 参数加上 `LoadBalancer` 值（也就是 `--service-type=LoadBalancer`）来创建一个 [`LoadBalancer`](https://kubernetes.io/zh-cn/docs/concepts/services-networking/service/#loadbalancer) 类型的 [`Service`](https://kubernetes.io/zh-cn/docs/concepts/services-networking/service/)。\n\n### `--service-type`\n\n```shell\nkollama deploy phi --expose --service-type=NodePort\n```\n\n默认：`NodePort`\n\n暴露所部署的 [`Model`](/pages/zh-CN/references/crd/model) 服务时所连带创建的 [`Service`](https://kubernetes.io/zh-cn/docs/concepts/services-networking/service/) 类型。**有且仅有当 [`--expose`](#expose) 被指定时，该参数才会生效。**\n\n如果没有指定该参数，那么创建时，将会默认使用 [`NodePort`](https://kubernetes.io/zh-cn/docs/concepts/services-networking/service/#type-nodeport) 类型的服务。\n\n::: tip 了解有多少服务与 [`Model`](/pages/zh-CN/references/crd/model) 相关联...\n\n```shell\nkubectl get svc --selector ollama.ayaka.io/type=model\n```\n\n:::\n\n可以指定为 [`LoadBalancer`](https://kubernetes.io/zh-cn/docs/concepts/services-networking/service/#loadbalancer) 来暴露一个 [`LoadBalancer`](https://kubernetes.io/zh-cn/docs/concepts/services-networking/service/#loadbalancer) 类型的服务。\n\n### `--service-name`\n\n```shell\nkollama deploy phi --expose --service-name=phi-svc-nodeport\n```\n\n默认：`ollama-model-<model name>-<service type>`\n\n暴露 [`Model`](/pages/zh-CN/references/crd/model) 所使用的 [`Service`](https://kubernetes.io/zh-cn/docs/concepts/services-networking/service/) 的名称。\n\n如果未指定，则将使用 [`Model`](/pages/zh-CN/references/crd/model) 名称作为服务名称，并将 `-nodeport` 作为 [`NodePort`](https://kubernetes.io/zh-cn/docs/concepts/services-networking/service/#type-nodeport) 类型的服务的后缀。\n\n### `--node-port`\n\n```shell\nkollama deploy phi --expose --service-type=NodePort --node-port=30000\n```\n\n默认：随机协商的端口\n\n::: tip 了解 [`Model`](/pages/zh-CN/references/crd/model) 使用的 `NodePort` 端口号...\n\n```shell\nkubectl get svc --selector model.ollama.ayaka.io/name=<model name> -o json | jq \".spec.ports[0].nodePort\"\n```\n\n:::\n\n::: warning 并不可以随便指定端口号哦！\n\n有这么几个限制是存在的：\n\n1. 默认情况下 `30000-32767` 是 Kubernetes 集群中的 `NodePort` 端口范围。如果你想要使用这个范围之外的端口，你需要在集群中配置 `--service-node-port-range` 参数。\n2. 你不能使用已经被其他服务占用的端口号。\n\n有关自己选择端口号的更多信息，请参考 [Kubernetes 官方文档有关 `nodePort` 的章节](https://kubernetes.io/zh-cn/docs/concepts/services-networking/service/#nodeport-custom-port)。\n\n:::\n\n暴露 [`Model`](/pages/zh-CN/references/crd/model) 为 [`NodePort`](https://kubernetes.io/zh-cn/docs/concepts/services-networking/service/#type-nodeport) 类型的服务时所使用的指定的 [`nodePort`](https://kubernetes.io/zh-cn/docs/concepts/services-networking/service/#nodeport-custom-port) 端口号。\n\n如果没有指定，将分配一个随机端口。该参数有且仅有在 [`--expose`](#expose) 指定，或者 [`--service-type`](#service-type) 设置为 `NodePort` 时才有效。\n"
  },
  {
    "path": "docs/pages/zh-CN/references/cli/commands/expose.md",
    "content": "# `kollama expose`\n\n`kollama expose` 用于暴露 [`Model`](/pages/zh-CN/references/crd/model) 服务。\n\n[[toc]]\n\n## 用例\n\n### 暴露 [`Model`](/pages/zh-CN/references/crd/model) 服务\n\n```shell\nkollama expose phi\n```\n\n### 暴露指定命名空间中的 [`Model`](/pages/zh-CN/references/crd/model) 服务\n\n```shell\nkollama expose phi --namespace=production\n```\n\n### 暴露为 [`LoadBalancer`](https://kubernetes.io/zh-cn/docs/concepts/services-networking/service/#loadbalancer) 类型的服务\n\n```shell\nkollama expose phi --service-type=LoadBalancer\n```\n\n## 选项\n\n### `--namespace`\n\n如果配置了该参数，将会在指定的命名空间中操作 [`Model`](/pages/zh-CN/references/crd/model)。\n\n### `--service-type`\n\n```shell\nkollama deploy phi --expose --service-type=NodePort\n```\n\n默认：`NodePort`\n\n暴露所部署的 [`Model`](/pages/zh-CN/references/crd/model) 服务时所连带创建的 [`Service`](https://kubernetes.io/zh-cn/docs/concepts/services-networking/service/) 类型。**有且仅有当 [`--expose`](#expose) 被指定时，该参数才会生效。**\n\n如果没有指定该参数，那么创建时，将会默认使用 [`NodePort`](https://kubernetes.io/zh-cn/docs/concepts/services-networking/service/#type-nodeport) 类型的服务。\n\n::: tip 了解有多少服务与 [`Model`](/pages/zh-CN/references/crd/model) 相关联...\n\n```shell\nkubectl get svc --selector ollama.ayaka.io/type=model\n```\n\n:::\n\n可以指定为 [`LoadBalancer`](https://kubernetes.io/zh-cn/docs/concepts/services-networking/service/#loadbalancer) 来暴露一个 [`LoadBalancer`](https://kubernetes.io/zh-cn/docs/concepts/services-networking/service/#loadbalancer) 类型的服务。\n\n### `--service-name`\n\n```shell\nkollama deploy phi --expose --service-name=phi-svc-nodeport\n```\n\n默认：`ollama-model-<model name>-<service type>`\n\n暴露 [`Model`](/pages/zh-CN/references/crd/model) 所使用的 [`Service`](https://kubernetes.io/zh-cn/docs/concepts/services-networking/service/) 的名称。\n\n如果未指定，则将使用 [`Model`](/pages/zh-CN/references/crd/model) 名称作为服务名称，并将 `-nodeport` 作为 [`NodePort`](https://kubernetes.io/zh-cn/docs/concepts/services-networking/service/#type-nodeport) 类型的服务的后缀。\n\n### `--node-port`\n\n```shell\nkollama deploy phi --expose --service-type=NodePort --node-port=30000\n```\n\n默认：随机协商的端口\n\n::: tip 了解 [`Model`](/pages/zh-CN/references/crd/model) 使用的 `NodePort` 端口号...\n\n```shell\nkubectl get svc --selector model.ollama.ayaka.io/name=<model name> -o json | jq \".spec.ports[0].nodePort\"\n```\n\n:::\n\n::: warning 并不可以随便指定端口号哦！\n\n有这么几个限制是存在的：\n\n1. 默认情况下 `30000-32767` 是 Kubernetes 集群中的 `NodePort` 端口范围。如果你想要使用这个范围之外的端口，你需要在集群中配置 `--service-node-port-range` 参数。\n2. 你不能使用已经被其他服务占用的端口号。\n\n有关自己选择端口号的更多信息，请参考 [Kubernetes 官方文档有关 `nodePort` 的章节](https://kubernetes.io/zh-cn/docs/concepts/services-networking/service/#nodeport-custom-port)。\n\n:::\n\n暴露 [`Model`](/pages/zh-CN/references/crd/model) 为 [`NodePort`](https://kubernetes.io/zh-cn/docs/concepts/services-networking/service/#type-nodeport) 类型的服务时所使用的指定的 [`nodePort`](https://kubernetes.io/zh-cn/docs/concepts/services-networking/service/#nodeport-custom-port) 端口号。\n\n如果没有指定，将分配一个随机端口。该参数有且仅有在 [`--expose`](#expose) 指定，或者 [`--service-type`](#service-type) 设置为 `NodePort` 时才有效。\n"
  },
  {
    "path": "docs/pages/zh-CN/references/cli/commands/undeploy.md",
    "content": "# `kollama undeploy`\n\n::: info 无需担心删除过去的 [`Model`](/pages/zh-CN/references/crd/model) 部署后会需要重新下载模型镜像哦！\n\nOllama Operator 在为 [`Model`](/pages/zh-CN/references/crd/model) 部署的普通的 [`Deployment`](https://kubernetes.io/zh-cn/docs/concepts/workloads/controllers/deployment/) 类型资源外，还会部署单独的用于存储下载过的模型的 [`StatefulSet`](https://kubernetes.io/zh-cn/docs/concepts/workloads/controllers/statefulset/) 资源和其对应的存储资源。\n\n因此，即使删除了模型的部署，也不会影响到已经下载的模型文件。他们都会存放在名为 `ollama-models-store` 的单独的资源中，直到手动删除。\n\n你可以通过下面的命令来查看 `ollama-models-store` 的状态\n\n```shell\nkubectl describe statefulset ollama-models-store\n```\n\n:::\n\n`kollama undeploy` 用于删除 [`Model`](/pages/zh-CN/references/crd/model) 的部署。\n\n[[toc]]\n\n## 用例\n\n### 删除 [`Model`](/pages/zh-CN/references/crd/model) 的部署\n\n```shell\nkollama undeploy phi\n```\n\n### 删除指定命名空间中的 [`Model`](/pages/zh-CN/references/crd/model) 的部署\n\n```shell\nkollama undeploy phi --namespace=production\n```\n\n## 选项\n\n### `--namespace`\n\n如果配置了该参数，将会在指定的命名空间中删除模型的部署。\n"
  },
  {
    "path": "docs/pages/zh-CN/references/cli/index.md",
    "content": "# `kollama` CLI 参考\n\n- [`kollama deploy`](/pages/zh-CN/references/cli/commands/deploy)\n- [`kollama undeploy`](/pages/zh-CN/references/cli/commands/undeploy)\n- [`kollama expose`](/pages/zh-CN/references/cli/commands/expose)\n"
  },
  {
    "path": "docs/pages/zh-CN/references/crd/index.md",
    "content": "# CRD 参考\n\n- [`Model`](/pages/zh-CN/references/crd/model)\n"
  },
  {
    "path": "docs/pages/zh-CN/references/crd/model.md",
    "content": "# `Model` 模型资源\n\n`Model` 是一个自定义资源定义（CRD），代表集群中的一个 Ollama 推理服务实例。\n\n创建时，`Model` 的创建会触发对 [`Deployment`](https://kubernetes.io/zh-cn/docs/concepts/workloads/controllers/deployment/)，[`Service`](https://kubernetes.io/docs/concepts/services-networking/service/) 的创建。\n\n> 如果是首次创建，还会额外创建一个用于存储和持久化已下载 Ollama 镜像的 StatefulSet 和其对应的 PersistentVolumeClaim。\n\n## 完整 CRD 参考\n\n```yaml\napiVersion: ollama.ayaka.io/v1\nkind: Model\nmetadata:\n  name: phi\nspec:\n  # Scale the model to 2 replicas\n  replicas: 2\n  # Use the model image `phi`\n  image: phi\n  imagePullPolicy: IfNotPresent\n  resources:\n    limits:\n      cpu: 4\n      memory: 8Gi\n      nvidia.com/gpu: 1 # If you got GPUs\n    requests:\n      cpu: 4\n      memory: 8Gi\n      nvidia.com/gpu: 1 # If you got GPUs\n  storageClassName: local-path\n  # If you have your own PersistentVolumeClaim created\n  persistentVolumeClaim: your-pvc\n  # If you need to specify the access mode for the PersistentVolume\n  persistentVolume:\n    accessMode: ReadWriteOnce\n```\n"
  },
  {
    "path": "docs/pages/zh-CN/snippets/deploy-kubernetes-cluster-with-kind.md",
    "content": "::: tip 没有现成的 Kubernetes 集群吗？\n\n运行以下命令以在您的本地机器上安装 Docker 和 kind 并创建一个 Kubernetes 集群：\n\n::: code-group\n\n```shell [macOS]\nbrew install --cask docker\nbrew install docker kind kubectl\nwget https://raw.githubusercontent.com/nekomeowww/ollama-operator/main/hack/kind-config.yaml\nkind create cluster --config kind-config.yaml\n```\n\n```powershell [Windows]\nInvoke-WebRequest  -OutFile \"./Docker Desktop Installer.exe\"\nStart-Process 'Docker Desktop Installer.exe' -Wait install\nstart /w \"\" \"Docker Desktop Installer.exe\" install\n\n# If you use Scoop command line installer\nscoop install docker kubectl go\n# Alternatively, if you use Chocolatey as package manager\nchoco install docker-desktop kubernetes-cli golang\n\ngo install sigs.k8s.io/kind@latest\nwget https://raw.githubusercontent.com/nekomeowww/ollama-operator/main/hack/kind-config.yaml\nkind create cluster --config kind-config.yaml\n```\n\n```shell [Linux]\n# refer to Install Docker Engine on Debian | Docker Docs https://docs.docker.com/engine/install/debian/\n# and Install and Set Up kubectl on Linux | Kubernetes https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/\n```\n\n:::\n"
  },
  {
    "path": "docs/pages/zh-CN/snippets/install-ollama-operator.md",
    "content": "1. 安装 Operator.\n\n```shell\nkubectl apply \\\n  --server-side=true \\\n  -f https://raw.githubusercontent.com/nekomeowww/ollama-operator/v0.10.1/dist/install.yaml\n```\n\n2. 等待 Operator 就绪：\n\n```shell\nkubectl wait \\\n   -n ollama-operator-system \\\n  --for=jsonpath='{.status.readyReplicas}'=1 deployment/ollama-operator-controller-manager\n```\n"
  },
  {
    "path": "docs/public/_redirects",
    "content": "/  /pages/en/     301\n"
  },
  {
    "path": "docs/public/browserconfig.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<browserconfig>\n    <msapplication>\n        <tile>\n            <square150x150logo src=\"/mstile-150x150.png\"/>\n            <TileColor>#2b5797</TileColor>\n        </tile>\n    </msapplication>\n</browserconfig>\n"
  },
  {
    "path": "docs/public/demo-full.cast",
    "content": "{\"version\": 2, \"width\": 185, \"height\": 48, \"timestamp\": 1712909764, \"env\": {\"SHELL\": \"/bin/zsh\", \"TERM\": \"xterm-256color\"}}\n[3.10986, \"o\", \"\\u001b[1m\\u001b[7m%\\u001b[27m\\u001b[1m\\u001b[0m                                                                                                                                                                                        \\r \\r\"]\n[3.22733, \"o\", \"\\r\\u001b[0m\\u001b[27m\\u001b[24m\\u001b[J\\r\\n\\u001b[1;36m☸ \\u001b[0m\\u001b[1;36mkind-kind\\u001b[0m in \\u001b[1;36mollama-operator\\u001b[0m on \\u001b[1;35m \\u001b[0m\\u001b[1;35mmain\\u001b[0m \\u001b[1;31m[\\u001b[0m\\u001b[1;31m✘\\u001b[0m\\u001b[1;31m!\\u001b[0m\\u001b[1;31m?\\u001b[0m\\u001b[1;31m]\\u001b[0m via \\u001b[1;34m🐳 \\u001b[0m\\u001b[1;34morbstack\\u001b[0m via \\u001b[1;36m🐹 \\u001b[0m\\u001b[1;36mv1.22.2\\u001b[0m\\u001b[1;36m \\u001b[0m\\r\\n\\u001b[1;32m❯\\u001b[0m \\u001b[K\"]\n[3.227366, \"o\", \"\\u001b[?1h\\u001b=\"]\n[3.227375, \"o\", \"\\u001b[?2004h\"]\n[4.221143, \"o\", \"k\"]\n[4.221685, \"o\", \"\\bku\"]\n[4.221958, \"o\", \"b\"]\n[4.222273, \"o\", \"e\"]\n[4.222594, \"o\", \"c\"]\n[4.222752, \"o\", \"t\"]\n[4.222978, \"o\", \"l\"]\n[4.223363, \"o\", \" g\"]\n[4.223566, \"o\", \"e\"]\n[4.223825, \"o\", \"t\"]\n[4.224137, \"o\", \" p\"]\n[4.224382, \"o\", \"o\"]\n[4.224585, \"o\", \"d\"]\n[4.226708, \"o\", \"s\"]\n[4.227204, \"o\", \"\\u001b[16D\\u001b[7mk\\u001b[7mu\\u001b[7mb\\u001b[7me\\u001b[7mc\\u001b[7mt\\u001b[7ml\\u001b[7m \\u001b[7mg\\u001b[7me\\u001b[7mt\\u001b[7m \\u001b[7mp\\u001b[7mo\\u001b[7md\\u001b[7ms\\u001b[27m\"]\n[4.526773, \"o\", \"\\u001b[16D\\u001b[27mk\\u001b[27mu\\u001b[27mb\\u001b[27me\\u001b[27mc\\u001b[27mt\\u001b[27ml\\u001b[27m \\u001b[27mg\\u001b[27me\\u001b[27mt\\u001b[27m \\u001b[27mp\\u001b[27mo\\u001b[27md\\u001b[27ms\"]\n[4.527137, \"o\", \"\\u001b[?1l\\u001b>\\u001b[?2004l\\r\\r\\n\"]\n[4.636756, \"o\", \"No resources found in default namespace.\\r\\n\"]\n[4.63762, \"o\", \"\\u001b[1m\\u001b[7m%\\u001b[27m\\u001b[1m\\u001b[0m                                                                                                                                                                                        \\r \\r\"]\n[4.685206, \"o\", \"\\r\\u001b[0m\\u001b[27m\\u001b[24m\\u001b[J\\r\\n\\u001b[1;36m☸ \\u001b[0m\\u001b[1;36mkind-kind\\u001b[0m in \\u001b[1;36mollama-operator\\u001b[0m on \\u001b[1;35m \\u001b[0m\\u001b[1;35mmain\\u001b[0m \\u001b[1;31m[\\u001b[0m\\u001b[1;31m✘\\u001b[0m\\u001b[1;31m!\\u001b[0m\\u001b[1;31m?\\u001b[0m\\u001b[1;31m]\\u001b[0m via \\u001b[1;34m🐳 \\u001b[0m\\u001b[1;34morbstack\\u001b[0m via \\u001b[1;36m🐹 \\u001b[0m\\u001b[1;36mv1.22.2\\u001b[0m\\u001b[1;36m \\u001b[0m\\r\\n\\u001b[1;32m❯\\u001b[0m \\u001b[K\"]\n[4.685316, \"o\", \"\\u001b[?1h\\u001b=\\u001b[?2004h\"]\n[8.952741, \"o\", \"c\"]\n[8.952991, \"o\", \"\\bca\"]\n[8.953539, \"o\", \"t\"]\n[8.9538, \"o\", \" <\"]\n[8.954238, \"o\", \"<\"]\n[8.954423, \"o\", \"E\"]\n[8.954581, \"o\", \"O\"]\n[8.954731, \"o\", \"F\"]\n[8.955038, \"o\", \" >\"]\n[8.955312, \"o\", \">\"]\n[8.955462, \"o\", \" o\"]\n[8.955601, \"o\", \"l\"]\n[8.955737, \"o\", \"l\"]\n[8.955884, \"o\", \"a\"]\n[8.95603, \"o\", \"m\"]\n[8.956171, \"o\", \"a\"]\n[8.956313, \"o\", \"-\"]\n[8.956455, \"o\", \"m\"]\n[8.956597, \"o\", \"o\"]\n[8.95674, \"o\", \"d\"]\n[8.956879, \"o\", \"e\"]\n[8.95702, \"o\", \"l\"]\n[8.957161, \"o\", \"-\"]\n[8.957291, \"o\", \"p\"]\n[8.957428, \"o\", \"h\"]\n[8.957569, \"o\", \"i\"]\n[8.957704, \"o\", \".\"]\n[8.957839, \"o\", \"y\"]\n[8.95798, \"o\", \"a\"]\n[8.958113, \"o\", \"m\"]\n[8.958248, \"o\", \"l\"]\n[8.958412, \"o\", \"\\r\\r\\na\\u001b[K\"]\n[8.958579, \"o\", \"\\rap\"]\n[8.9587, \"o\", \"i\"]\n[8.958836, \"o\", \"V\"]\n[8.958977, \"o\", \"e\"]\n[8.959115, \"o\", \"r\"]\n[8.959257, \"o\", \"s\"]\n[8.959391, \"o\", \"i\"]\n[8.959526, \"o\", \"o\"]\n[8.959673, \"o\", \"n\"]\n[8.959807, \"o\", \":\"]\n[8.959955, \"o\", \" o\"]\n[8.960096, \"o\", \"l\"]\n[8.960228, \"o\", \"l\"]\n[8.960364, \"o\", \"a\"]\n[8.960499, \"o\", \"m\"]\n[8.960644, \"o\", \"a\"]\n[8.960782, \"o\", \".\"]\n[8.960916, \"o\", \"a\"]\n[8.961051, \"o\", \"y\"]\n[8.961188, \"o\", \"a\"]\n[8.96132, \"o\", \"k\"]\n[8.96145, \"o\", \"a\"]\n[8.96158, \"o\", \".\"]\n[8.961711, \"o\", \"i\"]\n[8.961845, \"o\", \"o\"]\n[8.961981, \"o\", \"/\"]\n[8.962118, \"o\", \"v\"]\n[8.962255, \"o\", \"1\"]\n[8.962585, \"o\", \"\\r\\r\\nk\\u001b[K\"]\n[8.962778, \"o\", \"\\rki\"]\n[8.963066, \"o\", \"n\"]\n[8.963352, \"o\", \"d\"]\n[8.963637, \"o\", \":\"]\n[8.963887, \"o\", \" M\"]\n[8.964044, \"o\", \"o\"]\n[8.964251, \"o\", \"d\"]\n[8.964447, \"o\", \"e\"]\n[8.96462, \"o\", \"l\"]\n[8.964796, \"o\", \"\\r\\r\\nm\\u001b[K\"]\n[8.964963, \"o\", \"\\rme\"]\n[8.965131, \"o\", \"t\"]\n[8.965255, \"o\", \"a\"]\n[8.965496, \"o\", \"d\"]\n[8.965676, \"o\", \"a\"]\n[8.965844, \"o\", \"t\"]\n[8.966002, \"o\", \"a\"]\n[8.96615, \"o\", \":\"]\n[8.966328, \"o\", \"\\r\\r\\n  n\\u001b[K\"]\n[8.96648, \"o\", \"a\"]\n[8.966625, \"o\", \"m\"]\n[8.966776, \"o\", \"e\"]\n[8.966931, \"o\", \":\"]\n[8.967085, \"o\", \" p\"]\n[8.967223, \"o\", \"h\"]\n[8.967416, \"o\", \"i\"]\n[8.967559, \"o\", \"\\r\\r\\ns\\u001b[K\"]\n[8.967723, \"o\", \"\\rsp\"]\n[8.967882, \"o\", \"e\"]\n[8.968021, \"o\", \"c\"]\n[8.968177, \"o\", \":\"]\n[8.96834, \"o\", \"\\r\\r\\n  i\\u001b[K\"]\n[8.968489, \"o\", \"m\"]\n[8.968622, \"o\", \"a\"]\n[8.968747, \"o\", \"g\"]\n[8.968944, \"o\", \"e\"]\n[8.969127, \"o\", \":\"]\n[8.96927, \"o\", \" p\"]\n[8.969402, \"o\", \"h\"]\n[8.969555, \"o\", \"i\"]\n[8.969723, \"o\", \"\\r\\r\\n  p\\u001b[K\"]\n[8.969867, \"o\", \"e\"]\n[8.970002, \"o\", \"r\"]\n[8.97013, \"o\", \"s\"]\n[8.970279, \"o\", \"i\"]\n[8.970415, \"o\", \"s\"]\n[8.970547, \"o\", \"t\"]\n[8.970698, \"o\", \"e\"]\n[8.970839, \"o\", \"n\"]\n[8.970985, \"o\", \"t\"]\n[8.971126, \"o\", \"V\"]\n[8.971274, \"o\", \"o\"]\n[8.971411, \"o\", \"l\"]\n[8.971553, \"o\", \"u\"]\n[8.971696, \"o\", \"m\"]\n[8.97184, \"o\", \"e\"]\n[8.971985, \"o\", \":\"]\n[8.972166, \"o\", \"\\r\\r\\n    a\\u001b[K\"]\n[8.972316, \"o\", \"c\"]\n[8.972614, \"o\", \"c\"]\n[8.972814, \"o\", \"e\"]\n[8.97298, \"o\", \"s\"]\n[8.973151, \"o\", \"s\"]\n[8.973305, \"o\", \"M\"]\n[8.973437, \"o\", \"o\"]\n[8.973576, \"o\", \"d\"]\n[8.973709, \"o\", \"e\"]\n[8.973842, \"o\", \":\"]\n[8.973983, \"o\", \" R\"]\n[8.974116, \"o\", \"e\"]\n[8.974248, \"o\", \"a\"]\n[8.974382, \"o\", \"d\"]\n[8.974508, \"o\", \"W\"]\n[8.974647, \"o\", \"r\"]\n[8.974788, \"o\", \"i\"]\n[8.974924, \"o\", \"t\"]\n[8.975059, \"o\", \"e\"]\n[8.975192, \"o\", \"O\"]\n[8.975324, \"o\", \"n\"]\n[8.975459, \"o\", \"c\"]\n[8.975592, \"o\", \"e\"]\n[8.975747, \"o\", \"\\r\\r\\nE\\u001b[K\"]\n[8.975884, \"o\", \"\\rEO\"]\n[8.976958, \"o\", \"F\"]\n[8.977223, \"o\", \"\\u001b[9A\\b\\u001b[7mc\\u001b[7ma\\u001b[7mt\\u001b[7m \\u001b[7m<\\u001b[7m<\\u001b[7mE\\u001b[7mO\\u001b[7mF\\u001b[7m \\u001b[7m>\\u001b[7m>\\u001b[7m \\u001b[7mo\\u001b[7ml\\u001b[7ml\\u001b[7ma\\u001b[7mm\\u001b[7ma\\u001b[7m-\\u001b[7mm\\u001b[7mo\\u001b[7md\\u001b[7me\\u001b[7ml\\u001b[7m-\\u001b[7mp\\u001b[7mh\\u001b[7mi\\u001b[7m.\\u001b[7my\\u001b[7ma\\u001b[7mm\\u001b[7ml\\u001b[1B\\u001b[27m\\r\\u001b[7ma\\u001b[7mp\\u001b[7mi\\u001b[7mV\\u001b[7me\\u001b[7mr\\u001b[7ms\\u001b[7mi\\u001b[7mo\\u001b[7mn\\u001b[7m:\\u001b[7m \\u001b[7mo\\u001b[7ml\\u001b[7ml\\u001b[7ma\\u001b[7mm\\u001b[7ma\\u001b[7m.\\u001b[7ma\\u001b[7my\\u001b[7ma\\u001b[7mk\\u001b[7ma\\u001b[7m.\\u001b[7mi\\u001b[7mo\\u001b[7m/\\u001b[7mv\\u001b[7m1\\u001b[1B\\u001b[27m\\r\\u001b[7mk\\u001b[7mi\\u001b[7mn\\u001b[7md\\u001b[7m:\\u001b[7m \\u001b[7mM\\u001b[7mo\\u001b[7md\\u001b[7me\\u001b[7ml\\u001b[1B\\u001b[27m\\r\\u001b[7mm\\u001b[7me\\u001b[7mt\\u001b[7ma\\u001b[7md\\u001b[7ma\\u001b[7mt\\u001b[7ma\\u001b[7m:\\u001b[1B\\u001b[27m\\r\\u001b[7m \\u001b[7m \\u001b[7mn\\u001b[7ma\\u001b[7mm\\u001b[7me\\u001b[7m:\\u001b[7m \\u001b[7mp\\u001b[7mh\\u001b[7mi\\u001b[1B\\u001b[27m\\r\\u001b[7ms\\u001b[7mp\\u001b[7me\\u001b[7mc\\u001b[7m:\\u001b[1B\\u001b[27m\\r\\u001b[7m \\u001b[7m \\u001b[7mi\\u001b[7mm\\u001b[7ma\\u001b[7mg\\u001b[7me\\u001b[7m:\\u001b[7m \\u001b[7mp\\u001b[7mh\\u001b[7mi\\u001b[1B\\u001b[27m\\r\\u001b[7m \\u001b[7m \\u001b[7mp\\u001b[7me\\u001b[7mr\\u001b[7ms\\u001b[7mi\\u001b[7ms\\u001b[7mt\\u001b[7me\\u001b[7mn\\u001b[7mt\\u001b[7mV\\u001b[7mo\\u001b[7ml\\u001b[7mu\\u001b[7mm\\u001b[7me\\u001b[7m:\\u001b[1B\\u001b[27m\\r\\u001b[7m \\u001b[7m \\u001b[7m \\u001b[7m \\u001b[7ma\\u001b[7mc\\u001b[7mc\\u001b[7me\\u001b[7ms\\u001b[7ms\\u001b[7mM\\u001b[7mo\\u001b[7md\\u001b[7me\\u001b[7m:\\u001b[7m \\u001b[7mR\\u001b[7me\\u001b[7ma\\u001b[7md\\u001b[7mW\\u001b[7mr\\u001b[7mi\\u001b[7mt\\u001b[7me\\u001b[7mO\\u001b[7mn\\u001b[7mc\\u001b[7me\\u001b[1B\\u001b[27m\\r\\u001b[7mE\\u001b[7mO\\u001b[7mF\\u001b[27m\"]\n[9.627873, \"o\", \"\\u001b[9A\\b\\u001b[27mc\\u001b[27ma\\u001b[27mt\\u001b[27m \\u001b[27m<\\u001b[27m<\\u001b[27mE\\u001b[27mO\\u001b[27mF\\u001b[27m \\u001b[27m>\\u001b[27m>\\u001b[27m \\u001b[27mo\\u001b[27ml\\u001b[27ml\\u001b[27ma\\u001b[27mm\\u001b[27ma\\u001b[27m-\\u001b[27mm\\u001b[27mo\\u001b[27md\\u001b[27me\\u001b[27ml\\u001b[27m-\\u001b[27mp\\u001b[27mh\\u001b[27mi\\u001b[27m.\\u001b[27my\\u001b[27ma\\u001b[27mm\\u001b[27ml\\u001b[1B\\r\\u001b[27ma\\u001b[27mp\\u001b[27mi\\u001b[27mV\\u001b[27me\\u001b[27mr\\u001b[27ms\\u001b[27mi\\u001b[27mo\\u001b[27mn\\u001b[27m:\\u001b[27m \\u001b[27mo\\u001b[27ml\\u001b[27ml\\u001b[27ma\\u001b[27mm\\u001b[27ma\\u001b[27m.\\u001b[27ma\\u001b[27my\\u001b[27ma\\u001b[27mk\\u001b[27ma\\u001b[27m.\\u001b[27mi\\u001b[27mo\\u001b[27m/\\u001b[27mv\\u001b[27m1\\u001b[1B\\r\\u001b[27mk\\u001b[27mi\\u001b[27mn\\u001b[27md\\u001b[27m:\\u001b[27m \\u001b[27mM\\u001b[27mo\\u001b[27md\\u001b[27me\\u001b[27ml\\u001b[1B\\r\\u001b[27mm\\u001b[27me\\u001b[27mt\\u001b[27ma\\u001b[27md\\u001b[27ma\\u001b[27mt\\u001b[27ma\\u001b[27m:\\u001b[1B\\r\\u001b[27m \\u001b[27m \\u001b[27mn\\u001b[27ma\\u001b[27mm\\u001b[27me\\u001b[27m:\\u001b[27m \\u001b[27mp\\u001b[27mh\\u001b[27mi\\u001b[1B\\r\\u001b[27ms\\u001b[27mp\\u001b[27me\\u001b[27mc\\u001b[27m:\\u001b[1B\\r\\u001b[27m \\u001b[27m \\u001b[27mi\\u001b[27mm\\u001b[27ma\\u001b[27mg\\u001b[27me\\u001b[27m:\\u001b[27m \\u001b[27mp\\u001b[27mh\\u001b[27mi\\u001b[1B\\r\\u001b[27m \\u001b[27m \\u001b[27mp\\u001b[27me\\u001b[27mr\\u001b[27ms\\u001b[27mi\\u001b[27ms\\u001b[27mt\\u001b[27me\\u001b[27mn\\u001b[27mt\\u001b[27mV\\u001b[27mo\\u001b[27ml\\u001b[27mu\\u001b[27mm\\u001b[27me\\u001b[27m:\\u001b[1B\\r\\u001b[27m \\u001b[27m \\u001b[27m \\u001b[27m \\u001b[27ma\\u001b[27mc\\u001b[27mc\\u001b[27me\\u001b[27ms\\u001b[27ms\\u001b[27mM\\u001b[27mo\\u001b[27md\\u001b[27me\\u001b[27m:\\u001b[27m \\u001b[27mR\\u001b[27me\\u001b[27ma\\u001b[27md\\u001b[27mW\\u001b[27mr\\u001b[27mi\\u001b[27mt\\u001b[27me\\u001b[27mO\\u001b[27mn\\u001b[27mc\\u001b[27me\\u001b[1B\\r\\u001b[27mE\\u001b[27mO\\u001b[\"]\n[9.628768, \"o\", \"27mF\"]\n[9.628991, \"o\", \"\\u001b[?1l\\u001b>\\u001b[?2004l\\r\\r\\n\"]\n[9.675961, \"o\", \"\\u001b[1m\\u001b[7m%\\u001b[27m\\u001b[1m\\u001b[0m                                                                                                                                                                                        \\r \\r\"]\n[9.734779, \"o\", \"\\r\\u001b[0m\\u001b[27m\\u001b[24m\\u001b[J\\r\\n\\u001b[1;36m☸ \\u001b[0m\\u001b[1;36mkind-kind\\u001b[0m in \\u001b[1;36mollama-operator\\u001b[0m on \\u001b[1;35m \\u001b[0m\\u001b[1;35mmain\\u001b[0m \\u001b[1;31m[\\u001b[0m\\u001b[1;31m✘\\u001b[0m\\u001b[1;31m!\\u001b[0m\\u001b[1;31m?\\u001b[0m\\u001b[1;31m]\\u001b[0m via \\u001b[1;34m🐳 \\u001b[0m\\u001b[1;34morbstack\\u001b[0m via \\u001b[1;36m🐹 \\u001b[0m\\u001b[1;36mv1.22.2\\u001b[0m\\u001b[1;36m \\u001b[0m\\r\\n\\u001b[1;32m❯\\u001b[0m \\u001b[K\"]\n[9.734806, \"o\", \"\\u001b[?1h\\u001b=\"]\n[9.734889, \"o\", \"\\u001b[?2004h\"]\n[13.252989, \"o\", \"k\"]\n[13.253605, \"o\", \"\\bku\"]\n[13.253699, \"o\", \"be\"]\n[13.253711, \"o\", \"c\"]\n[13.25384, \"o\", \"t\"]\n[13.253987, \"o\", \"l\"]\n[13.25415, \"o\", \" a\"]\n[13.254296, \"o\", \"p\"]\n[13.254495, \"o\", \"p\"]\n[13.25465, \"o\", \"l\"]\n[13.254809, \"o\", \"y\"]\n[13.255034, \"o\", \" -\"]\n[13.255222, \"o\", \"f\"]\n[13.25535, \"o\", \" o\"]\n[13.255486, \"o\", \"l\"]\n[13.255626, \"o\", \"l\"]\n[13.255777, \"o\", \"a\"]\n[13.255916, \"o\", \"m\"]\n[13.256065, \"o\", \"a\"]\n[13.256335, \"o\", \"-\"]\n[13.256546, \"o\", \"m\"]\n[13.256697, \"o\", \"o\"]\n[13.256845, \"o\", \"d\"]\n[13.256979, \"o\", \"e\"]\n[13.257116, \"o\", \"l\"]\n[13.257257, \"o\", \"-\"]\n[13.257389, \"o\", \"p\"]\n[13.257516, \"o\", \"h\"]\n[13.257646, \"o\", \"i\"]\n[13.257771, \"o\", \".\"]\n[13.257892, \"o\", \"y\"]\n[13.258043, \"o\", \"a\"]\n[13.258172, \"o\", \"m\"]\n[13.259236, \"o\", \"l\"]\n[13.25941, \"o\", \"\\u001b[38D\\u001b[7mk\\u001b[7mu\\u001b[7mb\\u001b[7me\\u001b[7mc\\u001b[7mt\\u001b[7ml\\u001b[7m \\u001b[7ma\\u001b[7mp\\u001b[7mp\\u001b[7ml\\u001b[7my\\u001b[7m \\u001b[7m-\\u001b[7mf\\u001b[7m \\u001b[7mo\\u001b[7ml\\u001b[7ml\\u001b[7ma\\u001b[7mm\\u001b[7ma\\u001b[7m-\\u001b[7mm\\u001b[7mo\\u001b[7md\\u001b[7me\\u001b[7ml\\u001b[7m-\\u001b[7mp\\u001b[7mh\\u001b[7mi\\u001b[7m.\\u001b[7my\\u001b[7ma\\u001b[7mm\\u001b[7ml\\u001b[27m\"]\n[13.459971, \"o\", \"\\u001b[38D\\u001b[27mk\\u001b[27mu\\u001b[27mb\\u001b[27me\\u001b[27mc\\u001b[27mt\\u001b[27ml\\u001b[27m \\u001b[27ma\\u001b[27mp\\u001b[27mp\\u001b[27ml\\u001b[27my\\u001b[27m \\u001b[27m-\\u001b[27mf\\u001b[27m \\u001b[27mo\\u001b[27ml\\u001b[27ml\\u001b[27ma\\u001b[27mm\\u001b[27ma\\u001b[27m-\\u001b[27mm\\u001b[27mo\\u001b[27md\\u001b[27me\\u001b[27ml\\u001b[27m-\\u001b[27mp\\u001b[27mh\\u001b[27mi\\u001b[27m.\\u001b[27my\\u001b[27ma\\u001b[27mm\\u001b[27ml\"]\n[13.460258, \"o\", \"\\u001b[?1l\\u001b>\"]\n[13.460271, \"o\", \"\\u001b[?2004l\\r\\r\\n\"]\n[13.721676, \"o\", \"model.ollama.ayaka.io/phi created\\r\\n\"]\n[13.723242, \"o\", \"\\u001b[1m\\u001b[7m%\\u001b[27m\\u001b[1m\\u001b[0m                                                                                                                                                                                        \\r \\r\"]\n[13.777759, \"o\", \"\\r\\u001b[0m\\u001b[27m\\u001b[24m\\u001b[J\\r\\n\\u001b[1;36m☸ \\u001b[0m\\u001b[1;36mkind-kind\\u001b[0m in \\u001b[1;36mollama-operator\\u001b[0m on \\u001b[1;35m \\u001b[0m\\u001b[1;35mmain\\u001b[0m \\u001b[1;31m[\\u001b[0m\\u001b[1;31m✘\\u001b[0m\\u001b[1;31m!\\u001b[0m\\u001b[1;31m?\\u001b[0m\\u001b[1;31m]\\u001b[0m via \\u001b[1;34m🐳 \\u001b[0m\\u001b[1;34morbstack\\u001b[0m via \\u001b[1;36m🐹 \\u001b[0m\\u001b[1;36mv1.22.2\\u001b[0m\\u001b[1;36m \\u001b[0m\\r\\n\\u001b[1;32m❯\\u001b[0m \\u001b[K\"]\n[13.777879, \"o\", \"\\u001b[?1h\\u001b=\"]\n[13.777922, \"o\", \"\\u001b[?2004h\"]\n[17.976811, \"o\", \"k\"]\n[17.977554, \"o\", \"\\bkubec\"]\n[17.977671, \"o\", \"t\"]\n[17.977813, \"o\", \"l\"]\n[17.978078, \"o\", \" w\"]\n[17.978214, \"o\", \"a\"]\n[17.978366, \"o\", \"i\"]\n[17.978498, \"o\", \"t\"]\n[17.97865, \"o\", \" -\"]\n[17.978842, \"o\", \"-\"]\n[17.978978, \"o\", \"f\"]\n[17.979243, \"o\", \"o\"]\n[17.979476, \"o\", \"r\"]\n[17.979914, \"o\", \"=\"]\n[17.980094, \"o\", \"j\"]\n[17.980219, \"o\", \"s\"]\n[17.980347, \"o\", \"o\"]\n[17.980484, \"o\", \"n\"]\n[17.980619, \"o\", \"p\"]\n[17.980754, \"o\", \"a\"]\n[17.980889, \"o\", \"t\"]\n[17.981024, \"o\", \"h\"]\n[17.981297, \"o\", \"=\"]\n[17.981562, \"o\", \"'\"]\n[17.98171, \"o\", \"{\"]\n[17.981841, \"o\", \".\"]\n[17.981978, \"o\", \"s\"]\n[17.982166, \"o\", \"t\"]\n[17.98232, \"o\", \"a\"]\n[17.982453, \"o\", \"t\"]\n[17.982593, \"o\", \"u\"]\n[17.982735, \"o\", \"s\"]\n[17.982874, \"o\", \".\"]\n[17.983014, \"o\", \"r\"]\n[17.983154, \"o\", \"e\"]\n[17.983297, \"o\", \"a\"]\n[17.983433, \"o\", \"d\"]\n[17.983568, \"o\", \"y\"]\n[17.983707, \"o\", \"R\"]\n[17.983851, \"o\", \"e\"]\n[17.984001, \"o\", \"p\"]\n[17.984137, \"o\", \"l\"]\n[17.984271, \"o\", \"i\"]\n[17.984412, \"o\", \"c\"]\n[17.984549, \"o\", \"a\"]\n[17.984685, \"o\", \"s\"]\n[17.98483, \"o\", \"}\"]\n[17.984981, \"o\", \"'\"]\n[17.985278, \"o\", \"=\"]\n[17.985416, \"o\", \"1\"]\n[17.985566, \"o\", \" s\"]\n[17.985703, \"o\", \"t\"]\n[17.985837, \"o\", \"a\"]\n[17.985971, \"o\", \"t\"]\n[17.986106, \"o\", \"e\"]\n[17.986242, \"o\", \"f\"]\n[17.98638, \"o\", \"u\"]\n[17.98652, \"o\", \"l\"]\n[17.986658, \"o\", \"s\"]\n[17.986796, \"o\", \"e\"]\n[17.986928, \"o\", \"t\"]\n[17.987063, \"o\", \"/\"]\n[17.9872, \"o\", \"o\"]\n[17.98734, \"o\", \"l\"]\n[17.987478, \"o\", \"l\"]\n[17.987614, \"o\", \"a\"]\n[17.987751, \"o\", \"m\"]\n[17.98789, \"o\", \"a\"]\n[17.988025, \"o\", \"-\"]\n[17.988159, \"o\", \"m\"]\n[17.988298, \"o\", \"o\"]\n[17.988441, \"o\", \"d\"]\n[17.988584, \"o\", \"e\"]\n[17.988728, \"o\", \"l\"]\n[17.988872, \"o\", \"s\"]\n[17.989182, \"o\", \"-\"]\n[17.989354, \"o\", \"s\"]\n[17.98953, \"o\", \"t\"]\n[17.989708, \"o\", \"o\"]\n[17.98993, \"o\", \"r\"]\n[17.994968, \"o\", \"e\"]\n[17.995788, \"o\", \"\\u001b[87D\\u001b[7mk\\u001b[7mu\\u001b[7mb\\u001b[7me\\u001b[7mc\\u001b[7mt\\u001b[7ml\\u001b[7m \\u001b[7mw\\u001b[7ma\\u001b[7mi\\u001b[7mt\\u001b[7m \\u001b[7m-\\u001b[7m-\\u001b[7mf\\u001b[7mo\\u001b[7mr\\u001b[7m=\\u001b[7mj\\u001b[7ms\\u001b[7mo\\u001b[7mn\\u001b[7mp\\u001b[7ma\\u001b[7mt\\u001b[7mh\\u001b[7m=\\u001b[7m'\\u001b[7m{\\u001b[7m.\\u001b[7ms\\u001b[7mt\\u001b[7ma\\u001b[7mt\\u001b[7mu\\u001b[7ms\\u001b[7m.\\u001b[7mr\\u001b[7me\\u001b[7ma\\u001b[7md\\u001b[7my\\u001b[7mR\\u001b[7me\\u001b[7mp\\u001b[7ml\\u001b[7mi\\u001b[7mc\\u001b[7ma\\u001b[7ms\\u001b[7m}\\u001b[7m'\\u001b[7m=\\u001b[7m1\\u001b[7m \\u001b[7ms\\u001b[7mt\\u001b[7ma\\u001b[7mt\\u001b[7me\\u001b[7mf\\u001b[7mu\\u001b[7ml\\u001b[7ms\\u001b[7me\\u001b[7mt\\u001b[7m/\\u001b[7mo\\u001b[7ml\\u001b[7ml\\u001b[7ma\\u001b[7mm\\u001b[7ma\\u001b[7m-\\u001b[7mm\\u001b[7mo\\u001b[7md\\u001b[7me\\u001b[7ml\\u001b[7ms\\u001b[7m-\\u001b[7ms\\u001b[7mt\\u001b[7mo\\u001b[7mr\\u001b[7me\\u001b[27m\"]\n[18.328819, \"o\", \"\\u001b[87D\\u001b[27mk\\u001b[27mu\\u001b[27mb\\u001b[27me\\u001b[27mc\\u001b[27mt\\u001b[27ml\\u001b[27m \\u001b[27mw\\u001b[27ma\\u001b[27mi\\u001b[27mt\\u001b[27m \\u001b[27m-\\u001b[27m-\\u001b[27mf\\u001b[27mo\\u001b[27mr\\u001b[27m=\\u001b[27mj\\u001b[27ms\\u001b[27mo\\u001b[27mn\\u001b[27mp\\u001b[27ma\\u001b[27mt\\u001b[27mh\\u001b[27m=\\u001b[27m'\\u001b[27m{\\u001b[27m.\\u001b[27ms\\u001b[27mt\\u001b[27ma\\u001b[27mt\\u001b[27mu\\u001b[27ms\\u001b[27m.\\u001b[27mr\\u001b[27me\\u001b[27ma\\u001b[27md\\u001b[27my\\u001b[27mR\\u001b[27me\\u001b[27mp\\u001b[27ml\\u001b[27mi\\u001b[27mc\\u001b[27ma\\u001b[27ms\\u001b[27m}\\u001b[27m'\\u001b[27m=\\u001b[27m1\\u001b[27m \\u001b[27ms\\u001b[27mt\\u001b[27ma\\u001b[27mt\\u001b[27me\\u001b[27mf\\u001b[27mu\\u001b[27ml\\u001b[27ms\\u001b[27me\\u001b[27mt\\u001b[27m/\\u001b[27mo\\u001b[27ml\\u001b[27ml\\u001b[27ma\\u001b[27mm\\u001b[27ma\\u001b[27m-\\u001b[27mm\\u001b[27mo\\u001b[27md\\u001b[27me\\u001b[27ml\\u001b[27ms\\u001b[27m-\\u001b[27ms\\u001b[27mt\\u001b[27mo\\u001b[27mr\\u001b[27me\"]\n[18.32922, \"o\", \"\\u001b[?1l\\u001b>\"]\n[18.329266, \"o\", \"\\u001b[?2004l\\r\\r\\n\"]\n[34.176086, \"o\", \"statefulset.apps/ollama-models-store condition met\\r\\n\"]\n[34.177561, \"o\", \"\\u001b[1m\\u001b[7m%\\u001b[27m\\u001b[1m\\u001b[0m                                                                                                                                                                                        \\r \\r\"]\n[34.302, \"o\", \"\\r\\u001b[0m\\u001b[27m\\u001b[24m\\u001b[J\\r\\n\\u001b[1;36m☸ \\u001b[0m\\u001b[1;36mkind-kind\\u001b[0m in \\u001b[1;36mollama-operator\\u001b[0m on \\u001b[1;35m \\u001b[0m\\u001b[1;35mmain\\u001b[0m \\u001b[1;31m[\\u001b[0m\\u001b[1;31m✘\\u001b[0m\\u001b[1;31m!\\u001b[0m\\u001b[1;31m?\\u001b[0m\\u001b[1;31m]\\u001b[0m via \\u001b[1;34m🐳 \\u001b[0m\\u001b[1;34morbstack\\u001b[0m via \\u001b[1;36m🐹 \\u001b[0m\\u001b[1;36mv1.22.2\\u001b[0m\\u001b[1;36m \\u001b[0mtook \\u001b[1;33m15s\\u001b[0m \\r\\n\\u001b[1;32m❯\\u001b[0m \\u001b[K\"]\n[34.302038, \"o\", \"\\u001b[?1h\\u001b=\"]\n[34.302157, \"o\", \"\\u001b[?2004h\"]\n[39.037016, \"o\", \"k\"]\n[39.039226, \"o\", \"\\bkub\"]\n[39.039452, \"o\", \"e\"]\n[39.039827, \"o\", \"c\"]\n[39.0401, \"o\", \"t\"]\n[39.040388, \"o\", \"l\"]\n[39.040591, \"o\", \" g\"]\n[39.041089, \"o\", \"e\"]\n[39.04155, \"o\", \"t\"]\n[39.042056, \"o\", \" p\"]\n[39.042318, \"o\", \"o\"]\n[39.04255, \"o\", \"d\"]\n[39.044886, \"o\", \"s\"]\n[39.045807, \"o\", \"\\u001b[16D\\u001b[7mk\\u001b[7mu\\u001b[7mb\\u001b[7me\\u001b[7mc\\u001b[7mt\\u001b[7ml\\u001b[7m \\u001b[7mg\\u001b[7me\\u001b[7mt\\u001b[7m \\u001b[7mp\\u001b[7mo\\u001b[7md\\u001b[7ms\\u001b[27m\"]\n[39.203073, \"o\", \"\\u001b[16D\\u001b[27mk\\u001b[27mu\\u001b[27mb\\u001b[27me\\u001b[27mc\\u001b[27mt\\u001b[27ml\\u001b[27m \\u001b[27mg\\u001b[27me\\u001b[27mt\\u001b[27m \\u001b[27mp\\u001b[27mo\\u001b[27md\\u001b[27ms\"]\n[39.203389, \"o\", \"\\u001b[?1l\\u001b>\"]\n[39.203467, \"o\", \"\\u001b[?2004l\\r\\r\\n\"]\n[39.330824, \"o\", \"NAME                                READY   STATUS     RESTARTS   AGE\\r\\nollama-model-phi-6c7698f56f-4cp6d   0/1     Init:0/1   0          5s\\r\\nollama-models-store-0               1/1     Running    0          26s\\r\\n\"]\n[39.331847, \"o\", \"\\u001b[1m\\u001b[7m%\\u001b[27m\\u001b[1m\\u001b[0m                                                                                                                                                                                        \\r \\r\"]\n[39.438641, \"o\", \"\\r\\u001b[0m\\u001b[27m\\u001b[24m\\u001b[J\\r\\n\\u001b[1;36m☸ \\u001b[0m\\u001b[1;36mkind-kind\\u001b[0m in \\u001b[1;36mollama-operator\\u001b[0m on \\u001b[1;35m \\u001b[0m\\u001b[1;35mmain\\u001b[0m \\u001b[1;31m[\\u001b[0m\\u001b[1;31m✘\\u001b[0m\\u001b[1;31m!\\u001b[0m\\u001b[1;31m?\\u001b[0m\\u001b[1;31m]\\u001b[0m via \\u001b[1;34m🐳 \\u001b[0m\\u001b[1;34morbstack\\u001b[0m via \\u001b[1;36m🐹 \\u001b[0m\\u001b[1;36mv1.22.2\\u001b[0m\\u001b[1;36m \\u001b[0m\\r\\n\\u001b[1;32m❯\\u001b[0m \\u001b[K\"]\n[39.438758, \"o\", \"\\u001b[?1h\\u001b=\"]\n[39.438868, \"o\", \"\\u001b[?2004h\"]\n[43.506166, \"o\", \"k\"]\n[43.507031, \"o\", \"\\bku\"]\n[43.507083, \"o\", \"bec\"]\n[43.507219, \"o\", \"t\"]\n[43.507342, \"o\", \"l\"]\n[43.507481, \"o\", \" w\"]\n[43.507633, \"o\", \"a\"]\n[43.507817, \"o\", \"i\"]\n[43.507935, \"o\", \"t\"]\n[43.508063, \"o\", \" -\"]\n[43.50821, \"o\", \"-\"]\n[43.508368, \"o\", \"f\"]\n[43.508713, \"o\", \"o\"]\n[43.509066, \"o\", \"r\"]\n[43.50943, \"o\", \"=\"]\n[43.509675, \"o\", \"j\"]\n[43.509899, \"o\", \"s\"]\n[43.51008, \"o\", \"o\"]\n[43.51018, \"o\", \"n\"]\n[43.510463, \"o\", \"p\"]\n[43.510801, \"o\", \"a\"]\n[43.511066, \"o\", \"t\"]\n[43.511326, \"o\", \"h\"]\n[43.511684, \"o\", \"=\"]\n[43.511973, \"o\", \"'\"]\n[43.512134, \"o\", \"{\"]\n[43.512292, \"o\", \".\"]\n[43.512436, \"o\", \"s\"]\n[43.512583, \"o\", \"t\"]\n[43.512729, \"o\", \"a\"]\n[43.512876, \"o\", \"t\"]\n[43.513018, \"o\", \"u\"]\n[43.513165, \"o\", \"s\"]\n[43.513314, \"o\", \".\"]\n[43.513454, \"o\", \"r\"]\n[43.513594, \"o\", \"e\"]\n[43.513738, \"o\", \"a\"]\n[43.513881, \"o\", \"d\"]\n[43.514028, \"o\", \"y\"]\n[43.514174, \"o\", \"R\"]\n[43.514592, \"o\", \"e\"]\n[43.514939, \"o\", \"p\"]\n[43.515107, \"o\", \"l\"]\n[43.515262, \"o\", \"i\"]\n[43.515451, \"o\", \"c\"]\n[43.515617, \"o\", \"a\"]\n[43.515779, \"o\", \"s\"]\n[43.516068, \"o\", \"}\"]\n[43.516126, \"o\", \"'\"]\n[43.516398, \"o\", \"=\"]\n[43.516542, \"o\", \"1\"]\n[43.516871, \"o\", \" d\"]\n[43.51704, \"o\", \"e\"]\n[43.517223, \"o\", \"p\"]\n[43.517385, \"o\", \"l\"]\n[43.517562, \"o\", \"o\"]\n[43.517725, \"o\", \"y\"]\n[43.517866, \"o\", \"m\"]\n[43.518015, \"o\", \"e\"]\n[43.518166, \"o\", \"n\"]\n[43.518323, \"o\", \"t\"]\n[43.518567, \"o\", \"/\"]\n[43.518744, \"o\", \"o\"]\n[43.518894, \"o\", \"l\"]\n[43.519045, \"o\", \"l\"]\n[43.519196, \"o\", \"a\"]\n[43.519347, \"o\", \"m\"]\n[43.519528, \"o\", \"a\"]\n[43.519743, \"o\", \"-\"]\n[43.519904, \"o\", \"m\"]\n[43.520068, \"o\", \"o\"]\n[43.520214, \"o\", \"d\"]\n[43.520362, \"o\", \"e\"]\n[43.520517, \"o\", \"l\"]\n[43.520663, \"o\", \"-\"]\n[43.520813, \"o\", \"p\"]\n[43.520963, \"o\", \"h\"]\n[43.522172, \"o\", \"i\"]\n[43.522616, \"o\", \"\\u001b[83D\\u001b[7mk\\u001b[7mu\\u001b[7mb\\u001b[7me\\u001b[7mc\\u001b[7mt\\u001b[7ml\\u001b[7m \\u001b[7mw\\u001b[7ma\\u001b[7mi\\u001b[7mt\\u001b[7m \\u001b[7m-\\u001b[7m-\\u001b[7mf\\u001b[7mo\\u001b[7mr\\u001b[7m=\\u001b[7mj\\u001b[7ms\\u001b[7mo\\u001b[7mn\\u001b[7mp\\u001b[7ma\\u001b[7mt\\u001b[7mh\\u001b[7m=\\u001b[7m'\\u001b[7m{\\u001b[7m.\\u001b[7ms\\u001b[7mt\\u001b[7ma\\u001b[7mt\\u001b[7mu\\u001b[7ms\\u001b[7m.\\u001b[7mr\\u001b[7me\\u001b[7ma\\u001b[7md\\u001b[7my\\u001b[7mR\\u001b[7me\\u001b[7mp\\u001b[7ml\\u001b[7mi\\u001b[7mc\\u001b[7ma\\u001b[7ms\\u001b[7m}\\u001b[7m'\\u001b[7m=\\u001b[7m1\\u001b[7m \\u001b[7md\\u001b[7me\\u001b[7mp\\u001b[7ml\\u001b[7mo\\u001b[7my\\u001b[7mm\\u001b[7me\\u001b[7mn\\u001b[7mt\\u001b[7m/\\u001b[7mo\\u001b[7ml\\u001b[7ml\\u001b[7ma\\u001b[7mm\\u001b[7ma\\u001b[7m-\\u001b[7mm\\u001b[7mo\\u001b[7md\\u001b[7me\\u001b[7ml\\u001b[7m-\\u001b[7mp\\u001b[7mh\\u001b[7mi\\u001b[27m\"]\n[44.039028, \"o\", \"\\u001b[83D\\u001b[27mk\\u001b[27mu\\u001b[27mb\\u001b[27me\\u001b[27mc\\u001b[27mt\\u001b[27ml\\u001b[27m \\u001b[27mw\\u001b[27ma\\u001b[27mi\\u001b[27mt\\u001b[27m \\u001b[27m-\\u001b[27m-\\u001b[27mf\\u001b[27mo\\u001b[27mr\\u001b[27m=\\u001b[27mj\\u001b[27ms\\u001b[27mo\\u001b[27mn\\u001b[27mp\\u001b[27ma\\u001b[27mt\\u001b[27mh\\u001b[27m=\\u001b[27m'\\u001b[27m{\\u001b[27m.\\u001b[27ms\\u001b[27mt\\u001b[27ma\\u001b[27mt\\u001b[27mu\\u001b[27ms\\u001b[27m.\\u001b[27mr\\u001b[27me\\u001b[27ma\\u001b[27md\\u001b[27my\\u001b[27mR\\u001b[27me\\u001b[27mp\\u001b[27ml\\u001b[27mi\\u001b[27mc\\u001b[27ma\\u001b[27ms\\u001b[27m}\\u001b[27m'\\u001b[27m=\\u001b[27m1\\u001b[27m \\u001b[27md\\u001b[27me\\u001b[27mp\\u001b[27ml\\u001b[27mo\\u001b[27my\\u001b[27mm\\u001b[27me\\u001b[27mn\\u001b[27mt\\u001b[27m/\\u001b[27mo\\u001b[27ml\\u001b[27ml\\u001b[27ma\\u001b[27mm\\u001b[27ma\\u001b[27m-\\u001b[27mm\\u001b[27mo\\u001b[27md\\u001b[27me\\u001b[27ml\\u001b[27m-\\u001b[27mp\\u001b[27mh\\u001b[27mi\"]\n[44.039395, \"o\", \"\\u001b[?1l\\u001b>\"]\n[44.039434, \"o\", \"\\u001b[?2004l\\r\\r\\n\"]\n[65.361059, \"o\", \"deployment.apps/ollama-model-phi condition met\\r\\n\"]\n[65.367619, \"o\", \"\\u001b[1m\\u001b[7m%\\u001b[27m\\u001b[1m\\u001b[0m                                                                                                                                                                                        \\r \\r\"]\n[65.489414, \"o\", \"\\r\\u001b[0m\\u001b[27m\\u001b[24m\\u001b[J\\r\\n\\u001b[1;36m☸ \\u001b[0m\\u001b[1;36mkind-kind\\u001b[0m in \\u001b[1;36mollama-operator\\u001b[0m on \\u001b[1;35m \\u001b[0m\\u001b[1;35mmain\\u001b[0m \\u001b[1;31m[\\u001b[0m\\u001b[1;31m✘\\u001b[0m\\u001b[1;31m!\\u001b[0m\\u001b[1;31m?\\u001b[0m\\u001b[1;31m]\\u001b[0m via \\u001b[1;34m🐳 \\u001b[0m\\u001b[1;34morbstack\\u001b[0m via \\u001b[1;36m🐹 \\u001b[0m\\u001b[1;36mv1.22.2\\u001b[0m\\u001b[1;36m \\u001b[0mtook \\u001b[1;33m21s\\u001b[0m \\r\\n\\u001b[1;32m❯\\u001b[0m \\u001b[K\"]\n[65.489981, \"o\", \"\\u001b[?1h\\u001b=\\u001b[?2004h\"]\n[66.613572, \"o\", \"k\"]\n[66.613738, \"o\", \"\\bku\"]\n[66.613914, \"o\", \"b\"]\n[66.614035, \"o\", \"e\"]\n[66.614177, \"o\", \"c\"]\n[66.614394, \"o\", \"t\"]\n[66.614795, \"o\", \"l\"]\n[66.614804, \"o\", \" g\"]\n[66.614873, \"o\", \"e\"]\n[66.615105, \"o\", \"t\"]\n[66.615278, \"o\", \" p\"]\n[66.615418, \"o\", \"o\"]\n[66.615561, \"o\", \"d\"]\n[66.616657, \"o\", \"s\"]\n[66.616816, \"o\", \"\\u001b[16D\\u001b[7mk\\u001b[7mu\\u001b[7mb\\u001b[7me\\u001b[7mc\\u001b[7mt\\u001b[7ml\\u001b[7m \\u001b[7mg\\u001b[7me\\u001b[7mt\\u001b[7m \\u001b[7mp\\u001b[7mo\\u001b[7md\\u001b[7ms\\u001b[27m\"]\n[66.856799, \"o\", \"\\u001b[16D\\u001b[27mk\\u001b[27mu\\u001b[27mb\\u001b[27me\\u001b[27mc\\u001b[27mt\\u001b[27ml\\u001b[27m \\u001b[27mg\\u001b[27me\\u001b[27mt\\u001b[27m \\u001b[27mp\\u001b[27mo\\u001b[27md\\u001b[27ms\"]\n[66.857146, \"o\", \"\\u001b[?1l\\u001b>\\u001b[?2004l\\r\\r\\n\"]\n[66.988375, \"o\", \"NAME                                READY   STATUS    RESTARTS   AGE\\r\\nollama-model-phi-6c7698f56f-4cp6d   1/1     Running   0          33s\\r\\nollama-models-store-0               1/1     Running   0          54s\\r\\n\"]\n[66.989678, \"o\", \"\\u001b[1m\\u001b[7m%\\u001b[27m\\u001b[1m\\u001b[0m                                                                                                                                                                                        \\r \\r\"]\n[67.055652, \"o\", \"\\r\\u001b[0m\\u001b[27m\\u001b[24m\\u001b[J\\r\\n\\u001b[1;36m☸ \\u001b[0m\\u001b[1;36mkind-kind\\u001b[0m in \\u001b[1;36mollama-operator\\u001b[0m on \\u001b[1;35m \\u001b[0m\\u001b[1;35mmain\\u001b[0m \\u001b[1;31m[\\u001b[0m\\u001b[1;31m✘\\u001b[0m\\u001b[1;31m!\\u001b[0m\\u001b[1;31m?\\u001b[0m\\u001b[1;31m]\\u001b[0m via \\u001b[1;34m🐳 \\u001b[0m\\u001b[1;34morbstack\\u001b[0m via \\u001b[1;36m🐹 \\u001b[0m\\u001b[1;36mv1.22.2\\u001b[0m\\u001b[1;36m \\u001b[0m\\r\\n\\u001b[1;32m❯\\u001b[0m \\u001b[K\"]\n[67.055762, \"o\", \"\\u001b[?1h\\u001b=\\u001b[?2004h\"]\n[70.364112, \"o\", \"k\"]\n[70.365636, \"o\", \"\\bkub\"]\n[70.365929, \"o\", \"ectl\"]\n[70.366198, \"o\", \" e\"]\n[70.366307, \"o\", \"x\"]\n[70.36668, \"o\", \"p\"]\n[70.36702, \"o\", \"o\"]\n[70.367313, \"o\", \"s\"]\n[70.367535, \"o\", \"e\"]\n[70.367857, \"o\", \" d\"]\n[70.367957, \"o\", \"e\"]\n[70.368765, \"o\", \"p\"]\n[70.369113, \"o\", \"l\"]\n[70.369414, \"o\", \"o\"]\n[70.369752, \"o\", \"y\"]\n[70.369988, \"o\", \"m\"]\n[70.370195, \"o\", \"e\"]\n[70.370455, \"o\", \"n\"]\n[70.370668, \"o\", \"t\"]\n[70.370882, \"o\", \" o\"]\n[70.371058, \"o\", \"l\"]\n[70.371237, \"o\", \"l\"]\n[70.371409, \"o\", \"a\"]\n[70.371586, \"o\", \"m\"]\n[70.371872, \"o\", \"a\"]\n[70.372102, \"o\", \"-\"]\n[70.372282, \"o\", \"m\"]\n[70.37249, \"o\", \"o\"]\n[70.37276, \"o\", \"d\"]\n[70.372968, \"o\", \"e\"]\n[70.373188, \"o\", \"l\"]\n[70.37336, \"o\", \"-\"]\n[70.373519, \"o\", \"p\"]\n[70.373725, \"o\", \"h\"]\n[70.373984, \"o\", \"i\"]\n[70.374253, \"o\", \" -\"]\n[70.374549, \"o\", \"-\"]\n[70.374756, \"o\", \"n\"]\n[70.375024, \"o\", \"a\"]\n[70.375223, \"o\", \"m\"]\n[70.375515, \"o\", \"e\"]\n[70.376112, \"o\", \"=\"]\n[70.376339, \"o\", \"o\"]\n[70.376627, \"o\", \"l\"]\n[70.376906, \"o\", \"l\"]\n[70.377212, \"o\", \"a\"]\n[70.377476, \"o\", \"m\"]\n[70.377687, \"o\", \"a\"]\n[70.378377, \"o\", \"-\"]\n[70.378631, \"o\", \"m\"]\n[70.37904, \"o\", \"o\"]\n[70.379277, \"o\", \"d\"]\n[70.37951, \"o\", \"e\"]\n[70.379726, \"o\", \"l\"]\n[70.379978, \"o\", \"-\"]\n[70.380172, \"o\", \"p\"]\n[70.380454, \"o\", \"h\"]\n[70.380776, \"o\", \"i\"]\n[70.38099, \"o\", \"-\"]\n[70.381303, \"o\", \"n\"]\n[70.381529, \"o\", \"o\"]\n[70.381739, \"o\", \"d\"]\n[70.382291, \"o\", \"e\"]\n[70.38258, \"o\", \"p\"]\n[70.38282, \"o\", \"o\"]\n[70.383243, \"o\", \"r\"]\n[70.383592, \"o\", \"t\"]\n[70.383916, \"o\", \" -\"]\n[70.38424, \"o\", \"-\"]\n[70.384546, \"o\", \"t\"]\n[70.384733, \"o\", \"y\"]\n[70.384889, \"o\", \"p\"]\n[70.385028, \"o\", \"e\"]\n[70.385346, \"o\", \"=\"]\n[70.385478, \"o\", \"N\"]\n[70.385627, \"o\", \"o\"]\n[70.385775, \"o\", \"d\"]\n[70.385904, \"o\", \"e\"]\n[70.386039, \"o\", \"P\"]\n[70.386175, \"o\", \"o\"]\n[70.38632, \"o\", \"r\"]\n[70.386462, \"o\", \"t\"]\n[70.386611, \"o\", \" -\"]\n[70.386742, \"o\", \"-\"]\n[70.386874, \"o\", \"p\"]\n[70.387005, \"o\", \"o\"]\n[70.387136, \"o\", \"r\"]\n[70.387269, \"o\", \"t\"]\n[70.387406, \"o\", \" 1\"]\n[70.38754, \"o\", \"1\"]\n[70.387669, \"o\", \"4\"]\n[70.387801, \"o\", \"3\"]\n[70.388836, \"o\", \"4\"]\n[70.389021, \"o\", \"\\u001b[104D\\u001b[7mk\\u001b[7mu\\u001b[7mb\\u001b[7me\\u001b[7mc\\u001b[7mt\\u001b[7ml\\u001b[7m \\u001b[7me\\u001b[7mx\\u001b[7mp\\u001b[7mo\\u001b[7ms\\u001b[7me\\u001b[7m \\u001b[7md\\u001b[7me\\u001b[7mp\\u001b[7ml\\u001b[7mo\\u001b[7my\\u001b[7mm\\u001b[7me\\u001b[7mn\\u001b[7mt\\u001b[7m \\u001b[7mo\\u001b[7ml\\u001b[7ml\\u001b[7ma\\u001b[7mm\\u001b[7ma\\u001b[7m-\\u001b[7mm\\u001b[7mo\\u001b[7md\\u001b[7me\\u001b[7ml\\u001b[7m-\\u001b[7mp\\u001b[7mh\\u001b[7mi\\u001b[7m \\u001b[7m-\\u001b[7m-\\u001b[7mn\\u001b[7ma\\u001b[7mm\\u001b[7me\\u001b[7m=\\u001b[7mo\\u001b[7ml\\u001b[7ml\\u001b[7ma\\u001b[7mm\\u001b[7ma\\u001b[7m-\\u001b[7mm\\u001b[7mo\\u001b[7md\\u001b[7me\\u001b[7ml\\u001b[7m-\\u001b[7mp\\u001b[7mh\\u001b[7mi\\u001b[7m-\\u001b[7mn\\u001b[7mo\\u001b[7md\\u001b[7me\\u001b[7mp\\u001b[7mo\\u001b[7mr\\u001b[7mt\\u001b[7m \\u001b[7m-\\u001b[7m-\\u001b[7mt\\u001b[7my\\u001b[7mp\\u001b[7me\\u001b[7m=\\u001b[7mN\\u001b[7mo\\u001b[7md\\u001b[7me\\u001b[7mP\\u001b[7mo\\u001b[7mr\\u001b[7mt\\u001b[7m \\u001b[7m-\\u001b[7m-\\u001b[7mp\\u001b[7mo\\u001b[7mr\\u001b[7mt\\u001b[7m \\u001b[7m1\\u001b[7m1\\u001b[7m4\\u001b[7m3\\u001b[7m4\\u001b[27m\"]\n[70.546173, \"o\", \"\\u001b[104D\\u001b[27mk\\u001b[27mu\\u001b[27mb\\u001b[27me\\u001b[27mc\\u001b[27mt\\u001b[27ml\\u001b[27m \\u001b[27me\\u001b[27mx\\u001b[27mp\\u001b[27mo\\u001b[27ms\\u001b[27me\\u001b[27m \\u001b[27md\\u001b[27me\\u001b[27mp\\u001b[27ml\\u001b[27mo\\u001b[27my\\u001b[27mm\\u001b[27me\\u001b[27mn\\u001b[27mt\\u001b[27m \\u001b[27mo\\u001b[27ml\\u001b[27ml\\u001b[27ma\\u001b[27mm\\u001b[27ma\\u001b[27m-\\u001b[27mm\\u001b[27mo\\u001b[27md\\u001b[27me\\u001b[27ml\\u001b[27m-\\u001b[27mp\\u001b[27mh\\u001b[27mi\\u001b[27m \\u001b[27m-\\u001b[27m-\\u001b[27mn\\u001b[27ma\\u001b[27mm\\u001b[27me\\u001b[27m=\\u001b[27mo\\u001b[27ml\\u001b[27ml\\u001b[27ma\\u001b[27mm\\u001b[27ma\\u001b[27m-\\u001b[27mm\\u001b[27mo\\u001b[27md\\u001b[27me\\u001b[27ml\\u001b[27m-\\u001b[27mp\\u001b[27mh\\u001b[27mi\\u001b[27m-\\u001b[27mn\\u001b[27mo\\u001b[27md\\u001b[27me\\u001b[27mp\\u001b[27mo\\u001b[27mr\\u001b[27mt\\u001b[27m \\u001b[27m-\\u001b[27m-\\u001b[27mt\\u001b[27my\\u001b[27mp\\u001b[27me\\u001b[27m=\\u001b[27mN\\u001b[27mo\\u001b[27md\\u001b[27me\\u001b[27mP\\u001b[27mo\\u001b[27mr\\u001b[27mt\\u001b[27m \\u001b[27m-\\u001b[27m-\\u001b[27mp\\u001b[27mo\\u001b[27mr\\u001b[27mt\\u001b[27m \\u001b[27m1\\u001b[27m1\\u001b[27m4\\u001b[27m3\\u001b[27m4\"]\n[70.546534, \"o\", \"\\u001b[?1l\\u001b>\\u001b[?2004l\\r\\r\\n\"]\n[70.669393, \"o\", \"service/ollama-model-phi-nodeport exposed\\r\\n\"]\n[70.670415, \"o\", \"\\u001b[1m\\u001b[7m%\\u001b[27m\\u001b[1m\\u001b[0m                                                                                                                                                                                        \\r \\r\"]\n[70.753272, \"o\", \"\\r\\u001b[0m\\u001b[27m\\u001b[24m\\u001b[J\\r\\n\\u001b[1;36m☸ \\u001b[0m\\u001b[1;36mkind-kind\\u001b[0m in \\u001b[1;36mollama-operator\\u001b[0m on \\u001b[1;35m \\u001b[0m\\u001b[1;35mmain\\u001b[0m \\u001b[1;31m[\\u001b[0m\\u001b[1;31m✘\\u001b[0m\\u001b[1;31m!\\u001b[0m\\u001b[1;31m?\\u001b[0m\\u001b[1;31m]\\u001b[0m via \\u001b[1;34m🐳 \\u001b[0m\\u001b[1;34morbstack\\u001b[0m via \\u001b[1;36m🐹 \\u001b[0m\\u001b[1;36mv1.22.2\\u001b[0m\\u001b[1;36m \\u001b[0m\\r\\n\\u001b[1;32m❯\\u001b[0m \\u001b[K\"]\n[70.753364, \"o\", \"\\u001b[?1h\\u001b=\\u001b[?2004h\"]\n[73.737033, \"o\", \"k\"]\n[73.737259, \"o\", \"\\bku\"]\n[73.737632, \"o\", \"bec\"]\n[73.73788, \"o\", \"t\"]\n[73.73809, \"o\", \"l\"]\n[73.738246, \"o\", \" p\"]\n[73.738381, \"o\", \"a\"]\n[73.738544, \"o\", \"t\"]\n[73.738776, \"o\", \"c\"]\n[73.739102, \"o\", \"h\"]\n[73.741501, \"o\", \" s\"]\n[73.74198, \"o\", \"e\"]\n[73.743184, \"o\", \"r\"]\n[73.744456, \"o\", \"v\"]\n[73.746776, \"o\", \"i\"]\n[73.747327, \"o\", \"c\"]\n[73.747675, \"o\", \"e\"]\n[73.748071, \"o\", \" o\"]\n[73.749051, \"o\", \"l\"]\n[73.749271, \"o\", \"l\"]\n[73.749382, \"o\", \"a\"]\n[73.74948, \"o\", \"m\"]\n[73.749669, \"o\", \"a\"]\n[73.750196, \"o\", \"-\"]\n[73.75054, \"o\", \"m\"]\n[73.751021, \"o\", \"o\"]\n[73.75112, \"o\", \"de\"]\n[73.751318, \"o\", \"l\"]\n[73.75134, \"o\", \"-\"]\n[73.751452, \"o\", \"p\"]\n[73.751602, \"o\", \"h\"]\n[73.75172, \"o\", \"i\"]\n[73.751981, \"o\", \"-\"]\n[73.752146, \"o\", \"n\"]\n[73.752426, \"o\", \"o\"]\n[73.752564, \"o\", \"d\"]\n[73.752702, \"o\", \"e\"]\n[73.752841, \"o\", \"p\"]\n[73.753252, \"o\", \"o\"]\n[73.753722, \"o\", \"r\"]\n[73.754071, \"o\", \"t\"]\n[73.754518, \"o\", \" -\"]\n[73.755235, \"o\", \"-\"]\n[73.755627, \"o\", \"t\"]\n[73.756147, \"o\", \"y\"]\n[73.756911, \"o\", \"p\"]\n[73.757517, \"o\", \"e\"]\n[73.758949, \"o\", \"=\"]\n[73.759521, \"o\", \"'\"]\n[73.759984, \"o\", \"j\"]\n[73.760426, \"o\", \"s\"]\n[73.761131, \"o\", \"o\"]\n[73.761386, \"o\", \"n\"]\n[73.761657, \"o\", \"'\"]\n[73.762173, \"o\", \" -\"]\n[73.762401, \"o\", \"-\"]\n[73.762712, \"o\", \"p\"]\n[73.762913, \"o\", \"a\"]\n[73.763231, \"o\", \"t\"]\n[73.763494, \"o\", \"c\"]\n[73.763822, \"o\", \"h\"]\n[73.764302, \"o\", \"=\"]\n[73.764691, \"o\", \"'\"]\n[73.764975, \"o\", \"[\"]\n[73.765295, \"o\", \"{\"]\n[73.76565, \"o\", \"\\\"\"]\n[73.76597, \"o\", \"o\"]\n[73.766163, \"o\", \"p\"]\n[73.766321, \"o\", \"\\\"\"]\n[73.766489, \"o\", \":\"]\n[73.766817, \"o\", \" \\\"\"]\n[73.767166, \"o\", \"r\"]\n[73.767431, \"o\", \"e\"]\n[73.76768, \"o\", \"p\"]\n[73.767917, \"o\", \"l\"]\n[73.768082, \"o\", \"a\"]\n[73.76823, \"o\", \"c\"]\n[73.768378, \"o\", \"e\"]\n[73.76854, \"o\", \"\\\"\"]\n[73.768691, \"o\", \",\"]\n[73.768845, \"o\", \" \\\"\"]\n[73.768978, \"o\", \"p\"]\n[73.769115, \"o\", \"a\"]\n[73.769247, \"o\", \"t\"]\n[73.769381, \"o\", \"h\"]\n[73.769531, \"o\", \"\\\"\"]\n[73.769666, \"o\", \":\"]\n[73.769815, \"o\", \" \\\"\"]\n[73.769948, \"o\", \"/\"]\n[73.770083, \"o\", \"s\"]\n[73.770217, \"o\", \"p\"]\n[73.770351, \"o\", \"e\"]\n[73.770484, \"o\", \"c\"]\n[73.770619, \"o\", \"/\"]\n[73.770752, \"o\", \"p\"]\n[73.770921, \"o\", \"o\"]\n[73.771078, \"o\", \"r\"]\n[73.771252, \"o\", \"t\"]\n[73.771413, \"o\", \"s\"]\n[73.771553, \"o\", \"/\"]\n[73.771694, \"o\", \"0\"]\n[73.771836, \"o\", \"/\"]\n[73.771991, \"o\", \"n\"]\n[73.77217, \"o\", \"o\"]\n[73.772316, \"o\", \"d\"]\n[73.772499, \"o\", \"e\"]\n[73.772661, \"o\", \"P\"]\n[73.772806, \"o\", \"o\"]\n[73.772951, \"o\", \"r\"]\n[73.773094, \"o\", \"t\"]\n[73.773251, \"o\", \"\\\"\"]\n[73.773392, \"o\", \",\"]\n[73.77354, \"o\", \" \\\"\"]\n[73.773689, \"o\", \"v\"]\n[73.773837, \"o\", \"a\"]\n[73.773978, \"o\", \"l\"]\n[73.774111, \"o\", \"u\"]\n[73.774249, \"o\", \"e\"]\n[73.774393, \"o\", \"\\\"\"]\n[73.774525, \"o\", \":\"]\n[73.77465, \"o\", \"3\"]\n[73.774793, \"o\", \"0\"]\n[73.774918, \"o\", \"1\"]\n[73.775072, \"o\", \"0\"]\n[73.7752, \"o\", \"1\"]\n[73.775352, \"o\", \"}\"]\n[73.7755, \"o\", \"]\"]\n[73.776687, \"o\", \"'\"]\n[73.776911, \"o\", \"\\u001b[140D\\u001b[7mk\\u001b[7mu\\u001b[7mb\\u001b[7me\\u001b[7mc\\u001b[7mt\\u001b[7ml\\u001b[7m \\u001b[7mp\\u001b[7ma\\u001b[7mt\\u001b[7mc\\u001b[7mh\\u001b[7m \\u001b[7ms\\u001b[7me\\u001b[7mr\\u001b[7mv\\u001b[7mi\\u001b[7mc\\u001b[7me\\u001b[7m \\u001b[7mo\\u001b[7ml\\u001b[7ml\\u001b[7ma\\u001b[7mm\\u001b[7ma\\u001b[7m-\\u001b[7mm\\u001b[7mo\\u001b[7md\\u001b[7me\\u001b[7ml\\u001b[7m-\\u001b[7mp\\u001b[7mh\\u001b[7mi\\u001b[7m-\\u001b[7mn\\u001b[7mo\\u001b[7md\\u001b[7me\\u001b[7mp\\u001b[7mo\\u001b[7mr\\u001b[7mt\\u001b[7m \\u001b[7m-\\u001b[7m-\\u001b[7mt\\u001b[7my\\u001b[7mp\\u001b[7me\\u001b[7m=\\u001b[7m'\\u001b[7mj\\u001b[7ms\\u001b[7mo\\u001b[7mn\\u001b[7m'\\u001b[7m \\u001b[7m-\\u001b[7m-\\u001b[7mp\\u001b[7ma\\u001b[7mt\\u001b[7mc\\u001b[7mh\\u001b[7m=\\u001b[7m'\\u001b[7m[\\u001b[7m{\\u001b[7m\\\"\\u001b[7mo\\u001b[7mp\\u001b[7m\\\"\\u001b[7m:\\u001b[7m \\u001b[7m\\\"\\u001b[7mr\\u001b[7me\\u001b[7mp\\u001b[7ml\\u001b[7ma\\u001b[7mc\\u001b[7me\\u001b[7m\\\"\\u001b[7m,\\u001b[7m \\u001b[7m\\\"\\u001b[7mp\\u001b[7ma\\u001b[7mt\\u001b[7mh\\u001b[7m\\\"\\u001b[7m:\\u001b[7m \\u001b[7m\\\"\\u001b[7m/\\u001b[7ms\\u001b[7mp\\u001b[7me\\u001b[7mc\\u001b[7m/\\u001b[7mp\\u001b[7mo\\u001b[7mr\\u001b[7mt\\u001b[7ms\\u001b[7m/\\u001b[7m0\\u001b[7m/\\u001b[7mn\\u001b[7mo\\u001b[7md\\u001b[7me\\u001b[7mP\\u001b[7mo\\u001b[7mr\\u001b[7mt\\u001b[7m\\\"\\u001b[7m,\\u001b[7m \\u001b[7m\\\"\\u001b[7mv\\u001b[7ma\\u001b[7ml\\u001b[7mu\\u001b[7me\\u001b[7m\\\"\\u001b[7m:\\u001b[7m3\\u001b[7m0\\u001b[7m1\\u001b[7m0\\u001b[7m1\\u001b[7m}\\u001b[7m]\\u001b[7m'\\u001b[27m\"]\n[73.930106, \"o\", \"\\u001b[140D\\u001b[27mk\\u001b[27mu\\u001b[27mb\\u001b[27me\\u001b[27mc\\u001b[27mt\\u001b[27ml\\u001b[27m \\u001b[27mp\\u001b[27ma\\u001b[27mt\\u001b[27mc\\u001b[27mh\\u001b[27m \\u001b[27ms\\u001b[27me\\u001b[27mr\\u001b[27mv\\u001b[27mi\\u001b[27mc\\u001b[27me\\u001b[27m \\u001b[27mo\\u001b[27ml\\u001b[27ml\\u001b[27ma\\u001b[27mm\\u001b[27ma\\u001b[27m-\\u001b[27mm\\u001b[27mo\\u001b[27md\\u001b[27me\\u001b[27ml\\u001b[27m-\\u001b[27mp\\u001b[27mh\\u001b[27mi\\u001b[27m-\\u001b[27mn\\u001b[27mo\\u001b[27md\\u001b[27me\\u001b[27mp\\u001b[27mo\\u001b[27mr\\u001b[27mt\\u001b[27m \\u001b[27m-\\u001b[27m-\\u001b[27mt\\u001b[27my\\u001b[27mp\\u001b[27me\\u001b[27m=\\u001b[27m'\\u001b[27mj\\u001b[27ms\\u001b[27mo\\u001b[27mn\\u001b[27m'\\u001b[27m \\u001b[27m-\\u001b[27m-\\u001b[27mp\\u001b[27ma\\u001b[27mt\\u001b[27mc\\u001b[27mh\\u001b[27m=\\u001b[27m'\\u001b[27m[\\u001b[27m{\\u001b[27m\\\"\\u001b[27mo\\u001b[27mp\\u001b[27m\\\"\\u001b[27m:\\u001b[27m \\u001b[27m\\\"\\u001b[27mr\\u001b[27me\\u001b[27mp\\u001b[27ml\\u001b[27ma\\u001b[27mc\\u001b[27me\\u001b[27m\\\"\\u001b[27m,\\u001b[27m \\u001b[27m\\\"\\u001b[27mp\\u001b[27ma\\u001b[27mt\\u001b[27mh\\u001b[27m\\\"\\u001b[27m:\\u001b[27m \\u001b[27m\\\"\\u001b[27m/\\u001b[27ms\\u001b[27mp\\u001b[27me\\u001b[27mc\\u001b[27m/\\u001b[27mp\\u001b[27mo\\u001b[27mr\\u001b[27mt\\u001b[27ms\\u001b[27m/\\u001b[27m0\\u001b[27m/\\u001b[27mn\\u001b[27mo\\u001b[27md\\u001b[27me\\u001b[27mP\\u001b[27mo\\u001b[27mr\\u001b[27mt\\u001b[27m\\\"\\u001b[27m,\\u001b[27m \\u001b[27m\\\"\\u001b[27mv\\u001b[27ma\\u001b[27ml\\u001b[27mu\\u001b[27me\\u001b[27m\\\"\\u001b[27m:\\u001b[27m3\\u001b[27m0\\u001b[27m1\\u001b[27m0\\u001b[27m1\\u001b[27m}\\u001b[27m]\\u001b[27m'\"]\n[73.930423, \"o\", \"\\u001b[?1l\\u001b>\\u001b[?2004l\\r\\r\\n\"]\n[74.052535, \"o\", \"service/ollama-model-phi-nodeport patched\\r\\n\"]\n[74.055255, \"o\", \"\\u001b[1m\\u001b[7m%\\u001b[27m\\u001b[1m\\u001b[0m                                                                                                                                                                                        \\r \\r\"]\n[74.130509, \"o\", \"\\r\\u001b[0m\\u001b[27m\\u001b[24m\\u001b[J\\r\\n\\u001b[1;36m☸ \\u001b[0m\\u001b[1;36mkind-kind\\u001b[0m in \\u001b[1;36mollama-operator\\u001b[0m on \\u001b[1;35m \\u001b[0m\\u001b[1;35mmain\\u001b[0m \\u001b[1;31m[\\u001b[0m\\u001b[1;31m✘\\u001b[0m\\u001b[1;31m!\\u001b[0m\\u001b[1;31m?\\u001b[0m\\u001b[1;31m]\\u001b[0m via \\u001b[1;34m🐳 \\u001b[0m\\u001b[1;34morbstack\\u001b[0m via \\u001b[1;36m🐹 \\u001b[0m\\u001b[1;36mv1.22.2\\u001b[0m\\u001b[1;36m \\u001b[0m\\r\\n\\u001b[1;32m❯\\u001b[0m \\u001b[K\"]\n[74.130617, \"o\", \"\\u001b[?1h\\u001b=\\u001b[?2004h\"]\n[79.737282, \"o\", \"o\"]\n[79.737771, \"o\", \"\\bol\"]\n[79.737817, \"o\", \"lam\"]\n[79.737982, \"o\", \"a\"]\n[79.738139, \"o\", \" r\"]\n[79.738255, \"o\", \"u\"]\n[79.738414, \"o\", \"n\"]\n[79.73856, \"o\", \" p\"]\n[79.73873, \"o\", \"h\"]\n[79.739728, \"o\", \"i\"]\n[79.739892, \"o\", \"\\u001b[14D\\u001b[7mo\\u001b[7ml\\u001b[7ml\\u001b[7ma\\u001b[7mm\\u001b[7ma\\u001b[7m \\u001b[7mr\\u001b[7mu\\u001b[7mn\\u001b[7m \\u001b[7mp\\u001b[7mh\\u001b[7mi\\u001b[27m\"]\n[80.124557, \"o\", \"\\u001b[14D\\u001b[27mo\\u001b[27ml\\u001b[27ml\\u001b[27ma\\u001b[27mm\\u001b[27ma\\u001b[27m \\u001b[27mr\\u001b[27mu\\u001b[27mn\\u001b[27m \\u001b[27mp\\u001b[27mh\\u001b[27mi\"]\n[80.124931, \"o\", \"\\u001b[?1l\\u001b>\\u001b[?2004l\\r\\r\\n\"]\n[80.252764, \"o\", \"Error: could not connect to ollama app, is it running?\\r\\n\"]\n[80.253564, \"o\", \"\\u001b[1m\\u001b[7m%\\u001b[27m\\u001b[1m\\u001b[0m                                                                                                                                                                                        \\r \\r\"]\n[80.798615, \"o\", \"\\r\\u001b[0m\\u001b[27m\\u001b[24m\\u001b[J\\r\\n\\u001b[1;36m☸ \\u001b[0m\\u001b[1;36mkind-kind\\u001b[0m in \\u001b[1;36mollama-operator\\u001b[0m on \\u001b[1;35m \\u001b[0m\\u001b[1;35mmain\\u001b[0m \\u001b[1;31m[\\u001b[0m\\u001b[1;31m✘\\u001b[0m\\u001b[1;31m!\\u001b[0m\\u001b[1;31m?\\u001b[0m\\u001b[1;31m]\\u001b[0m via \\u001b[1;34m🐳 \\u001b[0m\\u001b[1;34morbstack\\u001b[0m via \\u001b[1;36m🐹 \\u001b[0m\\u001b[1;36mv1.22.2\\u001b[0m\\u001b[1;36m \\u001b[0m\\r\\n\\u001b[1;31m❯\\u001b[0m \\u001b[K\"]\n[80.798706, \"o\", \"\\u001b[?1h\\u001b=\\u001b[?2004h\"]\n[89.097226, \"o\", \"O\"]\n[89.172379, \"o\", \"\\bO\\u001b[90mLLAMA_HOST=localhost:30101 ollama run phi\\u001b[39m\\u001b[41D\"]\n[89.297235, \"o\", \"\\bO\\u001b[39mL\"]\n[89.909423, \"o\", \"\\u001b[39mL\\u001b[39mA\\u001b[39mM\\u001b[39mA\\u001b[39m_\\u001b[39mH\\u001b[39mO\\u001b[39mS\\u001b[39mT\\u001b[39m=\\u001b[39ml\\u001b[39mo\\u001b[39mc\\u001b[39ma\\u001b[39ml\\u001b[39mh\\u001b[39mo\\u001b[39ms\\u001b[39mt\\u001b[39m:\\u001b[39m3\\u001b[39m0\\u001b[39m1\\u001b[39m0\\u001b[39m1\\u001b[39m \\u001b[39mo\\u001b[39ml\\u001b[39ml\\u001b[39ma\\u001b[39mm\\u001b[39ma\\u001b[39m \\u001b[39mr\\u001b[39mu\\u001b[39mn\\u001b[39m \\u001b[39mp\\u001b[39mh\\u001b[39mi\"]\n[90.155716, \"o\", \"\\u001b[?1l\\u001b>\"]\n[90.155799, \"o\", \"\\u001b[?2004l\\r\\r\\n\"]\n[90.401796, \"o\", \"\\u001b[?25l⠙ \\u001b[?25h\"]\n[90.501793, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠙ \\u001b[?25h\"]\n[90.604496, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠹ \\u001b[?25h\"]\n[90.703798, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠸ \\u001b[?25h\"]\n[90.802761, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠼ \\u001b[?25h\"]\n[90.902699, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠦ \\u001b[?25h\"]\n[91.00178, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠦ \\u001b[?25h\"]\n[91.102192, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠇ \\u001b[?25h\"]\n[91.202056, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠏ \\u001b[?25h\"]\n[91.300924, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠋ \\u001b[?25h\"]\n[91.401875, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠙ \\u001b[?25h\"]\n[91.501901, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠹ \\u001b[?25h\"]\n[91.604285, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠹ \\u001b[?25h\"]\n[91.702045, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠼ \\u001b[?25h\"]\n[91.801982, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G\"]\n[91.802116, \"o\", \"⠼ \\u001b[?25h\"]\n[91.902031, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠦ \"]\n[91.90209, \"o\", \"\\u001b[?25h\"]\n[92.002095, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠦ \\u001b[?25h\"]\n[92.101974, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠧ \\u001b[?25h\"]\n[92.202046, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠇ \\u001b[?25h\"]\n[92.30206, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠏ \\u001b[?25h\"]\n[92.401834, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠋ \\u001b[?25h\"]\n[92.501898, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠙ \\u001b[?25h\"]\n[92.6019, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠸ \\u001b[?25h\"]\n[92.702013, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠼ \\u001b[?25h\"]\n[92.801772, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠼ \\u001b[?25h\"]\n[92.901643, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠴ \\u001b[?25h\"]\n[93.002734, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠦ \\u001b[?25h\"]\n[93.101915, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G\"]\n[93.102042, \"o\", \"⠇ \\u001b[?25h\"]\n[93.201869, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G\"]\n[93.202082, \"o\", \"⠇ \\u001b[?25h\"]\n[93.302187, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠏ \\u001b[?25h\"]\n[93.403233, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠋ \\u001b[?25h\"]\n[93.502194, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠙ \\u001b[?25h\"]\n[93.601229, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠹ \\u001b[?25h\"]\n[93.706375, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠸ \\u001b[?25h\"]\n[93.803387, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠼ \\u001b[?25h\"]\n[93.902338, \"o\", \"\\u001b[?25l\"]\n[93.902649, \"o\", \"\\u001b[2K\\u001b[1G⠦ \\u001b[?25h\"]\n[94.001811, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠧ \\u001b[?25h\"]\n[94.10188, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠧ \\u001b[?25h\"]\n[94.203517, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠇ \\u001b[?25h\"]\n[94.302372, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠏ \\u001b[?25h\"]\n[94.402711, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠋ \\u001b[?25h\"]\n[94.502761, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠙ \\u001b[?25h\"]\n[94.602188, \"o\", \"\\u001b[?25l\"]\n[94.602258, \"o\", \"\\u001b[2K\\u001b[1G⠸ \\u001b[?25h\"]\n[94.701867, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠼ \\u001b[?25h\"]\n[94.802165, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠼ \\u001b[?25h\"]\n[94.902345, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠦ \\u001b[?25h\"]\n[95.001845, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠦ \\u001b[?25h\"]\n[95.102276, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠧ \\u001b[?25h\"]\n[95.201996, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠇ \\u001b[?25h\"]\n[95.302269, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠏ \\u001b[?25h\"]\n[95.403022, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠙ \\u001b[?25h\"]\n[95.502042, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠙ \\u001b[?25h\"]\n[95.602825, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠹ \\u001b[?25h\"]\n[95.702385, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠸ \\u001b[?25h\"]\n[95.801589, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠼ \\u001b[?25h\"]\n[95.900912, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠦ \\u001b[?25h\"]\n[96.002122, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠦ \\u001b[?25h\"]\n[96.105408, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G\"]\n[96.105777, \"o\", \"⠇ \\u001b[?25h\"]\n[96.20186, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠇ \\u001b[?25h\"]\n[96.302255, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠋ \\u001b[?25h\"]\n[96.401408, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠙ \\u001b[?25h\"]\n[96.501518, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠹ \\u001b[?25h\"]\n[96.601287, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠸ \\u001b[?25h\"]\n[96.703073, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠸ \\u001b[?25h\"]\n[96.790475, \"o\", \"\\u001b[?25l\\u001b[?25l\\u001b[2K\\u001b[1G\\u001b[?25h\\u001b[2K\\u001b[1G\\u001b[?25h\\u001b[?25l\\u001b[?25h\"]\n[96.800745, \"o\", \"\\u001b[?2004h>>> \"]\n[96.800901, \"o\", \"\\u001b[38;5;245mSend a message (/? for help)\\u001b[28D\\u001b[0m\"]\n[97.827968, \"o\", \"\\u001b[KH\"]\n[98.103102, \"o\", \"i\"]\n[98.335563, \"o\", \"\\r\\n\"]\n[98.437265, \"o\", \"\\u001b[?25l⠋ \\u001b[?25h\"]\n[98.537063, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠹ \\u001b[?25h\"]\n[98.636934, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠹ \\u001b[?25h\"]\n[98.749142, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠼ \\u001b[?25h\"]\n[98.837115, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠼ \\u001b[?25h\"]\n[98.936481, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠦ \\u001b[?25h\"]\n[99.03701, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠦ \\u001b[?25h\"]\n[99.136055, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠧ \\u001b[?25h\"]\n[99.23691, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠏ \\u001b[?25h\"]\n[99.345712, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠏ \\u001b[?25h\"]\n[99.437048, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠙ \\u001b[?25h\"]\n[99.536736, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠹ \\u001b[?25h\"]\n[99.636737, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠸ \\u001b[?25h\"]\n[99.737058, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠼ \\u001b[?25h\"]\n[99.836985, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠴ \\u001b[?25h\"]\n[99.936573, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠦ \\u001b[?25h\"]\n[100.036396, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠧ \\u001b[?25h\"]\n[100.137018, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠇ \\u001b[?25h\"]\n[100.237252, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠏ \\u001b[?25h\"]\n[100.336961, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠏ \\u001b[?25h\"]\n[100.436858, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G\"]\n[100.436909, \"o\", \"⠙ \\u001b[?25h\"]\n[100.537414, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠹ \\u001b[?25h\"]\n[100.636672, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠸ \\u001b[?25h\"]\n[100.736575, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠼ \\u001b[?25h\"]\n[100.83678, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠼ \\u001b[?25h\"]\n[100.936665, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠦ \\u001b[?25h\"]\n[101.043559, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠦ \\u001b[?25h\"]\n[101.136691, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠇ \\u001b[?25h\"]\n[101.236974, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠏ \\u001b[?25h\"]\n[101.336647, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠏ \\u001b[?25h\"]\n[101.436749, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠋ \\u001b[?25h\"]\n[101.536934, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠹ \\u001b[?25h\"]\n[101.638548, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠹ \\u001b[?25h\"]\n[101.737442, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠸ \\u001b[?25h\"]\n[101.838378, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠴ \\u001b[?25h\"]\n[101.937154, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠦ \\u001b[?25h\"]\n[102.036959, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠧ \\u001b[?25h\"]\n[102.13708, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠧ \\u001b[?25h\"]\n[102.237091, \"o\", \"\\u001b[?25l\"]\n[102.237139, \"o\", \"\\u001b[2K\\u001b[1G⠏ \\u001b[?25h\"]\n[102.337258, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠋ \\u001b[?25h\"]\n[102.437069, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠙ \\u001b[?25h\"]\n[102.447503, \"o\", \"\\u001b[?25l\\u001b[?25l\\u001b[2K\\u001b[1G\\u001b[?25h\\u001b[2K\\u001b[1G\\u001b[?25h Hello\"]\n[103.615211, \"o\", \"\\u001b[?25l\\u001b[?25h,\"]\n[105.247916, \"o\", \"\\u001b[?25l\\u001b[?25h how\"]\n[106.947823, \"o\", \"\\u001b[?25l\\u001b[?25h can\"]\n[107.626072, \"o\", \"\\u001b[?25l\\u001b[?25h I\"]\n[107.731179, \"o\", \"\\u001b[?25l\\u001b[?25h assist\"]\n[108.022353, \"o\", \"\\u001b[?25l\\u001b[?25h you\"]\n[108.673078, \"o\", \"\\u001b[?25l\\u001b[?25h today\"]\n[110.506377, \"o\", \"\\u001b[?25l\\u001b[?25h?\"]\n[112.265491, \"o\", \"\\u001b[?25l\\u001b[?25h\\r\\n\"]\n[114.343836, \"o\", \"\\u001b[?25l\\u001b[?25h\\r\\n\\r\\n\"]\n[114.344679, \"o\", \"\\u001b[?25l\\u001b[?25h\"]\n[114.344898, \"o\", \">>> \\u001b[38;5;245mSend a message (/? for help)\\u001b[28D\\u001b[0m\"]\n[120.407124, \"o\", \"\\u001b[KW\"]\n[120.563384, \"o\", \"h\"]\n[120.666461, \"o\", \"a\"]\n[120.771819, \"o\", \"t\"]\n[120.878226, \"o\", \" \"]\n[121.027992, \"o\", \"i\"]\n[121.163489, \"o\", \"s\"]\n[121.274028, \"o\", \" \"]\n[121.573368, \"o\", \"K\"]\n[121.754365, \"o\", \"u\"]\n[121.885196, \"o\", \"b\"]\n[121.971719, \"o\", \"e\"]\n[122.108481, \"o\", \"r\"]\n[122.207514, \"o\", \"n\"]\n[122.322107, \"o\", \"e\"]\n[122.395714, \"o\", \"t\"]\n[122.510089, \"o\", \"e\"]\n[122.691821, \"o\", \"s\"]\n[123.022581, \"o\", \"?\"]\n[123.304883, \"o\", \"\\r\\n\"]\n[123.405458, \"o\", \"\\u001b[?25l⠙ \\u001b[?25h\"]\n[123.505513, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠹ \\u001b[?25h\"]\n[123.605378, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠸ \\u001b[?25h\"]\n[123.70554, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠼ \\u001b[?25h\"]\n[123.805414, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠴ \\u001b[?25h\"]\n[123.906204, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠦ \\u001b[?25h\"]\n[124.005541, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠧ \\u001b[?25h\"]\n[124.105403, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠇ \\u001b[?25h\"]\n[124.206071, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠏ \\u001b[?25h\"]\n[124.305979, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠋ \\u001b[?25h\"]\n[124.405539, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠙ \\u001b[?25h\"]\n[124.505887, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠹ \\u001b[?25h\"]\n[124.607839, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠸ \\u001b[?25h\"]\n[124.707328, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠼ \\u001b[?25h\"]\n[124.805643, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠴ \\u001b[?25h\"]\n[124.841042, \"o\", \"\\u001b[?25l\\u001b[?25l\\u001b[2K\\u001b[1G\\u001b[?25h\\u001b[2K\\u001b[1G\\u001b[?25h Ku\"]\n[124.932003, \"o\", \"\\u001b[?25l\\u001b[?25hber\"]\n[125.008446, \"o\", \"\\u001b[?25l\\u001b[?25hnet\"]\n[125.081134, \"o\", \"\\u001b[?25l\\u001b[?25hes\"]\n[125.15178, \"o\", \"\\u001b[?25l\\u001b[?25h is\"]\n[125.221486, \"o\", \"\\u001b[?25l\\u001b[?25h an\"]\n[125.307801, \"o\", \"\\u001b[?25l\\u001b[?25h open\"]\n[125.382292, \"o\", \"\\u001b[?25l\\u001b[?25h-\"]\n[125.459878, \"o\", \"\\u001b[?25l\\u001b[?25hsource\"]\n[125.540196, \"o\", \"\\u001b[?25l\\u001b[?25h platform\"]\n[125.614131, \"o\", \"\\u001b[?25l\\u001b[?25h for\"]\n[125.685331, \"o\", \"\\u001b[?25l\\u001b[?25h managing\"]\n[125.861575, \"o\", \"\\u001b[?25l\\u001b[?25h cont\"]\n[125.861642, \"o\", \"ainer\"]\n[126.186138, \"o\", \"\\u001b[?25l\\u001b[?25h\"]\n[126.186188, \"o\", \"ized\"]\n[126.31363, \"o\", \"\\u001b[?25l\\u001b[?25h applications\"]\n[126.495512, \"o\", \"\\u001b[?25l\\u001b[?25h.\"]\n[126.59388, \"o\", \"\\u001b[?25l\\u001b[?25h It\"]\n[126.666751, \"o\", \"\\u001b[?25l\\u001b[?25h autom\"]\n[126.752141, \"o\", \"\\u001b[?25l\\u001b[?25hates\"]\n[126.82856, \"o\", \"\\u001b[?25l\\u001b[?25h the\"]\n[126.91003, \"o\", \"\\u001b[?25l\\u001b[?25h deployment\"]\n[126.986305, \"o\", \"\\u001b[?25l\\u001b[?25h,\"]\n[127.069918, \"o\", \"\\u001b[?25l\\u001b[?25h scaling\"]\n[127.180984, \"o\", \"\\u001b[?25l\\u001b[?25h,\"]\n[127.260666, \"o\", \"\\u001b[?25l\\u001b[?25h \"]\n[127.261603, \"o\", \"and\"]\n[127.331714, \"o\", \"\\u001b[?25l\\u001b[?25h\"]\n[127.331768, \"o\", \" management\"]\n[127.402055, \"o\", \"\\u001b[?25l\\u001b[?25h of\"]\n[127.472407, \"o\", \"\\u001b[?25l\\u001b[?25h container\"]\n[127.54749, \"o\", \"\\u001b[?25l\\u001b[?25hized\"]\n[127.621304, \"o\", \"\\u001b[?25l\\u001b[?25h software\"]\n[127.699408, \"o\", \"\\u001b[?25l\\u001b[?25h,\"]\n[127.780158, \"o\", \"\\u001b[?25l\\u001b[?25h allowing\"]\n[127.854369, \"o\", \"\\u001b[?25l\\u001b[?25h developers\"]\n[127.940289, \"o\", \"\\u001b[?25l\\u001b[?25h \\u001b[0D\\u001b[K\\r\\nto\"]\n[128.015087, \"o\", \"\\u001b[?25l\\u001b[?25h focus\"]\n[128.110188, \"o\", \"\\u001b[?25l\\u001b[?25h on\"]\n[128.202309, \"o\", \"\\u001b[?25l\\u001b[?25h writi\"]\n[128.202359, \"o\", \"ng\"]\n[128.282098, \"o\", \"\\u001b[?25l\\u001b[?25h code\"]\n[128.35219, \"o\", \"\\u001b[?25l\\u001b[?25h rather\"]\n[128.421926, \"o\", \"\\u001b[?25l\\u001b[?25h than\"]\n[128.492594, \"o\", \"\\u001b[?25l\\u001b[?25h worrying\"]\n[128.569029, \"o\", \"\\u001b[?25l\\u001b[?25h about\"]\n[128.642521, \"o\", \"\\u001b[?25l\\u001b[?25h infrastructure\"]\n[128.718448, \"o\", \"\\u001b[?25l\\u001b[?25h.\"]\n[128.788535, \"o\", \"\\u001b[?25l\\u001b[?25h\\r\\n\\r\\n\"]\n[128.860758, \"o\", \"\\u001b[?25l\\u001b[?25h\\r\\n\"]\n[128.931658, \"o\", \"\\u001b[?25l\\u001b[?25hYou\"]\n[129.011448, \"o\", \"\\u001b[?25l\\u001b[?25h are\"]\n[129.079787, \"o\", \"\\u001b[?25l\\u001b[?25h a\"]\n[129.150378, \"o\", \"\\u001b[?25l\\u001b[?25h medical\"]\n[129.219623, \"o\", \"\\u001b[?25l\\u001b[?25h scientist\"]\n[129.293347, \"o\", \"\\u001b[?25l\\u001b[?25h who\"]\n[129.367897, \"o\", \"\\u001b[?25l\\u001b[?25h has\"]\n[129.440371, \"o\", \"\\u001b[?25l\\u001b[?25h developed\"]\n[129.544211, \"o\", \"\\u001b[?25l\\u001b[?25h four\"]\n[129.660966, \"o\", \"\\u001b[?25l\\u001b[?25h different\"]\n[129.741135, \"o\", \"\\u001b[?25l\\u001b[?25h applications\"]\n[129.808303, \"o\", \"\\u001b[?25l\\u001b[?25h -\"]\n[130.053257, \"o\", \"\\u001b[?25l\\u001b[?25h A,\"]\n[130.159514, \"o\", \"\\u001b[?25l\\u001b[?25h B\"]\n[130.230071, \"o\", \"\\u001b[?25l\\u001b[?25h,\"]\n[130.311328, \"o\", \"\\u001b[?25l\\u001b[?25h C\"]\n[130.38281, \"o\", \"\\u001b[?25l\\u001b[?25h,\"]\n[130.456341, \"o\", \"\\u001b[?25l\\u001b[?25h and\"]\n[130.616778, \"o\", \"\\u001b[?25l\\u001b[?25h D\"]\n[130.701148, \"o\", \"\\u001b[?25l\\u001b[?25h -\"]\n[130.857964, \"o\", \"\\u001b[?25l\\u001b[?25h which\"]\n[130.970178, \"o\", \"\\u001b[?25l\\u001b[?25h require\"]\n[131.0768, \"o\", \"\\u001b[?25l\\u001b[?25h different\"]\n[131.1712, \"o\", \"\\u001b[?25l\\u001b[?25h versions\"]\n[131.277565, \"o\", \"\\u001b[?25l\\u001b[?25h of\"]\n[131.375859, \"o\", \"\\u001b[?25l\\u001b[?25h the\"]\n[131.46763, \"o\", \"\\u001b[?25l\\u001b[?25h Ku\"]\n[131.578499, \"o\", \"\\u001b[?25l\\u001b[?25hber\"]\n[131.715776, \"o\", \"\\u001b[?25l\\u001b[?25hnet\"]\n[131.841029, \"o\", \"\\u001b[?25l\\u001b[?25hes\"]\n[131.938874, \"o\", \"\\u001b[?25l\\u001b[?25h platform\"]\n[132.016977, \"o\", \"\\u001b[?25l\\u001b[?25h.\"]\n[132.122319, \"o\", \"\\u001b[?25l\\u001b[?25h \"]\n[132.193151, \"o\", \"\\u001b[?25l\\u001b[?25h\\r\\n\"]\n[132.281581, \"o\", \"\\u001b[?25l\\u001b[?25h\\r\\n\"]\n[132.356682, \"o\", \"\\u001b[?25l\\u001b[?25hThe\"]\n[132.488194, \"o\", \"\\u001b[?25l\\u001b[?25h following\"]\n[132.580307, \"o\", \"\\u001b[?25l\\u001b[?25h conditions\"]\n[132.652918, \"o\", \"\\u001b[?25l\\u001b[?25h hold\"]\n[132.723531, \"o\", \"\\u001b[?25l\\u001b[?25h:\"]\n[132.794455, \"o\", \"\\u001b[?25l\\u001b[?25h\\r\\n\"]\n[132.867572, \"o\", \"\\u001b[?25l\\u001b[?25h1\"]\n[132.946773, \"o\", \"\\u001b[?25l\\u001b[?25h.\"]\n[133.039227, \"o\", \"\\u001b[?25l\\u001b[?25h Application\"]\n[133.242856, \"o\", \"\\u001b[?25l\\u001b[?25h A needs\"]\n[133.336446, \"o\", \"\\u001b[?25l\\u001b[?25h version\"]\n[133.426098, \"o\", \"\\u001b[?25l\\u001b[?25h 1\"]\n[133.559894, \"o\", \"\\u001b[?25l\\u001b[?25h.\"]\n[133.683341, \"o\", \"\\u001b[?25l\\u001b[?25h2\"]\n[134.045527, \"o\", \"\\u001b[?25l\\u001b[?25h.\"]\n[134.210946, \"o\", \"\\u001b[?25l\\u001b[?25h3\"]\n[134.306598, \"o\", \"\\u001b[?25l\\u001b[?25h.\"]\n[134.378, \"o\", \"\\u001b[?25l\\u001b[?25h0\"]\n[134.476569, \"o\", \"\\u001b[?25l\\u001b[?25h\\r\\n\"]\n[134.552729, \"o\", \"\\u001b[?25l\\u001b[?25h2\"]\n[134.629052, \"o\", \"\\u001b[?25l\\u001b[?25h.\"]\n[134.733412, \"o\", \"\\u001b[?25l\\u001b[?25h Application\"]\n[134.820484, \"o\", \"\\u001b[?25l\\u001b[?25h B\"]\n[134.903149, \"o\", \"\\u001b[?25l\\u001b[?25h runs\"]\n[134.974919, \"o\", \"\\u001b[?25l\\u001b[?25h on\"]\n[135.052674, \"o\", \"\\u001b[?25l\\u001b[?25h v\"]\n[135.140972, \"o\", \"\\u001b[?25l\\u001b[?25h1\"]\n[135.232371, \"o\", \"\\u001b[?25l\\u001b[?25h.\"]\n[135.30896, \"o\", \"\\u001b[?25l\\u001b[?25h2\"]\n[135.379282, \"o\", \"\\u001b[?25l\\u001b[?25h.\"]\n[135.463408, \"o\", \"\\u001b[?25l\\u001b[?25h4\"]\n[135.536484, \"o\", \"\\u001b[?25l\\u001b[?25h.\"]\n[135.621656, \"o\", \"\\u001b[?25l\\u001b[?25h5\"]\n[135.753563, \"o\", \"\\u001b[?25l\\u001b[?25h but\"]\n[136.062827, \"o\", \"\\u001b[?25l\\u001b[?25h can\"]\n[136.149802, \"o\", \"\\u001b[?25l\\u001b[?25h only\"]\n[136.259473, \"o\", \"\\u001b[?25l\\u001b[?25h be\"]\n[136.469108, \"o\", \"\\u001b[?25l\\u001b[?25h updated\"]\n[136.646126, \"o\", \"\\u001b[?25l\\u001b[?25h to\"]\n[136.771731, \"o\", \"\\u001b[?25l\\u001b[?25h v\"]\n[136.844419, \"o\", \"\\u001b[?25l\\u001b[?25h1\"]\n[136.921347, \"o\", \"\\u001b[?25l\\u001b[?25h.\"]\n[137.008567, \"o\", \"\\u001b[?25l\\u001b[?25h3\"]\n[137.103563, \"o\", \"\\u001b[?25l\\u001b[?25h.\"]\n[137.184941, \"o\", \"\\u001b[?25l\\u001b[?25h0\"]\n[137.258788, \"o\", \"\\u001b[?25l\\u001b[?25h.\"]\n[137.337997, \"o\", \"\\u001b[?25l\\u001b[?25h0\"]\n[137.41366, \"o\", \"\\u001b[?25l\\u001b[?25h if\"]\n[137.488726, \"o\", \"\\u001b[?25l\\u001b[?25h it\"]\n[137.691565, \"o\", \"\\u001b[?25l\\u001b[?25h's\"]\n[137.901245, \"o\", \"\\u001b[?25l\\u001b[?25h in\"]\n[138.010077, \"o\", \"\\u001b[?25l\\u001b[?25h stable\"]\n[138.09917, \"o\", \"\\u001b[?25l\\u001b[?25h mode\"]\n[138.186537, \"o\", \"\\u001b[?25l\\u001b[?25h.\"]\n[138.263838, \"o\", \"\\u001b[?25l\\u001b[?25h\\r\\n\"]\n[138.362413, \"o\", \"\\u001b[?25l\\u001b[?25h3\"]\n[138.439593, \"o\", \"\\u001b[?25l\\u001b[?25h.\"]\n[138.531507, \"o\", \"\\u001b[?25l\\u001b[?25h Application\"]\n[138.597101, \"o\", \"\\u001b[?25l\\u001b[?25h C\"]\n[138.672869, \"o\", \"\\u001b[?25l\\u001b[?25h is\"]\n[138.746664, \"o\", \"\\u001b[?25l\\u001b[?25h running\"]\n[138.8248, \"o\", \"\\u001b[?25l\\u001b[?25h in\"]\n[138.925233, \"o\", \"\\u001b[?25l\\u001b[?25h a\"]\n[139.02591, \"o\", \"\\u001b[?25l\\u001b[?25h beta\"]\n[139.112204, \"o\", \"\\u001b[?25l\\u001b[?25h environment\"]\n[139.189085, \"o\", \"\\u001b[?25l\\u001b[?25h,\"]\n[139.265818, \"o\", \"\\u001b[?25l\\u001b[?25h so\"]\n[139.338221, \"o\", \"\\u001b[?25l\\u001b[?25h it\"]\n[139.409317, \"o\", \"\\u001b[?25l\\u001b[?25h's\"]\n[139.5126, \"o\", \"\\u001b[?25l\\u001b[?25h not\"]\n[139.592984, \"o\", \"\\u001b[?25l\\u001b[?25h allowed\"]\n[139.693172, \"o\", \"\\u001b[?25l\\u001b[?25h to\"]\n[139.840635, \"o\", \"\\u001b[?25l\\u001b[?25h update\"]\n[139.947083, \"o\", \"\\u001b[?25l\\u001b[?25h its\"]\n[140.068641, \"o\", \"\\u001b[?25l\\u001b[?25h Ku\"]\n[140.145561, \"o\", \"\\u001b[?25l\\u001b[?25hber\"]\n[140.216418, \"o\", \"\\u001b[?25l\\u001b[?25hnet\"]\n[140.312307, \"o\", \"\\u001b[?25l\\u001b[?25hes\"]\n[140.455347, \"o\", \"\\u001b[?25l\\u001b[?25h version\"]\n[140.560084, \"o\", \"\\u001b[?25l\\u001b[?25h.\"]\n[140.725104, \"o\", \"\\u001b[?25l\\u001b[?25h\\r\\n\"]\n[140.884496, \"o\", \"\\u001b[?25l\\u001b[?25h4\"]\n[140.979227, \"o\", \"\\u001b[?25l\\u001b[?25h.\"]\n[141.077847, \"o\", \"\\u001b[?25l\\u001b[?25h Application\"]\n[141.173078, \"o\", \"\\u001b[?25l\\u001b[?25h D\"]\n[141.245477, \"o\", \"\\u001b[?25l\\u001b[?25h is\"]\n[141.318589, \"o\", \"\\u001b[?25l\\u001b[?25h the\"]\n[141.512691, \"o\", \"\\u001b[?25l\\u001b[?25h most\"]\n[142.391521, \"o\", \"\\u001b[?25l\\u001b[?25h recent\"]\n[142.680572, \"o\", \"\\u001b[?25l\\u001b[?25h one\"]\n[142.798, \"o\", \"\\u001b[?25l\\u001b[?25h and\"]\n[142.926839, \"o\", \"\\u001b[?25l\\u001b[?25h needs\"]\n[143.030176, \"o\", \"\\u001b[?25l\\u001b[?25h to\"]\n[143.143583, \"o\", \"\\u001b[?25l\\u001b[?25h be\"]\n[143.215022, \"o\", \"\\u001b[?25l\\u001b[?25h upgraded\"]\n[143.321777, \"o\", \"\\u001b[?25l\\u001b[?25h to\"]\n[143.486685, \"o\", \"\\u001b[?25l\\u001b[?25h v\"]\n[143.681864, \"o\", \"\\u001b[?25l\\u001b[?25h1\"]\n[143.806551, \"o\", \"\\u001b[?25l\\u001b[?25h.\"]\n[145.029183, \"o\", \"\\u001b[?25l\\u001b[?25h5\"]\n[146.808853, \"o\", \"\\u001b[?25l\\u001b[?25h.\"]\n[147.571896, \"o\", \"\\u001b[?25l\\u001b[?25h7\"]\n[147.665173, \"o\", \"\\u001b[?25l\\u001b[?25h.\"]\n[147.741735, \"o\", \"\\u001b[?25l\\u001b[?25h2\"]\n[147.823503, \"o\", \"\\u001b[?25l\\u001b[?25h.\"]\n[147.920732, \"o\", \"\\u001b[?25l\\u001b[?25h \"]\n[148.013431, \"o\", \"\\u001b[?25l\\u001b[?25h\\r\\n\"]\n[148.119625, \"o\", \"\\u001b[?25l\\u001b[?25h\\r\\n\"]\n[148.371775, \"o\", \"\\u001b[?25l\\u001b[?25hUnfortunately\"]\n[149.330527, \"o\", \"\\u001b[?25l\\u001b[?25h,\"]\n[150.375301, \"o\", \"\\u001b[?25l\\u001b[?25h you\"]\n[150.752129, \"o\", \"\\u001b[?25l\\u001b[?25h only\"]\n[152.033498, \"o\", \"\\u001b[?25l\\u001b[?25h have\"]\n[153.290914, \"o\", \"\\u001b[?25l\\u001b[?25h access\"]\n[153.886637, \"o\", \"\\u001b[?25l\\u001b[?25h to\"]\n[153.9909, \"o\", \"\\u001b[?25l\\u001b[?25h an\"]\n[154.159914, \"o\", \"\\u001b[?25l\\u001b[?25h outdated\"]\n[154.298374, \"o\", \"\\u001b[?25l\\u001b[?25h system\"]\n[154.395997, \"o\", \"\\u001b[?25l\\u001b[?25h that\"]\n[154.596653, \"o\", \"\\u001b[?25l\\u001b[?25h currently\"]\n[154.739296, \"o\", \"\\u001b[?25l\\u001b[?25h has\"]\n[154.820732, \"o\", \"\\u001b[?25l\\u001b[?25h three\"]\n[154.911545, \"o\", \"\\u001b[?25l\\u001b[?25h versions\"]\n[155.016236, \"o\", \"\\u001b[?25l\\u001b[?25h of\"]\n[155.106772, \"o\", \"\\u001b[?25l\\u001b[?25h Ku\"]\n[155.245601, \"o\", \"\\u001b[?25l\\u001b[?25hber\"]\n[155.368499, \"o\", \"\\u001b[?25l\\u001b[?25hnet\"]\n[155.477777, \"o\", \"\\u001b[?25l\\u001b[?25hes\"]\n[155.563587, \"o\", \"\\u001b[?25l\\u001b[?25h -\"]\n[155.767228, \"o\", \"\\u001b[?25l\\u001b[?25h v\"]\n[155.937956, \"o\", \"\\u001b[?25l\\u001b[?25h1\"]\n[156.186646, \"o\", \"\\u001b[?25l\\u001b[?25h.\"]\n[156.291954, \"o\", \"\\u001b[?25l\\u001b[?25h3\"]\n[156.366593, \"o\", \"\\u001b[?25l\\u001b[?25h.\"]\n[156.754485, \"o\", \"\\u001b[?25l\\u001b[?25h0\"]\n[156.95343, \"o\", \"\\u001b[?25l\\u001b[?25h.\"]\n[157.13017, \"o\", \"\\u001b[?25l\\u001b[?25h0\"]\n[157.21694, \"o\", \"\\u001b[?25l\\u001b[?25h,\"]\n[157.346494, \"o\", \"\\u001b[?25l\\u001b[?25h v\"]\n[157.459856, \"o\", \"\\u001b[?25l\\u001b[?25h1\"]\n[157.533253, \"o\", \"\\u001b[?25l\\u001b[?25h.\"]\n[157.621205, \"o\", \"\\u001b[?25l\\u001b[?25h3\"]\n[157.729059, \"o\", \"\\u001b[?25l\\u001b[?25h.\"]\n[157.891517, \"o\", \"\\u001b[?25l\\u001b[?25h1\"]\n[158.323648, \"o\", \"\\u001b[?25l\\u001b[?25h.\"]\n[158.530566, \"o\", \"\\u001b[?25l\\u001b[?25h0\"]\n[158.695655, \"o\", \"\\u001b[?25l\\u001b[?25h,\"]\n[158.885381, \"o\", \"\\u001b[?25l\\u001b[?25h and\"]\n[158.974813, \"o\", \"\\u001b[?25l\\u001b[?25h v\"]\n[159.196009, \"o\", \"\\u001b[?25l\\u001b[?25h1\"]\n[159.28765, \"o\", \"\\u001b[?25l\\u001b[?25h.\"]\n[159.384334, \"o\", \"\\u001b[?25l\\u001b[?25h4\"]\n[159.518093, \"o\", \"\\u001b[?25l\\u001b[?25h.\"]\n[159.614105, \"o\", \"\\u001b[?25l\\u001b[?25h0\"]\n[159.739423, \"o\", \"\\u001b[?25l\\u001b[?25h.\"]\n[159.811529, \"o\", \"\\u001b[?25l\\u001b[?25h0\"]\n[159.908041, \"o\", \"\\u001b[?25l\\u001b[?25h.\"]\n[160.039735, \"o\", \"\\u001b[?25l\\u001b[?25h\\r\\n\"]\n[160.1562, \"o\", \"\\u001b[?25l\\u001b[?25h\\r\\n\"]\n[160.236658, \"o\", \"\\u001b[?25l\\u001b[?25hQuestion\"]\n[160.331712, \"o\", \"\\u001b[?25l\\u001b[?25h:\"]\n[160.417185, \"o\", \"\\u001b[?25l\\u001b[?25h What\"]\n[160.562141, \"o\", \"\\u001b[?25l\\u001b[?25h is\"]\n[161.813553, \"o\", \"\\u001b[?25l\\u001b[?25h the\"]\n[164.002805, \"o\", \"\\u001b[?25l\\u001b[?25h order\"]\n[164.981738, \"o\", \"\\u001b[?25l\\u001b[?25h in\"]\n[165.100844, \"o\", \"\\u001b[?25l\\u001b[?25h which\"]\n[165.188425, \"o\", \"\\u001b[?25l\\u001b[?25h you\"]\n[165.260821, \"o\", \"\\u001b[?25l\\u001b[?25h should\"]\n[165.339599, \"o\", \"\\u001b[?25l\\u001b[?25h upgrade\"]\n[165.468636, \"o\", \"\\u001b[?25l\\u001b[?25h your\"]\n[165.56463, \"o\", \"\\u001b[?25l\\u001b[?25h applications\"]\n[166.740716, \"o\", \"\\u001b[?25l\\u001b[?25h,\"]\n[168.265886, \"o\", \"\\u001b[?25l\\u001b[?25h following\"]\n[170.521341, \"o\", \"\\u001b[?25l\\u001b[?25h the\"]\n[170.917621, \"o\", \"\\u001b[?25l\\u001b[?25h conditions\"]\n[170.997995, \"o\", \"\\u001b[?25l\\u001b[?25h given\"]\n[171.087603, \"o\", \"\\u001b[?25l\\u001b[?25h above\"]\n[171.167916, \"o\", \"\\u001b[?25l\\u001b[?25h?\"]\n[171.251263, \"o\", \"\\u001b[?25l\\u001b[?25h\\r\\n\\r\\n\"]\n[171.324365, \"o\", \"\\u001b[?25l\\u001b[?25h\\r\\n\"]\n[171.405479, \"o\", \"\\u001b[?25l\\u001b[?25hStart\"]\n[171.59632, \"o\", \"\\u001b[?25l\\u001b[?25h by\"]\n[171.691564, \"o\", \"\\u001b[?25l\\u001b[?25h listing\"]\n[171.806319, \"o\", \"\\u001b[?25l\\u001b[?25h all\"]\n[171.910538, \"o\", \"\\u001b[?25l\\u001b[?25h possible\"]\n[171.992112, \"o\", \"\\u001b[?25l\\u001b[?25h perm\"]\n[172.087049, \"o\", \"\\u001b[?25l\\u001b[?25hutations\"]\n[172.196058, \"o\", \"\\u001b[?25l\\u001b[?25h of\"]\n[172.270486, \"o\", \"\\u001b[?25l\\u001b[?25h the\"]\n[172.349861, \"o\", \"\\u001b[?25l\\u001b[?25h four\"]\n[172.427318, \"o\", \"\\u001b[?25l\\u001b[?25h applications\"]\n[172.501291, \"o\", \"\\u001b[?25l\\u001b[?25h.\"]\n[172.574706, \"o\", \"\\u001b[?25l\\u001b[?25h This\"]\n[172.705528, \"o\", \"\\u001b[?25l\\u001b[?25h can\"]\n[172.79241, \"o\", \"\\u001b[?25l\\u001b[?25h be\"]\n[172.891528, \"o\", \"\\u001b[?25l\\u001b[?25h calculated\"]\n[172.99375, \"o\", \"\\u001b[?25l\\u001b[?25h as\"]\n[173.109115, \"o\", \"\\u001b[?25l\\u001b[?25h 4\"]\n[173.190218, \"o\", \"\\u001b[?25l\\u001b[?25h*\"]\n[173.282356, \"o\", \"\\u001b[?25l\\u001b[?25h3\"]\n[173.354291, \"o\", \"\\u001b[?25l\\u001b[?25h*\"]\n[173.44338, \"o\", \"\\u001b[?25l\\u001b[?25h2\"]\n[173.519582, \"o\", \"\\u001b[?25l\\u001b[?25h*\"]\n[173.607944, \"o\", \"\\u001b[?25l\\u001b[?25h1\"]\n[173.690073, \"o\", \"\\u001b[?25l\\u001b[?25h =\"]\n[173.786756, \"o\", \"\\u001b[?25l\\u001b[?25h 24\"]\n[173.879013, \"o\", \"\\u001b[?25l\\u001b[?25h.\"]\n[174.023508, \"o\", \"\\u001b[?25l\\u001b[?25h However\"]\n[174.207514, \"o\", \"\\u001b[?25l\\u001b[?25h,\"]\n[174.289258, \"o\", \"\\u001b[?25l\\u001b[?25h some\"]\n[174.367522, \"o\", \"\\u001b[?25l\\u001b[?25h combinations\"]\n[174.502348, \"o\", \"\\u001b[?25l\\u001b[?25h will\"]\n[174.581519, \"o\", \"\\u001b[?25l\\u001b[?25h not\"]\n[174.653469, \"o\", \"\\u001b[?25l\\u001b[?25h work\"]\n[174.759276, \"o\", \"\\u001b[?25l\\u001b[?25h because\"]\n[174.853155, \"o\", \"\\u001b[?25l\\u001b[?25h they\"]\n[174.941006, \"o\", \"\\u001b[?25l\\u001b[?25h violate\"]\n[175.053665, \"o\", \"\\u001b[?25l\\u001b[?25h the\"]\n[175.179218, \"o\", \"\\u001b[?25l\\u001b[?25h condi\\u001b[5D\\u001b[K\\r\\nconditions\"]\n[175.283173, \"o\", \"\\u001b[?25l\\u001b[?25h.\"]\n[175.364633, \"o\", \"\\u001b[?25l\\u001b[?25h\\r\\n\"]\n[175.441494, \"o\", \"\\u001b[?25l\\u001b[?25h\\r\\n\"]\n[175.58337, \"o\", \"\\u001b[?25l\\u001b[?25hFirstly\"]\n[176.545811, \"o\", \"\\u001b[?25l\\u001b[?25h,\"]\n[177.393512, \"o\", \"\\u001b[?25l\\u001b[?25h remove\"]\n[177.480873, \"o\", \"\\u001b[?25l\\u001b[?25h any\"]\n[177.559032, \"o\", \"\\u001b[?25l\\u001b[?25h versions\"]\n[177.677073, \"o\", \"\\u001b[?25l\\u001b[?25h that\"]\n[177.7641, \"o\", \"\\u001b[?25l\\u001b[?25h do\"]\n[177.866226, \"o\", \"\\u001b[?25l\\u001b[?25h not\"]\n[177.955352, \"o\", \"\\u001b[?25l\\u001b[?25h match\"]\n[178.034981, \"o\", \"\\u001b[?25l\\u001b[?25h with\"]\n[178.121632, \"o\", \"\\u001b[?25l\\u001b[?25h the\"]\n[178.206321, \"o\", \"\\u001b[?25l\\u001b[?25h needed\"]\n[178.283794, \"o\", \"\\u001b[?25l\\u001b[?25h version\"]\n[178.374267, \"o\", \"\\u001b[?25l\\u001b[?25h for\"]\n[178.430803, \"o\", \"^C\"]\n[178.432064, \"o\", \"\\r\\n\\r\\n\"]\n[178.432142, \"o\", \"\\u001b[?25l\\u001b[?25h\"]\n[178.43239, \"o\", \">>> \\u001b[38;5;245mSend a message (/? for help)\\u001b[28D\\u001b[0m\"]\n[179.638331, \"o\", \"\\u001b[K/\"]\n[180.048445, \"o\", \"b\"]\n[180.238019, \"o\", \"y\"]\n[180.43874, \"o\", \"e\"]\n[180.616456, \"o\", \"\\r\\n\\u001b[?2004l\"]\n[180.621173, \"o\", \"\\u001b[1m\\u001b[7m%\\u001b[27m\\u001b[1m\\u001b[0m                                                                                                                                                                                        \\r \\r\"]\n[181.14494, \"o\", \"\\r\\u001b[0m\\u001b[27m\\u001b[24m\\u001b[J\\r\\n\\u001b[1;36m☸ \\u001b[0m\\u001b[1;36mkind-kind\\u001b[0m in \\u001b[1;36mollama-operator\\u001b[0m on \\u001b[1;35m \\u001b[0m\\u001b[1;35mmain\\u001b[0m \\u001b[1;31m[\\u001b[0m\\u001b[1;31m✘\\u001b[0m\\u001b[1;31m!\\u001b[0m\\u001b[1;31m?\\u001b[0m\\u001b[1;31m]\\u001b[0m via \\u001b[1;34m🐳 \\u001b[0m\\u001b[1;34morbstack\\u001b[0m via \\u001b[1;36m🐹 \\u001b[0m\\u001b[1;36mv1.22.2\\u001b[0m\\u001b[1;36m \\u001b[0mtook \\u001b[1;33m1m30s\\u001b[0m \\r\\n\\u001b[1;32m❯\\u001b[0m \\u001b[K\"]\n[181.145131, \"o\", \"\\u001b[?1h\\u001b=\\u001b[?2004h\"]\n[183.001285, \"o\", \"\\u001b[?2004l\\r\\r\\n\"]\n"
  },
  {
    "path": "docs/public/demo.cast",
    "content": "{\"version\": 2, \"width\": 110, \"height\": 32, \"timestamp\": 1712912885, \"env\": {\"SHELL\": \"/bin/zsh\", \"TERM\": \"xterm-256color\"}}\n[2.392964, \"o\", \"\\r\\u001b[0m\\u001b[27m\\u001b[24m\\u001b[J\\r\\n\\u001b[1;36m☸ \\u001b[0m\\u001b[1;36mkind-kind\\u001b[0m in \\u001b[1;36m~\\u001b[0m \\r\\n\\u001b[1;32m❯\\u001b[0m \\u001b[K\"]\n[2.394311, \"o\", \"\\u001b[?1h\\u001b=\"]\n[2.395639, \"o\", \"\\u001b[?2004h\"]\n[7.896126, \"o\", \"c\"]\n[7.896841, \"o\", \"\\bca\"]\n[7.896902, \"o\", \"t <\"]\n[7.897297, \"o\", \"<\"]\n[7.897502, \"o\", \"E\"]\n[7.897716, \"o\", \"O\"]\n[7.898199, \"o\", \"F\"]\n[7.89852, \"o\", \" >\"]\n[7.899145, \"o\", \">\"]\n[7.899295, \"o\", \" o\"]\n[7.899449, \"o\", \"l\"]\n[7.899659, \"o\", \"l\"]\n[7.90035, \"o\", \"am\"]\n[7.900526, \"o\", \"a\"]\n[7.900667, \"o\", \"-\"]\n[7.900798, \"o\", \"m\"]\n[7.901014, \"o\", \"o\"]\n[7.901107, \"o\", \"d\"]\n[7.901232, \"o\", \"e\"]\n[7.901387, \"o\", \"l\"]\n[7.901783, \"o\", \"-\"]\n[7.902147, \"o\", \"p\"]\n[7.902359, \"o\", \"h\"]\n[7.90259, \"o\", \"i\"]\n[7.902746, \"o\", \".\"]\n[7.902966, \"o\", \"y\"]\n[7.903218, \"o\", \"a\"]\n[7.903441, \"o\", \"m\"]\n[7.903617, \"o\", \"l\"]\n[7.903846, \"o\", \"\\r\\r\\na\\u001b[K\"]\n[7.904071, \"o\", \"\\rap\"]\n[7.904351, \"o\", \"i\"]\n[7.904534, \"o\", \"V\"]\n[7.904755, \"o\", \"e\"]\n[7.904928, \"o\", \"r\"]\n[7.905088, \"o\", \"s\"]\n[7.905302, \"o\", \"i\"]\n[7.905475, \"o\", \"o\"]\n[7.905631, \"o\", \"n\"]\n[7.905836, \"o\", \":\"]\n[7.906011, \"o\", \" o\"]\n[7.906164, \"o\", \"l\"]\n[7.906398, \"o\", \"l\"]\n[7.906645, \"o\", \"a\"]\n[7.906803, \"o\", \"m\"]\n[7.906961, \"o\", \"a\"]\n[7.90712, \"o\", \".\"]\n[7.907256, \"o\", \"a\"]\n[7.907399, \"o\", \"y\"]\n[7.907548, \"o\", \"a\"]\n[7.907687, \"o\", \"k\"]\n[7.907821, \"o\", \"a\"]\n[7.907953, \"o\", \".\"]\n[7.908094, \"o\", \"i\"]\n[7.908232, \"o\", \"o\"]\n[7.908406, \"o\", \"/\"]\n[7.908552, \"o\", \"v\"]\n[7.90871, \"o\", \"1\"]\n[7.908866, \"o\", \"\\r\\r\\nk\\u001b[K\"]\n[7.909015, \"o\", \"\\rki\"]\n[7.909217, \"o\", \"n\"]\n[7.909363, \"o\", \"d\"]\n[7.909511, \"o\", \":\"]\n[7.909668, \"o\", \" M\"]\n[7.909807, \"o\", \"o\"]\n[7.909948, \"o\", \"d\"]\n[7.910087, \"o\", \"e\"]\n[7.910229, \"o\", \"l\"]\n[7.910376, \"o\", \"\\r\\r\\nm\\u001b[K\"]\n[7.910517, \"o\", \"\\rme\"]\n[7.910656, \"o\", \"t\"]\n[7.910797, \"o\", \"a\"]\n[7.910934, \"o\", \"d\"]\n[7.911073, \"o\", \"a\"]\n[7.911209, \"o\", \"t\"]\n[7.911347, \"o\", \"a\"]\n[7.911484, \"o\", \":\"]\n[7.911651, \"o\", \"\\r\\r\\n  n\\u001b[K\"]\n[7.911792, \"o\", \"a\"]\n[7.911934, \"o\", \"m\"]\n[7.912073, \"o\", \"e\"]\n[7.912209, \"o\", \":\"]\n[7.912358, \"o\", \" p\"]\n[7.912498, \"o\", \"h\"]\n[7.912633, \"o\", \"i\"]\n[7.912784, \"o\", \"\\r\\r\\ns\\u001b[K\"]\n[7.912923, \"o\", \"\\rsp\"]\n[7.913061, \"o\", \"e\"]\n[7.913201, \"o\", \"c\"]\n[7.91334, \"o\", \":\"]\n[7.913509, \"o\", \"\\r\\r\\n  i\\u001b[K\"]\n[7.913654, \"o\", \"m\"]\n[7.913796, \"o\", \"a\"]\n[7.913951, \"o\", \"g\"]\n[7.914081, \"o\", \"e\"]\n[7.914219, \"o\", \":\"]\n[7.914369, \"o\", \" p\"]\n[7.914509, \"o\", \"h\"]\n[7.914653, \"o\", \"i\"]\n[7.914811, \"o\", \"\\r\\r\\n  p\\u001b[K\"]\n[7.91495, \"o\", \"e\"]\n[7.915093, \"o\", \"r\"]\n[7.915232, \"o\", \"s\"]\n[7.915469, \"o\", \"i\"]\n[7.91568, \"o\", \"s\"]\n[7.915823, \"o\", \"t\"]\n[7.915966, \"o\", \"e\"]\n[7.916117, \"o\", \"n\"]\n[7.91628, \"o\", \"t\"]\n[7.916462, \"o\", \"V\"]\n[7.916621, \"o\", \"o\"]\n[7.916769, \"o\", \"l\"]\n[7.916902, \"o\", \"u\"]\n[7.917047, \"o\", \"m\"]\n[7.917179, \"o\", \"e\"]\n[7.917318, \"o\", \":\"]\n[7.917491, \"o\", \"\\r\\r\\n    a\\u001b[K\"]\n[7.917646, \"o\", \"c\"]\n[7.917776, \"o\", \"c\"]\n[7.917932, \"o\", \"e\"]\n[7.918068, \"o\", \"s\"]\n[7.918217, \"o\", \"s\"]\n[7.918365, \"o\", \"M\"]\n[7.918509, \"o\", \"o\"]\n[7.918654, \"o\", \"d\"]\n[7.918814, \"o\", \"e\"]\n[7.918952, \"o\", \":\"]\n[7.91909, \"o\", \" R\"]\n[7.919243, \"o\", \"e\"]\n[7.919363, \"o\", \"a\"]\n[7.919651, \"o\", \"d\"]\n[7.919809, \"o\", \"W\"]\n[7.919979, \"o\", \"r\"]\n[7.92013, \"o\", \"i\"]\n[7.920262, \"o\", \"t\"]\n[7.920448, \"o\", \"e\"]\n[7.920596, \"o\", \"O\"]\n[7.920719, \"o\", \"n\"]\n[7.920871, \"o\", \"c\"]\n[7.921016, \"o\", \"e\"]\n[7.92116, \"o\", \"\\r\\r\\nE\\u001b[K\"]\n[7.921312, \"o\", \"\\rEO\"]\n[7.922561, \"o\", \"F\"]\n[7.922893, \"o\", \"\\u001b[9A\\b\\u001b[7mc\\u001b[7ma\\u001b[7mt\\u001b[7m \\u001b[7m<\\u001b[7m<\\u001b[7mE\\u001b[7mO\\u001b[7mF\\u001b[7m \\u001b[7m>\\u001b[7m>\\u001b[7m \\u001b[7mo\\u001b[7ml\\u001b[7ml\\u001b[7ma\\u001b[7mm\\u001b[7ma\\u001b[7m-\\u001b[7mm\\u001b[7mo\\u001b[7md\\u001b[7me\\u001b[7ml\\u001b[7m-\\u001b[7mp\\u001b[7mh\\u001b[7mi\\u001b[7m.\\u001b[7my\\u001b[7ma\\u001b[7mm\\u001b[7ml\\u001b[1B\\u001b[27m\\r\\u001b[7ma\\u001b[7mp\\u001b[7mi\\u001b[7mV\\u001b[7me\\u001b[7mr\\u001b[7ms\\u001b[7mi\\u001b[7mo\\u001b[7mn\\u001b[7m:\\u001b[7m \\u001b[7mo\\u001b[7ml\\u001b[7ml\\u001b[7ma\\u001b[7mm\\u001b[7ma\\u001b[7m.\\u001b[7ma\\u001b[7my\\u001b[7ma\\u001b[7mk\\u001b[7ma\\u001b[7m.\\u001b[7mi\\u001b[7mo\\u001b[7m/\\u001b[7mv\\u001b[7m1\\u001b[1B\\u001b[27m\\r\\u001b[7mk\\u001b[7mi\\u001b[7mn\\u001b[7md\\u001b[7m:\\u001b[7m \\u001b[7mM\\u001b[7mo\\u001b[7md\\u001b[7me\\u001b[7ml\\u001b[1B\\u001b[27m\\r\\u001b[7mm\\u001b[7me\\u001b[7mt\\u001b[7ma\\u001b[7md\\u001b[7ma\\u001b[7mt\\u001b[7ma\\u001b[7m:\\u001b[1B\\u001b[27m\\r\\u001b[7m \\u001b[7m \\u001b[7mn\\u001b[7ma\\u001b[7mm\\u001b[7me\\u001b[7m:\\u001b[7m \\u001b[7mp\\u001b[7mh\\u001b[7mi\\u001b[1B\\u001b[27m\\r\\u001b[7ms\\u001b[7mp\\u001b[7me\\u001b[7mc\\u001b[7m:\\u001b[1B\\u001b[27m\\r\\u001b[7m \\u001b[7m \\u001b[7mi\\u001b[7mm\\u001b[7ma\\u001b[7mg\\u001b[7me\\u001b[7m:\\u001b[7m \\u001b[7mp\\u001b[7mh\\u001b[7mi\\u001b[1B\\u001b[27m\\r\\u001b[7m \\u001b[7m \\u001b[7mp\\u001b[7me\\u001b[7mr\\u001b[7ms\\u001b[7mi\\u001b[7ms\\u001b[7mt\\u001b[7me\\u001b[7mn\\u001b[7mt\\u001b[7mV\\u001b[7mo\\u001b[7ml\\u001b[7mu\\u001b[7mm\\u001b[7me\\u001b[7m:\\u001b[1B\\u001b[27m\\r\\u001b[7m \\u001b[7m \\u001b[7m \\u001b[7m \\u001b[7ma\\u001b[7mc\\u001b[7mc\\u001b[7me\\u001b[7ms\\u001b[7ms\\u001b[7mM\\u001b[7mo\\u001b[7md\\u001b[7me\\u001b[7m:\\u001b[7m \\u001b[7mR\\u001b[7me\\u001b[7ma\\u001b[7md\\u001b[7mW\\u001b[7mr\\u001b[7mi\\u001b[7mt\\u001b[7me\\u001b[7mO\\u001b[7mn\\u001b[7mc\\u001b[7me\\u001b[1B\\u001b[27m\\r\\u001b[7mE\\u001b[7mO\\u001b[7mF\\u001b[27m\"]\n[8.199657, \"o\", \"\\u001b[9A\\b\\u001b[27mc\\u001b[27ma\\u001b[27mt\\u001b[27m \\u001b[27m<\\u001b[27m<\\u001b[27mE\\u001b[27mO\\u001b[27mF\\u001b[27m \\u001b[27m>\\u001b[27m>\\u001b[27m \\u001b[27mo\\u001b[27ml\\u001b[27ml\\u001b[27ma\\u001b[27mm\\u001b[27ma\\u001b[27m-\\u001b[27mm\\u001b[27mo\\u001b[27md\\u001b[27me\\u001b[27ml\\u001b[27m-\\u001b[27mp\\u001b[27mh\\u001b[27mi\\u001b[27m.\\u001b[27my\\u001b[27ma\\u001b[27mm\\u001b[27ml\\u001b[1B\\r\\u001b[27ma\\u001b[27mp\\u001b[27mi\\u001b[27mV\\u001b[27me\\u001b[27mr\\u001b[27ms\\u001b[27mi\\u001b[27mo\\u001b[27mn\\u001b[27m:\\u001b[27m \\u001b[27mo\\u001b[27ml\\u001b[27ml\\u001b[27ma\\u001b[27mm\\u001b[27ma\\u001b[27m.\\u001b[27ma\\u001b[27my\\u001b[27ma\\u001b[27mk\\u001b[27ma\\u001b[27m.\\u001b[27mi\\u001b[27mo\\u001b[27m/\\u001b[27mv\\u001b[27m1\\u001b[1B\\r\\u001b[27mk\\u001b[27mi\\u001b[27mn\\u001b[27md\\u001b[27m:\\u001b[27m \\u001b[27mM\\u001b[27mo\\u001b[27md\\u001b[27me\\u001b[27ml\\u001b[1B\\r\\u001b[27mm\\u001b[27me\\u001b[27mt\\u001b[27ma\\u001b[27md\\u001b[27ma\\u001b[27mt\\u001b[27ma\\u001b[27m:\\u001b[1B\\r\\u001b[27m \\u001b[27m \\u001b[27mn\\u001b[27ma\\u001b[27mm\\u001b[27me\\u001b[27m:\\u001b[27m \\u001b[27mp\\u001b[27mh\\u001b[27mi\\u001b[1B\\r\\u001b[27ms\\u001b[27mp\\u001b[27me\\u001b[27mc\\u001b[27m:\\u001b[1B\\r\\u001b[27m \\u001b[27m \\u001b[27mi\\u001b[27mm\\u001b[27ma\\u001b[27mg\\u001b[27me\\u001b[27m:\\u001b[27m \\u001b[27mp\\u001b[27mh\\u001b[27mi\\u001b[1B\\r\\u001b[27m \\u001b[27m \\u001b[27mp\\u001b[27me\\u001b[27mr\\u001b[27ms\\u001b[27mi\\u001b[27ms\\u001b[27mt\\u001b[27me\\u001b[27mn\\u001b[27mt\\u001b[27mV\\u001b[27mo\\u001b[27ml\\u001b[27mu\\u001b[27mm\\u001b[27me\\u001b[27m:\\u001b[1B\\r\\u001b[27m \\u001b[27m \\u001b[27m \\u001b[27m \\u001b[27ma\\u001b[27mc\\u001b[27mc\\u001b[27me\\u001b[27ms\\u001b[27ms\\u001b[27mM\\u001b[27mo\\u001b[27md\\u001b[27me\\u001b[27m:\\u001b[27m \\u001b[27mR\\u001b[27me\\u001b[27ma\\u001b[27md\\u001b[27mW\\u001b[27mr\\u001b[27mi\\u001b[27mt\\u001b[27me\\u001b[27mO\\u001b[27mn\\u001b[27mc\\u001b[27me\\u001b[1B\\r\\u001b[27mE\\u001b[27mO\\u001b[\"]\n[8.199683, \"o\", \"27mF\"]\n[8.200062, \"o\", \"\\u001b[?1l\\u001b>\\u001b[?2004l\\r\\r\\n\"]\n[8.299074, \"o\", \"\\r\\u001b[0m\\u001b[27m\\u001b[24m\\u001b[J\\r\\n\\u001b[1;36m☸ \\u001b[0m\\u001b[1;36mkind-kind\\u001b[0m in \\u001b[1;36m~\\u001b[0m \\r\\n\\u001b[1;32m❯\\u001b[0m \\u001b[K\"]\n[8.299158, \"o\", \"\\u001b[?1h\\u001b=\\u001b[?2004h\"]\n[11.950689, \"o\", \"k\"]\n[11.951389, \"o\", \"\\bkube\"]\n[11.951491, \"o\", \"c\"]\n[11.951683, \"o\", \"t\"]\n[11.951869, \"o\", \"l\"]\n[11.952075, \"o\", \" a\"]\n[11.952235, \"o\", \"p\"]\n[11.952384, \"o\", \"p\"]\n[11.952515, \"o\", \"l\"]\n[11.952664, \"o\", \"y\"]\n[11.952927, \"o\", \" -\"]\n[11.953052, \"o\", \"f\"]\n[11.953189, \"o\", \" o\"]\n[11.953344, \"o\", \"l\"]\n[11.953487, \"o\", \"l\"]\n[11.953746, \"o\", \"a\"]\n[11.953935, \"o\", \"m\"]\n[11.95419, \"o\", \"a\"]\n[11.954369, \"o\", \"-\"]\n[11.954539, \"o\", \"m\"]\n[11.954636, \"o\", \"o\"]\n[11.95477, \"o\", \"d\"]\n[11.954905, \"o\", \"e\"]\n[11.955049, \"o\", \"l\"]\n[11.955182, \"o\", \"-\"]\n[11.955405, \"o\", \"p\"]\n[11.955579, \"o\", \"h\"]\n[11.955753, \"o\", \"i\"]\n[11.955901, \"o\", \".\"]\n[11.956023, \"o\", \"y\"]\n[11.956143, \"o\", \"a\"]\n[11.956298, \"o\", \"m\"]\n[11.957238, \"o\", \"l\"]\n[11.957386, \"o\", \"\\u001b[38D\\u001b[7mk\\u001b[7mu\\u001b[7mb\\u001b[7me\\u001b[7mc\\u001b[7mt\\u001b[7ml\\u001b[7m \\u001b[7ma\\u001b[7mp\\u001b[7mp\\u001b[7ml\\u001b[7my\\u001b[7m \\u001b[7m-\\u001b[7mf\\u001b[7m \\u001b[7mo\\u001b[7ml\\u001b[7ml\\u001b[7ma\\u001b[7mm\\u001b[7ma\\u001b[7m-\\u001b[7mm\\u001b[7mo\\u001b[7md\\u001b[7me\\u001b[7ml\\u001b[7m-\\u001b[7mp\\u001b[7mh\\u001b[7mi\\u001b[7m.\\u001b[7my\\u001b[7ma\\u001b[7mm\\u001b[7ml\\u001b[27m\"]\n[12.188109, \"o\", \"\\u001b[38D\\u001b[27mk\\u001b[27mu\\u001b[27mb\\u001b[27me\\u001b[27mc\\u001b[27mt\\u001b[27ml\\u001b[27m \\u001b[27ma\\u001b[27mp\\u001b[27mp\\u001b[27ml\\u001b[27my\\u001b[27m \\u001b[27m-\\u001b[27mf\\u001b[27m \\u001b[27mo\\u001b[27ml\\u001b[27ml\\u001b[27ma\\u001b[27mm\\u001b[27ma\\u001b[27m-\\u001b[27mm\\u001b[27mo\\u001b[27md\\u001b[27me\\u001b[27ml\\u001b[27m-\\u001b[27mp\\u001b[27mh\\u001b[27mi\\u001b[27m.\\u001b[27my\\u001b[27ma\\u001b[27mm\\u001b[27ml\"]\n[12.188446, \"o\", \"\\u001b[?1l\\u001b>\\u001b[?2004l\\r\\r\\n\"]\n[12.476742, \"o\", \"model.ollama.ayaka.io/phi created\\r\\n\"]\n[12.564356, \"o\", \"\\r\\u001b[0m\\u001b[27m\\u001b[24m\\u001b[J\\r\\n\\u001b[1;36m☸ \\u001b[0m\\u001b[1;36mkind-kind\\u001b[0m in \\u001b[1;36m~\\u001b[0m \\r\\n\\u001b[1;32m❯\\u001b[0m \\u001b[K\"]\n[12.564883, \"o\", \"\\u001b[?1h\\u001b=\\u001b[?2004h\"]\n[15.835602, \"o\", \"k\"]\n[15.835785, \"o\", \"\\bku\"]\n[15.836202, \"o\", \"be\"]\n[15.836282, \"o\", \"c\"]\n[15.836561, \"o\", \"t\"]\n[15.836731, \"o\", \"l\"]\n[15.837105, \"o\", \" w\"]\n[15.837305, \"o\", \"a\"]\n[15.837499, \"o\", \"i\"]\n[15.837604, \"o\", \"t\"]\n[15.837873, \"o\", \" -\"]\n[15.838393, \"o\", \"-\"]\n[15.83883, \"o\", \"f\"]\n[15.839354, \"o\", \"o\"]\n[15.839596, \"o\", \"r\"]\n[15.840674, \"o\", \"=\"]\n[15.841032, \"o\", \"j\"]\n[15.841385, \"o\", \"s\"]\n[15.841757, \"o\", \"o\"]\n[15.842094, \"o\", \"n\"]\n[15.842602, \"o\", \"p\"]\n[15.842921, \"o\", \"a\"]\n[15.843291, \"o\", \"t\"]\n[15.843727, \"o\", \"h\"]\n[15.844603, \"o\", \"=\"]\n[15.845619, \"o\", \"'\"]\n[15.846061, \"o\", \"{\"]\n[15.846405, \"o\", \".\"]\n[15.846734, \"o\", \"s\"]\n[15.847003, \"o\", \"t\"]\n[15.847424, \"o\", \"a\"]\n[15.84767, \"o\", \"t\"]\n[15.8481, \"o\", \"u\"]\n[15.848466, \"o\", \"s\"]\n[15.848713, \"o\", \".\"]\n[15.848959, \"o\", \"r\"]\n[15.849246, \"o\", \"e\"]\n[15.849427, \"o\", \"a\"]\n[15.84972, \"o\", \"d\"]\n[15.850093, \"o\", \"y\"]\n[15.85039, \"o\", \"R\"]\n[15.850891, \"o\", \"e\"]\n[15.851423, \"o\", \"p\"]\n[15.85254, \"o\", \"l\"]\n[15.853263, \"o\", \"i\"]\n[15.853961, \"o\", \"c\"]\n[15.854366, \"o\", \"a\"]\n[15.854847, \"o\", \"s\"]\n[15.855292, \"o\", \"}\"]\n[15.855568, \"o\", \"'\"]\n[15.855904, \"o\", \"=\"]\n[15.856051, \"o\", \"1\"]\n[15.856245, \"o\", \" d\"]\n[15.856393, \"o\", \"e\"]\n[15.856552, \"o\", \"p\"]\n[15.856678, \"o\", \"l\"]\n[15.856811, \"o\", \"o\"]\n[15.856956, \"o\", \"y\"]\n[15.857119, \"o\", \"m\"]\n[15.857259, \"o\", \"e\"]\n[15.857396, \"o\", \"n\"]\n[15.857537, \"o\", \"t\"]\n[15.857674, \"o\", \"/\"]\n[15.857813, \"o\", \"o\"]\n[15.858069, \"o\", \"l\"]\n[15.858208, \"o\", \"l\"]\n[15.858362, \"o\", \"a\"]\n[15.858508, \"o\", \"m\"]\n[15.858648, \"o\", \"a\"]\n[15.858785, \"o\", \"-\"]\n[15.858926, \"o\", \"m\"]\n[15.859094, \"o\", \"o\"]\n[15.859258, \"o\", \"d\"]\n[15.859406, \"o\", \"e\"]\n[15.859582, \"o\", \"l\"]\n[15.859742, \"o\", \"-\"]\n[15.859896, \"o\", \"p\"]\n[15.860037, \"o\", \"h\"]\n[15.861219, \"o\", \"i\"]\n[15.861426, \"o\", \"\\u001b[83D\\u001b[7mk\\u001b[7mu\\u001b[7mb\\u001b[7me\\u001b[7mc\\u001b[7mt\\u001b[7ml\\u001b[7m \\u001b[7mw\\u001b[7ma\\u001b[7mi\\u001b[7mt\\u001b[7m \\u001b[7m-\\u001b[7m-\\u001b[7mf\\u001b[7mo\\u001b[7mr\\u001b[7m=\\u001b[7mj\\u001b[7ms\\u001b[7mo\\u001b[7mn\\u001b[7mp\\u001b[7ma\\u001b[7mt\\u001b[7mh\\u001b[7m=\\u001b[7m'\\u001b[7m{\\u001b[7m.\\u001b[7ms\\u001b[7mt\\u001b[7ma\\u001b[7mt\\u001b[7mu\\u001b[7ms\\u001b[7m.\\u001b[7mr\\u001b[7me\\u001b[7ma\\u001b[7md\\u001b[7my\\u001b[7mR\\u001b[7me\\u001b[7mp\\u001b[7ml\\u001b[7mi\\u001b[7mc\\u001b[7ma\\u001b[7ms\\u001b[7m}\\u001b[7m'\\u001b[7m=\\u001b[7m1\\u001b[7m \\u001b[7md\\u001b[7me\\u001b[7mp\\u001b[7ml\\u001b[7mo\\u001b[7my\\u001b[7mm\\u001b[7me\\u001b[7mn\\u001b[7mt\\u001b[7m/\\u001b[7mo\\u001b[7ml\\u001b[7ml\\u001b[7ma\\u001b[7mm\\u001b[7ma\\u001b[7m-\\u001b[7mm\\u001b[7mo\\u001b[7md\\u001b[7me\\u001b[7ml\\u001b[7m-\\u001b[7mp\\u001b[7mh\\u001b[7mi\\u001b[27m\"]\n[16.074127, \"o\", \"\\u001b[83D\\u001b[27mk\\u001b[27mu\\u001b[27mb\\u001b[27me\\u001b[27mc\\u001b[27mt\\u001b[27ml\\u001b[27m \\u001b[27mw\\u001b[27ma\\u001b[27mi\\u001b[27mt\\u001b[27m \\u001b[27m-\\u001b[27m-\\u001b[27mf\\u001b[27mo\\u001b[27mr\\u001b[27m=\\u001b[27mj\\u001b[27ms\\u001b[27mo\\u001b[27mn\\u001b[27mp\\u001b[27ma\\u001b[27mt\\u001b[27mh\\u001b[27m=\\u001b[27m'\\u001b[27m{\\u001b[27m.\\u001b[27ms\\u001b[27mt\\u001b[27ma\\u001b[27mt\\u001b[27mu\\u001b[27ms\\u001b[27m.\\u001b[27mr\\u001b[27me\\u001b[27ma\\u001b[27md\\u001b[27my\\u001b[27mR\\u001b[27me\\u001b[27mp\\u001b[27ml\\u001b[27mi\\u001b[27mc\\u001b[27ma\\u001b[27ms\\u001b[27m}\\u001b[27m'\\u001b[27m=\\u001b[27m1\\u001b[27m \\u001b[27md\\u001b[27me\\u001b[27mp\\u001b[27ml\\u001b[27mo\\u001b[27my\\u001b[27mm\\u001b[27me\\u001b[27mn\\u001b[27mt\\u001b[27m/\\u001b[27mo\\u001b[27ml\\u001b[27ml\\u001b[27ma\\u001b[27mm\\u001b[27ma\\u001b[27m-\\u001b[27mm\\u001b[27mo\\u001b[27md\\u001b[27me\\u001b[27ml\\u001b[27m-\\u001b[27mp\\u001b[27mh\\u001b[27mi\"]\n[16.074982, \"o\", \"\\u001b[?1l\\u001b>\"]\n[16.07505, \"o\", \"\\u001b[?2004l\\r\\r\\n\"]\n[49.338476, \"o\", \"\\u001b[?1l\\u001b>\"]\n[53.279782, \"o\", \"deployment.apps/ollama-model-phi condition met\\r\\n\"]\n[53.343232, \"o\", \"\\r\\u001b[0m\\u001b[27m\\u001b[24m\\u001b[J\\r\\n\\u001b[1;36m☸ \\u001b[0m\\u001b[1;36mkind-kind\\u001b[0m in \\u001b[1;36m~\\u001b[0m took \\u001b[1;33m3s\\u001b[0m \\r\\n\\u001b[1;32m❯\\u001b[0m \\u001b[K\"]\n[53.343375, \"o\", \"\\u001b[?1h\\u001b=\\u001b[?2004h\"]\n[55.14026, \"o\", \"k\"]\n[55.140537, \"o\", \"\\bku\"]\n[55.140995, \"o\", \"b\"]\n[55.141376, \"o\", \"e\"]\n[55.141691, \"o\", \"c\"]\n[55.141822, \"o\", \"t\"]\n[55.141964, \"o\", \"l\"]\n[55.142143, \"o\", \" e\"]\n[55.142292, \"o\", \"x\"]\n[55.142416, \"o\", \"p\"]\n[55.142561, \"o\", \"o\"]\n[55.142917, \"o\", \"s\"]\n[55.143149, \"o\", \"e\"]\n[55.143315, \"o\", \" d\"]\n[55.143457, \"o\", \"e\"]\n[55.143605, \"o\", \"p\"]\n[55.143736, \"o\", \"l\"]\n[55.143868, \"o\", \"o\"]\n[55.144001, \"o\", \"y\"]\n[55.144331, \"o\", \"m\"]\n[55.144593, \"o\", \"e\"]\n[55.144864, \"o\", \"n\"]\n[55.14503, \"o\", \"t\"]\n[55.145261, \"o\", \" o\"]\n[55.145435, \"o\", \"l\"]\n[55.145611, \"o\", \"l\"]\n[55.145784, \"o\", \"a\"]\n[55.145948, \"o\", \"m\"]\n[55.146081, \"o\", \"a\"]\n[55.146222, \"o\", \"-\"]\n[55.146362, \"o\", \"m\"]\n[55.146506, \"o\", \"o\"]\n[55.146641, \"o\", \"d\"]\n[55.146781, \"o\", \"e\"]\n[55.14693, \"o\", \"l\"]\n[55.147062, \"o\", \"-\"]\n[55.147187, \"o\", \"p\"]\n[55.147336, \"o\", \"h\"]\n[55.147462, \"o\", \"i\"]\n[55.147621, \"o\", \" -\"]\n[55.147747, \"o\", \"-\"]\n[55.147879, \"o\", \"n\"]\n[55.148012, \"o\", \"a\"]\n[55.148143, \"o\", \"m\"]\n[55.148284, \"o\", \"e\"]\n[55.148596, \"o\", \"=\"]\n[55.148742, \"o\", \"o\"]\n[55.148871, \"o\", \"l\"]\n[55.149029, \"o\", \"l\"]\n[55.149138, \"o\", \"a\"]\n[55.149275, \"o\", \"m\"]\n[55.149416, \"o\", \"a\"]\n[55.149882, \"o\", \"-\"]\n[55.150075, \"o\", \"m\"]\n[55.150223, \"o\", \"o\"]\n[55.150364, \"o\", \"d\"]\n[55.150489, \"o\", \"e\"]\n[55.150675, \"o\", \"l\"]\n[55.150835, \"o\", \"-\"]\n[55.151032, \"o\", \"p\"]\n[55.151191, \"o\", \"h\"]\n[55.151341, \"o\", \"i\"]\n[55.151487, \"o\", \"-\"]\n[55.151616, \"o\", \"n\"]\n[55.151777, \"o\", \"o\"]\n[55.151938, \"o\", \"d\"]\n[55.15208, \"o\", \"e\"]\n[55.152224, \"o\", \"p\"]\n[55.152362, \"o\", \"o\"]\n[55.152498, \"o\", \"r\"]\n[55.152637, \"o\", \"t\"]\n[55.152774, \"o\", \" -\"]\n[55.152906, \"o\", \"-\"]\n[55.153019, \"o\", \"t\"]\n[55.153148, \"o\", \"y\"]\n[55.153285, \"o\", \"p\"]\n[55.153424, \"o\", \"e\"]\n[55.153779, \"o\", \"=\"]\n[55.153942, \"o\", \"N\"]\n[55.15409, \"o\", \"o\"]\n[55.154233, \"o\", \"d\"]\n[55.154374, \"o\", \"e\"]\n[55.154516, \"o\", \"P\"]\n[55.154656, \"o\", \"o\"]\n[55.154798, \"o\", \"r\"]\n[55.154939, \"o\", \"t\"]\n[55.155085, \"o\", \" -\"]\n[55.155241, \"o\", \"-\"]\n[55.155362, \"o\", \"p\"]\n[55.155497, \"o\", \"o\"]\n[55.155639, \"o\", \"r\"]\n[55.155773, \"o\", \"t\"]\n[55.155915, \"o\", \" 1\"]\n[55.156051, \"o\", \"1\"]\n[55.156371, \"o\", \"4\"]\n[55.156599, \"o\", \"3\"]\n[55.157964, \"o\", \"4\"]\n[55.333403, \"o\", \"\\u001b[?1l\\u001b>\\u001b[?2004l\\r\\r\\n\"]\n[55.491623, \"o\", \"service/ollama-model-phi-nodeport exposed\\r\\n\"]\n[55.536465, \"o\", \"\\r\\u001b[0m\\u001b[27m\\u001b[24m\\u001b[J\\r\\n\\u001b[1;36m☸ \\u001b[0m\\u001b[1;36mkind-kind\\u001b[0m in \\u001b[1;36m~\\u001b[0m \\r\\n\\u001b[1;32m❯\\u001b[0m \\u001b[K\"]\n[55.536813, \"o\", \"\\u001b[?1h\\u001b=\\u001b[?2004h\"]\n[59.034039, \"o\", \"k\"]\n[59.034204, \"o\", \"u\"]\n[59.034645, \"o\", \"be\"]\n[59.03484, \"o\", \"c\"]\n[59.034991, \"o\", \"t\"]\n[59.035154, \"o\", \"l\"]\n[59.035303, \"o\", \" p\"]\n[59.035546, \"o\", \"a\"]\n[59.03573, \"o\", \"t\"]\n[59.035888, \"o\", \"c\"]\n[59.036403, \"o\", \"h\"]\n[59.036615, \"o\", \" s\"]\n[59.036782, \"o\", \"e\"]\n[59.036947, \"o\", \"r\"]\n[59.037113, \"o\", \"v\"]\n[59.037241, \"o\", \"i\"]\n[59.037382, \"o\", \"c\"]\n[59.037529, \"o\", \"e\"]\n[59.037684, \"o\", \" o\"]\n[59.037826, \"o\", \"l\"]\n[59.037974, \"o\", \"l\"]\n[59.038114, \"o\", \"a\"]\n[59.038258, \"o\", \"m\"]\n[59.038399, \"o\", \"a\"]\n[59.038541, \"o\", \"-\"]\n[59.038684, \"o\", \"m\"]\n[59.038826, \"o\", \"o\"]\n[59.039002, \"o\", \"d\"]\n[59.039121, \"o\", \"e\"]\n[59.039508, \"o\", \"l\"]\n[59.039749, \"o\", \"-\"]\n[59.039994, \"o\", \"p\"]\n[59.040171, \"o\", \"h\"]\n[59.040333, \"o\", \"i\"]\n[59.040583, \"o\", \"-\"]\n[59.040736, \"o\", \"n\"]\n[59.04089, \"o\", \"o\"]\n[59.041042, \"o\", \"d\"]\n[59.041271, \"o\", \"e\"]\n[59.041449, \"o\", \"p\"]\n[59.041922, \"o\", \"o\"]\n[59.042119, \"o\", \"r\"]\n[59.042282, \"o\", \"t\"]\n[59.042455, \"o\", \" -\"]\n[59.042605, \"o\", \"-\"]\n[59.042755, \"o\", \"t\"]\n[59.042912, \"o\", \"y\"]\n[59.043175, \"o\", \"p\"]\n[59.043336, \"o\", \"e\"]\n[59.043689, \"o\", \"=\"]\n[59.043968, \"o\", \"'\"]\n[59.044114, \"o\", \"j\"]\n[59.044376, \"o\", \"s\"]\n[59.044558, \"o\", \"o\"]\n[59.044714, \"o\", \"n\"]\n[59.044873, \"o\", \"'\"]\n[59.045034, \"o\", \" -\"]\n[59.045179, \"o\", \"-\"]\n[59.04532, \"o\", \"p\"]\n[59.045461, \"o\", \"a\"]\n[59.045621, \"o\", \"t\"]\n[59.045764, \"o\", \"c\"]\n[59.045908, \"o\", \"h\"]\n[59.04622, \"o\", \"=\"]\n[59.04656, \"o\", \"'\"]\n[59.046736, \"o\", \"[\"]\n[59.046905, \"o\", \"{\"]\n[59.04707, \"o\", \"\\\"\"]\n[59.047286, \"o\", \"o\"]\n[59.047441, \"o\", \"p\"]\n[59.047598, \"o\", \"\\\"\"]\n[59.047745, \"o\", \":\"]\n[59.047914, \"o\", \" \\\"\"]\n[59.048058, \"o\", \"r\"]\n[59.04825, \"o\", \"e\"]\n[59.048715, \"o\", \"p\"]\n[59.04878, \"o\", \"l\"]\n[59.048984, \"o\", \"a\"]\n[59.049262, \"o\", \"c\"]\n[59.0495, \"o\", \"e\"]\n[59.04977, \"o\", \"\\\"\"]\n[59.050055, \"o\", \",\"]\n[59.050415, \"o\", \" \\\"\"]\n[59.050691, \"o\", \"p\"]\n[59.050954, \"o\", \"a\"]\n[59.05124, \"o\", \"t\"]\n[59.05147, \"o\", \"h\"]\n[59.051826, \"o\", \"\\\"\"]\n[59.052297, \"o\", \":\"]\n[59.052665, \"o\", \" \\\"\"]\n[59.053823, \"o\", \"/\"]\n[59.054403, \"o\", \"s\"]\n[59.054807, \"o\", \"p\"]\n[59.05527, \"o\", \"e\"]\n[59.055522, \"o\", \"c\"]\n[59.056124, \"o\", \"/\"]\n[59.058769, \"o\", \"p\"]\n[59.059764, \"o\", \"or \\r\\u001b[K\"]\n[59.060297, \"o\", \"t\"]\n[59.060458, \"o\", \"\\rts\"]\n[59.061391, \"o\", \"/\"]\n[59.062127, \"o\", \"0\"]\n[59.062568, \"o\", \"/\"]\n[59.063324, \"o\", \"n\"]\n[59.064002, \"o\", \"o\"]\n[59.065116, \"o\", \"d\"]\n[59.065456, \"o\", \"e\"]\n[59.065832, \"o\", \"P\"]\n[59.06639, \"o\", \"o\"]\n[59.066723, \"o\", \"r\"]\n[59.067028, \"o\", \"t\"]\n[59.067414, \"o\", \"\\\"\"]\n[59.06774, \"o\", \",\"]\n[59.069333, \"o\", \" \\\"\"]\n[59.069803, \"o\", \"v\"]\n[59.070325, \"o\", \"a\"]\n[59.071206, \"o\", \"l\"]\n[59.073811, \"o\", \"u\"]\n[59.07495, \"o\", \"e\"]\n[59.07616, \"o\", \"\\\"\"]\n[59.076961, \"o\", \":\"]\n[59.077271, \"o\", \"3\"]\n[59.077774, \"o\", \"0\"]\n[59.078325, \"o\", \"1\"]\n[59.078749, \"o\", \"0\"]\n[59.079629, \"o\", \"1\"]\n[59.079897, \"o\", \"}\"]\n[59.08015, \"o\", \"]\"]\n[59.082624, \"o\", \"'\"]\n[59.082821, \"o\", \"\\u001b[A\\u001b[30D\\u001b[7mk\\u001b[7mu\\u001b[7mb\\u001b[7me\\u001b[7mc\\u001b[7mt\\u001b[7ml\\u001b[7m \\u001b[7mp\\u001b[7ma\\u001b[7mt\\u001b[7mc\\u001b[7mh\\u001b[7m \\u001b[7ms\\u001b[7me\\u001b[7mr\\u001b[7mv\\u001b[7mi\\u001b[7mc\\u001b[7me\\u001b[7m \\u001b[7mo\\u001b[7ml\\u001b[7ml\\u001b[7ma\\u001b[7mm\\u001b[7ma\\u001b[7m-\\u001b[7mm\\u001b[7mo\\u001b[7md\\u001b[7me\\u001b[7ml\\u001b[7m-\\u001b[7mp\\u001b[7mh\\u001b[7mi\\u001b[7m-\\u001b[7mn\\u001b[7mo\\u001b[7md\\u001b[7me\\u001b[7mp\\u001b[7mo\\u001b[7mr\\u001b[7mt\\u001b[7m \\u001b[7m-\\u001b[7m-\\u001b[7mt\\u001b[7my\\u001b[7mp\\u001b[7me\\u001b[7m=\\u001b[7m'\\u001b[7mj\\u001b[7ms\\u001b[7mo\\u001b[7mn\\u001b[7m'\\u001b[7m \\u001b[7m-\\u001b[7m-\\u001b[7mp\\u001b[7ma\\u001b[7mt\\u001b[7mc\\u001b[7mh\\u001b[7m=\\u001b[7m'\\u001b[7m[\\u001b[7m{\\u001b[7m\\\"\\u001b[7mo\\u001b[7mp\\u001b[7m\\\"\\u001b[7m:\\u001b[7m \\u001b[7m\\\"\\u001b[7mr\\u001b[7me\\u001b[7mp\\u001b[7ml\\u001b[7ma\\u001b[7mc\\u001b[7me\\u001b[7m\\\"\\u001b[7m,\\u001b[7m \\u001b[7m\\\"\\u001b[7mp\\u001b[7ma\\u001b[7mt\\u001b[7mh\\u001b[7m\\\"\\u001b[7m:\\u001b[7m \\u001b[7m\\\"\\u001b[7m/\\u001b[7ms\\u001b[7mp\\u001b[7me\\u001b[7mc\\u001b[7m/\\u001b[7mp\\u001b[7mo\\u001b[7mr\\u001b[7mt\\u001b[7ms\\u001b[7m/\\u001b[7m0\\u001b[7m/\\u001b[7mn\\u001b[7mo\\u001b[7md\\u001b[7me\\u001b[7mP\\u001b[7mo\\u001b[7mr\\u001b[7mt\\u001b[7m\\\"\\u001b[7m,\\u001b[7m \\u001b[7m\\\"\\u001b[7mv\\u001b[7ma\\u001b[7ml\\u001b[7mu\\u001b[7me\\u001b[7m\\\"\\u001b[7m:\\u001b[7m3\\u001b[7m0\\u001b[7m1\\u001b[7m0\\u001b[7m1\\u001b[7m}\\u001b[7m]\\u001b[7m'\\u001b[27m\"]\n[59.213713, \"o\", \"\\u001b[A\\u001b[30D\\u001b[27mk\\u001b[27mu\\u001b[27mb\\u001b[27me\\u001b[27mc\\u001b[27mt\\u001b[27ml\\u001b[27m \\u001b[27mp\\u001b[27ma\\u001b[27mt\\u001b[27mc\\u001b[27mh\\u001b[27m \\u001b[27ms\\u001b[27me\\u001b[27mr\\u001b[27mv\\u001b[27mi\\u001b[27mc\\u001b[27me\\u001b[27m \\u001b[27mo\\u001b[27ml\\u001b[27ml\\u001b[27ma\\u001b[27mm\\u001b[27ma\\u001b[27m-\\u001b[27mm\\u001b[27mo\\u001b[27md\\u001b[27me\\u001b[27ml\\u001b[27m-\\u001b[27mp\\u001b[27mh\\u001b[27mi\\u001b[27m-\\u001b[27mn\\u001b[27mo\\u001b[27md\\u001b[27me\\u001b[27mp\\u001b[27mo\\u001b[27mr\\u001b[27mt\\u001b[27m \\u001b[27m-\\u001b[27m-\\u001b[27mt\\u001b[27my\\u001b[27mp\\u001b[27me\\u001b[27m=\\u001b[27m'\\u001b[27mj\\u001b[27ms\\u001b[27mo\\u001b[27mn\\u001b[27m'\\u001b[27m \\u001b[27m-\\u001b[27m-\\u001b[27mp\\u001b[27ma\\u001b[27mt\\u001b[27mc\\u001b[27mh\\u001b[27m=\\u001b[27m'\\u001b[27m[\\u001b[27m{\\u001b[27m\\\"\\u001b[27mo\\u001b[27mp\\u001b[27m\\\"\\u001b[27m:\\u001b[27m \\u001b[27m\\\"\\u001b[27mr\\u001b[27me\\u001b[27mp\\u001b[27ml\\u001b[27ma\\u001b[27mc\\u001b[27me\\u001b[27m\\\"\\u001b[27m,\\u001b[27m \\u001b[27m\\\"\\u001b[27mp\\u001b[27ma\\u001b[27mt\\u001b[27mh\\u001b[27m\\\"\\u001b[27m:\\u001b[27m \\u001b[27m\\\"\\u001b[27m/\\u001b[27ms\\u001b[27mp\\u001b[27me\\u001b[27mc\\u001b[27m/\\u001b[27mp\\u001b[27mo\\u001b[27mrt\\u001b[27ms\\u001b[27m/\\u001b[27m0\\u001b[27m/\\u001b[27mn\\u001b[27mo\\u001b[27md\\u001b[27me\\u001b[27mP\\u001b[27mo\\u001b[27mr\\u001b[27mt\\u001b[27m\\\"\\u001b[27m,\\u001b[27m \\u001b[27m\\\"\\u001b[27mv\\u001b[27ma\\u001b[27ml\\u001b[27mu\\u001b[27me\\u001b[27m\\\"\\u001b[27m:\\u001b[27m3\\u001b[27m0\\u001b[27m1\\u001b[27m0\\u001b[27m1\\u001b[27m}\\u001b[27m]\\u001b[27m'\"]\n[59.214037, \"o\", \"\\u001b[?1l\\u001b>\\u001b[?2004l\\r\\r\\n\"]\n[59.355262, \"o\", \"service/ollama-model-phi-nodeport patched\\r\\n\"]\n[59.410288, \"o\", \"\\r\\u001b[0m\\u001b[27m\\u001b[24m\\u001b[J\\r\\n\\u001b[1;36m☸ \\u001b[0m\\u001b[1;36mkind-kind\\u001b[0m in \\u001b[1;36m~\\u001b[0m \\r\\n\\u001b[1;32m❯\\u001b[0m \"]\n[59.410315, \"o\", \"\\u001b[K\"]\n[59.41042, \"o\", \"\\u001b[?1h\\u001b=\\u001b[?2004h\"]\n[60.380405, \"o\", \"o\"]\n[60.416705, \"o\", \"\\bo\\u001b[90mllama run phi\\u001b[39m\\u001b[13D\"]\n[60.787298, \"o\", \"\\bo\\u001b[39ml\"]\n[61.084642, \"o\", \"\\u001b[39ml\\u001b[39ma\\u001b[39mm\\u001b[39ma\\u001b[39m \\u001b[39mr\\u001b[39mu\\u001b[39mn\\u001b[39m \\u001b[39mp\\u001b[39mh\\u001b[39mi\"]\n[61.274937, \"o\", \"\\u001b[?1l\\u001b>\\u001b[?2004l\\r\\r\\n\"]\n[61.378973, \"o\", \"Error: could not connect to ollama app, is it running?\\r\\n\"]\n[61.719227, \"o\", \"\\r\\u001b[0m\\u001b[27m\\u001b[24m\\u001b[J\\r\\n\\u001b[1;36m☸ \\u001b[0m\\u001b[1;36mkind-kind\\u001b[0m in \\u001b[1;36m~\\u001b[0m \\r\\n\\u001b[1;31m❯\\u001b[0m \\u001b[K\"]\n[61.719339, \"o\", \"\\u001b[?1h\\u001b=\\u001b[?2004h\"]\n[62.15444, \"o\", \"I\"]\n[62.630113, \"o\", \"\\b \\b\"]\n[62.863134, \"o\", \"O\"]\n[62.902026, \"o\", \"\\bO\\u001b[90mLLAMA_HOST=localhost:30101 ollama run phi\\u001b[39m\\u001b[41D\"]\n[63.216957, \"o\", \"\\bO\\u001b[39mL\\u001b[39mL\\u001b[39mA\\u001b[39mM\\u001b[39mA\\u001b[39m_\\u001b[39mH\\u001b[39mO\\u001b[39mS\\u001b[39mT\\u001b[39m=\\u001b[39ml\\u001b[39mo\\u001b[39mc\\u001b[39ma\\u001b[39ml\\u001b[39mh\\u001b[39mo\\u001b[39ms\\u001b[39mt\\u001b[39m:\\u001b[39m3\\u001b[39m0\\u001b[39m1\\u001b[39m0\\u001b[39m1\\u001b[39m \\u001b[39mo\\u001b[39ml\\u001b[39ml\\u001b[39ma\\u001b[39mm\\u001b[39ma\\u001b[39m \\u001b[39mr\\u001b[39mu\\u001b[39mn\\u001b[39m \\u001b[39mp\\u001b[39mh\\u001b[39mi\"]\n[63.984436, \"o\", \"\\u001b[?1l\\u001b>\\u001b[?2004l\\r\\r\\n\"]\n[64.16388, \"o\", \"\\u001b[?25l⠙ \\u001b[?25h\"]\n[64.264736, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠹ \\u001b[?25h\"]\n[64.364167, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠸ \\u001b[?25h\"]\n[64.465748, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠼ \\u001b[?25h\"]\n[64.565266, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠴ \\u001b[?25h\"]\n[64.665256, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠴ \\u001b[?25h\"]\n[64.765624, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠧ \\u001b[?25h\"]\n[64.864833, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠧ \\u001b[?25h\"]\n[64.964881, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠏ \\u001b[?25h\"]\n[65.06505, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠋ \\u001b[?25h\"]\n[65.164749, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠙ \\u001b[?25h\"]\n[65.265407, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠙ \\u001b[?25h\"]\n[65.364843, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠸ \\u001b[?25h\"]\n[65.464657, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠼ \\u001b[?25h\"]\n[65.564721, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠼ \\u001b[?25h\"]\n[65.664709, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠦ \\u001b[?25h\"]\n[65.765023, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠦ \\u001b[?25h\"]\n[65.864256, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠇ \\u001b[?25h\"]\n[65.964734, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G\"]\n[65.96493, \"o\", \"⠏ \\u001b[?25h\"]\n[66.065833, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G\"]\n[66.065897, \"o\", \"⠋ \\u001b[?25h\"]\n[66.164805, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠙ \\u001b[?25h\"]\n[66.264718, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠹ \\u001b[?25h\"]\n[66.364777, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠸ \\u001b[?25h\"]\n[66.464608, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠼ \\u001b[?25h\"]\n[66.564723, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠴ \\u001b[?25h\"]\n[66.664785, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠦ \\u001b[?25h\"]\n[66.764869, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠦ \\u001b[?25h\"]\n[66.8647, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠧ \\u001b[?25h\"]\n[66.964683, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠏ \\u001b[?25h\"]\n[67.064731, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠋ \\u001b[?25h\"]\n[67.164256, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠙ \\u001b[?25h\"]\n[67.265138, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠹ \\u001b[?25h\"]\n[67.364776, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠸ \\u001b[?25h\"]\n[67.464235, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠼ \\u001b[?25h\"]\n[67.564793, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠴ \\u001b[?25h\"]\n[67.665254, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠦ \\u001b[?25h\"]\n[67.764729, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠧ \\u001b[?25h\"]\n[67.864913, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠇ \\u001b[?25h\"]\n[67.964739, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠏ \\u001b[?25h\"]\n[68.063928, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠋ \\u001b[?25h\"]\n[68.164706, \"o\", \"\\u001b[?25l\"]\n[68.164762, \"o\", \"\\u001b[2K\\u001b[1G⠙ \\u001b[?25h\"]\n[68.264033, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠹ \\u001b[?25h\"]\n[68.36428, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠹ \\u001b[?25h\"]\n[68.449427, \"o\", \"\\u001b[?25l\\u001b[?25l\\u001b[2K\\u001b[1G\\u001b[?25h\\u001b[2K\\u001b[1G\\u001b[?25h\\u001b[?25l\\u001b[?25h\"]\n[68.460161, \"o\", \"\\u001b[?2004h>>> \"]\n[68.46032, \"o\", \"\\u001b[38;5;245mSend a message (/? for help)\\u001b[28D\\u001b[0m\"]\n[74.581182, \"o\", \"\\u001b[KH\"]\n[74.8631, \"o\", \"i\"]\n[75.51163, \"o\", \"!\"]\n[75.79895, \"o\", \"\\r\\n\"]\n[75.899571, \"o\", \"\\u001b[?25l⠙ \\u001b[?25h\"]\n[75.999825, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠙ \\u001b[?25h\"]\n[76.10013, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠸ \\u001b[?25h\"]\n[76.200466, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠸ \\u001b[?25h\"]\n[76.302196, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠴ \\u001b[?25h\"]\n[76.400096, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠦ \\u001b[?25h\"]\n[76.500444, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠧ \\u001b[?25h\"]\n[76.600486, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠇ \\u001b[?25h\"]\n[76.699788, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠇ \\u001b[?25h\"]\n[76.800729, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠋ \\u001b[?25h\"]\n[76.900033, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠋ \\u001b[?25h\"]\n[77.000132, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠙ \\u001b[?25h\"]\n[77.100446, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠹ \\u001b[?25h\"]\n[77.199924, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠼ \\u001b[?25h\"]\n[77.30043, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠼ \\u001b[?25h\"]\n[77.401431, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠦ \\u001b[?25h\"]\n[77.501384, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠧ \\u001b[?25h\"]\n[77.600522, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠇ \\u001b[?25h\"]\n[77.700582, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠏ \\u001b[?25h\"]\n[77.800488, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠋ \\u001b[?25h\"]\n[77.900446, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠋ \\u001b[?25h\"]\n[78.000082, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠙ \\u001b[?25h\"]\n[78.100262, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠸ \\u001b[?25h\"]\n[78.200502, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠼ \\u001b[?25h\"]\n[78.301059, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠴ \\u001b[?25h\"]\n[78.400492, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠦ \\u001b[?25h\"]\n[78.499891, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠧ \\u001b[?25h\"]\n[78.599927, \"o\", \"\\u001b[?25l\"]\n[78.600165, \"o\", \"\\u001b[2K\\u001b[1G⠇ \\u001b[?25h\"]\n[78.700449, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠏ \\u001b[?25h\"]\n[78.808563, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G\"]\n[78.808909, \"o\", \"⠏ \\u001b[?25h\"]\n[78.900453, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠋ \\u001b[?25h\"]\n[78.950356, \"o\", \"\\u001b[?25l\\u001b[?25l\\u001b[2K\\u001b[1G\\u001b[?25h\\u001b[2K\\u001b[1G\\u001b[?25h Hello\"]\n[79.951545, \"o\", \"\\u001b[?25l\\u001b[?25h there\"]\n[80.028471, \"o\", \"\\u001b[?25l\\u001b[?25h!\"]\n[80.116375, \"o\", \"\\u001b[?25l\\u001b[?25h How\"]\n[80.204193, \"o\", \"\\u001b[?25l\\u001b[?25h can\"]\n[80.317123, \"o\", \"\\u001b[?25l\\u001b[?25h I\"]\n[80.406139, \"o\", \"\\u001b[?25l\\u001b[?25h assist\"]\n[80.524683, \"o\", \"\\u001b[?25l\\u001b[?25h you\"]\n[80.617276, \"o\", \"\\u001b[?25l\\u001b[?25h today\"]\n[80.700775, \"o\", \"\\u001b[?25l\\u001b[?25h?\"]\n[80.793289, \"o\", \"\\u001b[?25l\\u001b[?25h\\r\\n\"]\n[80.911231, \"o\", \"\\u001b[?25l\\u001b[?25h\\r\\n\\r\\n\\u001b[?25l\\u001b[?25h>>> \\u001b[38;5;245mSend a message (/? for help)\\u001b[28D\\u001b[0m\"]\n[86.04852, \"o\", \"\\u001b[KW\"]\n[86.214852, \"o\", \"h\"]\n[86.333596, \"o\", \"a\"]\n[86.44607, \"o\", \"t\"]\n[86.565671, \"o\", \" \"]\n[86.926051, \"o\", \"c\"]\n[87.030966, \"o\", \"a\"]\n[87.114276, \"o\", \"n\"]\n[87.231834, \"o\", \" \"]\n[87.398914, \"o\", \"y\"]\n[87.544008, \"o\", \"o\"]\n[87.678841, \"o\", \"u\"]\n[87.770492, \"o\", \" \"]\n[87.993757, \"o\", \"d\"]\n[88.135548, \"o\", \"o\"]\n[88.551524, \"o\", \"?\"]\n[88.784155, \"o\", \"\\r\\n\"]\n[88.886963, \"o\", \"\\u001b[?25l⠙ \\u001b[?25h\"]\n[88.985287, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠹ \\u001b[?25h\"]\n[89.085744, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠸ \\u001b[?25h\"]\n[89.18463, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠼ \\u001b[?25h\"]\n[89.285601, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠴ \\u001b[?25h\"]\n[89.385607, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠦ \\u001b[?25h\"]\n[89.485835, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠧ \\u001b[?25h\"]\n[89.58582, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠇ \\u001b[?25h\"]\n[89.686059, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠏ \\u001b[?25h\"]\n[89.785606, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠋ \\u001b[?25h\"]\n[89.884863, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠙ \\u001b[?25h\"]\n[89.985589, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠹ \\u001b[?25h\"]\n[90.085652, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠸ \\u001b[?25h\"]\n[90.185615, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠼ \\u001b[?25h\"]\n[90.188514, \"o\", \"\\u001b[?25l\\u001b[?25l\\u001b[2K\\u001b[1G\\u001b[?25h\\u001b[2K\\u001b[1G\\u001b[?25h I\"]\n[90.285909, \"o\", \"\\u001b[?25l\\u001b[?25h can\"]\n[90.368788, \"o\", \"\\u001b[?25l\\u001b[?25h perform\"]\n[90.442946, \"o\", \"\\u001b[?25l\\u001b[?25h various\"]\n[90.520564, \"o\", \"\\u001b[?25l\\u001b[?25h tasks\"]\n[90.597803, \"o\", \"\\u001b[?25l\\u001b[?25h,\"]\n[90.679702, \"o\", \"\\u001b[?25l\\u001b[?25h such\"]\n[90.74832, \"o\", \"\\u001b[?25l\\u001b[?25h as\"]\n[90.822876, \"o\", \"\\u001b[?25l\\u001b[?25h answering\"]\n[90.899646, \"o\", \"\\u001b[?25l\\u001b[?25h your\"]\n[90.984768, \"o\", \"\\u001b[?25l\\u001b[?25h questions\"]\n[91.069856, \"o\", \"\\u001b[?25l\\u001b[?25h,\"]\n[91.144465, \"o\", \"\\u001b[?25l\\u001b[?25h providing\"]\n[91.218863, \"o\", \"\\u001b[?25l\\u001b[?25h information\"]\n[91.296436, \"o\", \"\\u001b[?25l\\u001b[?25h,\"]\n[91.369241, \"o\", \"\\u001b[?25l\\u001b[?25h setting\"]\n[91.494313, \"o\", \"\\u001b[?25l\\u001b[?25h reminders\"]\n[91.664758, \"o\", \"\\u001b[?25l\\u001b[?25h,\"]\n[91.811355, \"o\", \"\\u001b[?25l\\u001b[?25h\\u001b[10D\\u001b[K\\r\\nreminders, making\"]\n[91.924665, \"o\", \"\\u001b[?25l\\u001b[?25h suggestions\"]\n[92.040276, \"o\", \"\\u001b[?25l\\u001b[?25h,\"]\n[92.140408, \"o\", \"\\u001b[?25l\\u001b[?25h and\"]\n[92.250249, \"o\", \"\\u001b[?25l\\u001b[?25h more\"]\n[92.344866, \"o\", \"\\u001b[?25l\\u001b[?25h!\"]\n[92.421219, \"o\", \"\\u001b[?25l\\u001b[?25h what\"]\n[92.495239, \"o\", \"\\u001b[?25l\\u001b[?25h specifically\"]\n[92.568647, \"o\", \"\\u001b[?25l\\u001b[?25h would\"]\n[92.774953, \"o\", \"\\u001b[?25l\\u001b[?25h you\"]\n[93.335819, \"o\", \"\\u001b[?25l\\u001b[?25h like\"]\n[93.583142, \"o\", \"\\u001b[?25l\\u001b[?25h to\"]\n[93.888234, \"o\", \"\\u001b[?25l\\u001b[?25h know\"]\n[94.033982, \"o\", \"\\u001b[?25l\\u001b[?25h or\"]\n[94.144094, \"o\", \"\\u001b[?25l\\u001b[?25h accomplish\"]\n[94.229157, \"o\", \"\\u001b[?25l\\u001b[?25h?\"]\n[94.311401, \"o\", \"\\u001b[?25l\\u001b[?25h\\r\\n\"]\n[94.440029, \"o\", \"\\u001b[?25l\\u001b[?25h\"]\n[94.441835, \"o\", \"\\r\\n\\r\\n\"]\n[94.44229, \"o\", \"\\u001b[?25l\\u001b[?25h>>> \\u001b[38;5;245mSend a message (/? for help)\\u001b[28D\\u001b[0m\"]\n[96.096224, \"o\", \"\\u001b[KW\"]\n[96.298482, \"o\", \"h\"]\n[96.499263, \"o\", \"o\"]\n[96.616353, \"o\", \" \"]\n[96.73373, \"o\", \"a\"]\n[96.964337, \"o\", \"r\"]\n[97.045498, \"o\", \"e\"]\n[97.124295, \"o\", \" \"]\n[97.330268, \"o\", \"y\"]\n[97.498434, \"o\", \"o\"]\n[97.612252, \"o\", \"u\"]\n[98.244851, \"o\", \"?\"]\n[98.469732, \"o\", \"\\r\\n\"]\n[98.57048, \"o\", \"\\u001b[?25l⠋ \\u001b[?25h\"]\n[98.671226, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠙ \\u001b[?25h\"]\n[98.771428, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠸ \\u001b[?25h\"]\n[98.870847, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠼ \\u001b[?25h\"]\n[98.97305, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠼ \\u001b[?25h\"]\n[99.071082, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠦ \\u001b[?25h\"]\n[99.173351, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠦ \\u001b[?25h\"]\n[99.27104, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠇ \\u001b[?25h\"]\n[99.370437, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠇ \\u001b[?25h\"]\n[99.471275, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠏ \\u001b[?25h\"]\n[99.570742, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠋ \\u001b[?25h\"]\n[99.67088, \"o\", \"\\u001b[?25l\"]\n[99.670934, \"o\", \"\\u001b[2K\\u001b[1G\"]\n[99.671079, \"o\", \"⠹ \\u001b[?25h\"]\n[99.779707, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠹ \\u001b[?25h\"]\n[99.872357, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠸ \\u001b[?25h\"]\n[99.970979, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠼ \\u001b[?25h\"]\n[100.070939, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠴ \\u001b[?25h\"]\n[100.170656, \"o\", \"\\u001b[?25l\\u001b[2K\\u001b[1G⠦ \\u001b[?25h\"]\n[100.247682, \"o\", \"\\u001b[?25l\\u001b[?25l\\u001b[2K\\u001b[1G\\u001b[?25h\\u001b[2K\\u001b[1G\\u001b[?25h I\"]\n[100.454236, \"o\", \"\\u001b[?25l\\u001b[?25h am\"]\n[100.642998, \"o\", \"\\u001b[?25l\\u001b[?25h an\"]\n[100.750715, \"o\", \"\\u001b[?25l\\u001b[?25h\"]\n[100.750745, \"o\", \" artificial\"]\n[100.829639, \"o\", \"\\u001b[?25l\\u001b[?25h intelligence\"]\n[100.907826, \"o\", \"\\u001b[?25l\"]\n[100.907858, \"o\", \"\\u001b[?25h assistant\"]\n[101.026061, \"o\", \"\\u001b[?25l\\u001b[?25h created\"]\n[101.128656, \"o\", \"\\u001b[?25l\\u001b[?25h by\"]\n[101.219389, \"o\", \"\\u001b[?25l\\u001b[?25h humans\"]\n[101.330529, \"o\", \"\\u001b[?25l\\u001b[?25h to\"]\n[101.80066, \"o\", \"\\u001b[?25l\\u001b[?25h help\"]\n[101.952431, \"o\", \"\\u001b[?25l\\u001b[?25h with\"]\n[102.079384, \"o\", \"\\u001b[?25l\\u001b[?25h everyday\"]\n[102.155643, \"o\", \"\\u001b[?25l\\u001b[?25h tasks\"]\n[102.233176, \"o\", \"\\u001b[?25l\\u001b[?25h and\"]\n[102.334355, \"o\", \"\\u001b[?25l\\u001b[?25h provide\"]\n[102.447577, \"o\", \"\\u001b[?25l\\u001b[?25h help\\u001b[4D\\u001b[K\\r\\nhelpful\"]\n[102.547326, \"o\", \"\\u001b[?25l\\u001b[?25h information\"]\n[102.627003, \"o\", \"\\u001b[?25l\\u001b[?25h.\"]\n[102.736788, \"o\", \"\\u001b[?25l\\u001b[?25h i\"]\n[102.899641, \"o\", \"\\u001b[?25l\\u001b[?25h was\"]\n[103.019759, \"o\", \"\\u001b[?25l\\u001b[?25h designed\"]\n[103.096936, \"o\", \"\\u001b[?25l\\u001b[?25h using\"]\n[103.215752, \"o\", \"\\u001b[?25l\\u001b[?25h advanced\"]\n[103.302357, \"o\", \"\\u001b[?25l\\u001b[?25h programming\"]\n[103.396294, \"o\", \"\\u001b[?25l\\u001b[?25h languages\"]\n[103.482409, \"o\", \"\\u001b[?25l\\u001b[?25h such\"]\n[103.572762, \"o\", \"\\u001b[?25l\\u001b[?25h as\"]\n[103.650629, \"o\", \"\\u001b[?25l\\u001b[?25h python\"]\n[103.728546, \"o\", \"\\u001b[?25l\\u001b[?25h and\"]\n[103.81074, \"o\", \"\\u001b[?25l\\u001b[?25h\"]\n[103.81079, \"o\", \" machine\"]\n[103.895389, \"o\", \"\\u001b[?25l\\u001b[?25h learn\\u001b[5D\\u001b[K\\r\\nlearning\"]\n[104.044856, \"o\", \"\\u001b[?25l\\u001b[?25h algorithms\"]\n[104.209146, \"o\", \"\\u001b[?25l\\u001b[?25h to\"]\n[104.354672, \"o\", \"\\u001b[?25l\\u001b[?25h learn\"]\n[104.443375, \"o\", \"\\u001b[?25l\\u001b[?25h from\"]\n[104.546343, \"o\", \"\\u001b[?25l\\u001b[?25h my\"]\n[104.702276, \"o\", \"\\u001b[?25l\\u001b[?25h interactions\"]\n[104.808594, \"o\", \"\\u001b[?25l\\u001b[?25h with\"]\n[104.896185, \"o\", \"\\u001b[?25l\\u001b[?25h users\"]\n[104.985938, \"o\", \"\\u001b[?25l\\u001b[?25h and\"]\n[105.06283, \"o\", \"\\u001b[?25l\\u001b[?25h improve\"]\n[105.148275, \"o\", \"\\u001b[?25l\\u001b[?25h over\"]\n[105.229829, \"o\", \"\\u001b[?25l\\u001b[?25h time\"]\n[105.304423, \"o\", \"\\u001b[?25l\\u001b[?25h!\"]\n[105.384365, \"o\", \"\\u001b[?25l\\u001b[?25h\\r\\n\"]\n[105.475889, \"o\", \"\\u001b[?25l\\u001b[?25h\"]\n[105.475973, \"o\", \"\\r\\n\\r\\n\"]\n[105.476399, \"o\", \"\\u001b[?25l\\u001b[?25h>>> \\u001b[38;5;245mSend a message (/? for help)\\u001b[28D\\u001b[0m\"]\n[107.100579, \"o\", \"\\u001b[K/\"]\n[107.400029, \"o\", \"b\"]\n[107.565245, \"o\", \"y\"]\n[107.774234, \"o\", \"t\"]\n[108.246802, \"o\", \"\\u001b[1D \\u001b[1D\"]\n[108.3673, \"o\", \"e\"]\n[108.536226, \"o\", \"\\r\\n\"]\n[108.536395, \"o\", \"\\u001b[?2004l\"]\n[109.013056, \"o\", \"\\r\\u001b[0m\\u001b[27m\\u001b[24m\\u001b[J\\r\\n\\u001b[1;36m☸ \\u001b[0m\\u001b[1;36mkind-kind\\u001b[0m in \\u001b[1;36m~\\u001b[0m took \\u001b[1;33m44s\\u001b[0m \\r\\n\\u001b[1;32m❯\\u001b[0m \\u001b[K\"]\n[109.013096, \"o\", \"\\u001b[?1h\\u001b=\"]\n[109.013286, \"o\", \"\\u001b[?2004h\"]\n[109.94996, \"o\", \"\\u001b[?2004l\\r\\r\\n\"]\n"
  },
  {
    "path": "docs/public/site.webmanifest",
    "content": "{\n    \"name\": \"\",\n    \"short_name\": \"\",\n    \"icons\": [\n        {\n            \"src\": \"/android-chrome-192x192.png\",\n            \"sizes\": \"192x192\",\n            \"type\": \"image/png\"\n        },\n        {\n            \"src\": \"/android-chrome-512x512.png\",\n            \"sizes\": \"512x512\",\n            \"type\": \"image/png\"\n        }\n    ],\n    \"theme_color\": \"#ffffff\",\n    \"background_color\": \"#ffffff\",\n    \"display\": \"standalone\"\n}\n"
  },
  {
    "path": "docs/shim.d.ts",
    "content": "declare module 'asciinema-player' {\n  interface PlayerCreateOptions {\n    cols?: number;\n    rows?: number;\n    autoPlay?: boolean;\n    preload?: boolean;\n    loop?: boolean;\n    startAt?: number;\n    speed?: number;\n    idleTimeLimit?: number;\n    theme?: string;\n    poster?: string;\n    fit?: 'width' | 'height' | 'both' | 'none' | false;\n    controls?: boolean;\n    title?: true | false | 'auto';\n    markers?: any[];\n    pauseOnMarkers?: boolean;\n    terminalFontSize?: string | 'small' | 'medium' | 'big';\n    terminalFontFamily?: string;\n    terminalLineHeight?: number;\n    logger?: (...params: any) => void;\n  }\n\n  interface Player {\n    create(src: string, target?: HTMLElement, options?: PlayerCreateOptions): Player;\n    dispose(): void;\n  }\n\n  export function create(src: string, target?: HTMLElement, options?: PlayerCreateOptions): Player;\n  export function dispose(): void;\n}\n"
  },
  {
    "path": "docs/tsconfig.json",
    "content": "{\n  \"compilerOptions\": {\n    \"target\": \"ESNext\",\n    \"jsx\": \"preserve\",\n    \"lib\": [\n      \"DOM\",\n      \"ESNext\"\n    ],\n    \"baseUrl\": \".\",\n    \"module\": \"ESNext\",\n    \"moduleResolution\": \"Bundler\",\n    \"resolveJsonModule\": true,\n    \"types\": [\n      \"vite/client\"\n    ],\n    \"allowJs\": true,\n    \"strict\": true,\n    \"strictNullChecks\": true,\n    \"noUnusedLocals\": true,\n    \"esModuleInterop\": true,\n    \"forceConsistentCasingInFileNames\": true,\n    \"isolatedModules\": true,\n    \"skipLibCheck\": true\n  },\n  \"include\": [\n    \"**/*.mts\",\n    \"**/*.d.ts\",\n    \"**/*.tsx\",\n    \"**/*.vue\",\n    \".vitepress/**/*.mts\",\n    \".vitepress/**/*.tsx\",\n    \".vitepress/**/*.vue\"\n  ]\n}\n"
  },
  {
    "path": "docs/uno.config.ts",
    "content": "import { defineConfig, presetAttributify, presetIcons, presetUno } from 'unocss'\n\nexport default defineConfig({\n  shortcuts: [],\n  presets: [\n    presetUno({\n      dark: 'class',\n    }),\n    presetAttributify(),\n    presetIcons({\n      prefix: 'i-',\n      scale: 1.2, // size: 1.2 rem\n      extraProperties: {\n        'display': 'inline-block',\n        'vertical-align': 'middle',\n        'min-width': '1.2rem',\n      },\n      warn: true,\n    }),\n  ],\n})\n"
  },
  {
    "path": "docs/vite.config.mts",
    "content": "import { join } from 'node:path'\nimport { defineConfig } from 'vite'\nimport UnoCSS from 'unocss/vite'\nimport Inspect from 'vite-plugin-inspect'\n\nimport { GitChangelog, GitChangelogMarkdownSection } from '@nolebase/vitepress-plugin-git-changelog/vite'\n\nexport default defineConfig({\n  ssr: {\n    noExternal: [\n      // If there are other packages that need to be processed by Vite, you can add them here.\n      '@nolebase/vitepress-plugin-enhanced-readabilities',\n      '@nolebase/vitepress-plugin-highlight-targeted-heading',\n      '@nolebase/ui-asciinema',\n    ],\n  },\n  optimizeDeps: {\n    exclude: [\n      'vitepress',\n    ],\n  },\n  plugins: [\n    Inspect(),\n    // https://vitejs.dev/guide/api-plugin.html\n    GitChangelog({\n      repoURL: 'https://github.com/nekomeowww/ollama-operator',\n    }),\n    GitChangelogMarkdownSection({\n      excludes: [\n        join('pages', 'en', 'index.md'),\n        join('pages', 'zh-CN', 'index.md'),\n      ],\n    }),\n    UnoCSS(),\n  ],\n})\n"
  },
  {
    "path": "go.mod",
    "content": "module github.com/nekomeowww/ollama-operator\n\ngo 1.25.7\n\ntoolchain go1.26.1\n\nrequire (\n\tgithub.com/briandowns/spinner v1.23.2\n\tgithub.com/google/go-containerregistry v0.21.3\n\tgithub.com/gookit/color v1.6.0\n\tgithub.com/nekomeowww/xo v1.18.1\n\tgithub.com/samber/lo v1.53.0\n\tgithub.com/spf13/cobra v1.10.2\n\tgithub.com/spf13/pflag v1.0.10\n\tgithub.com/stretchr/testify v1.11.1\n\tk8s.io/api v0.35.2\n\tk8s.io/apimachinery v0.35.2\n\tk8s.io/cli-runtime v0.35.2\n\tk8s.io/client-go v0.35.2\n\tmoul.io/http2curl/v2 v2.3.0\n\tsigs.k8s.io/controller-runtime v0.23.3\n)\n\nrequire (\n\tentgo.io/ent v0.14.5 // indirect\n\tgithub.com/Azure/go-ansiterm v0.0.0-20250102033503-faa5f7b0171c // indirect\n\tgithub.com/beorn7/perks v1.0.1 // indirect\n\tgithub.com/blang/semver/v4 v4.0.0 // indirect\n\tgithub.com/cespare/xxhash/v2 v2.3.0 // indirect\n\tgithub.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect\n\tgithub.com/emicklei/go-restful/v3 v3.13.0 // indirect\n\tgithub.com/evanphx/json-patch v5.9.0+incompatible // indirect\n\tgithub.com/evanphx/json-patch/v5 v5.9.11 // indirect\n\tgithub.com/fatih/color v1.18.0 // indirect\n\tgithub.com/fsnotify/fsnotify v1.9.0 // indirect\n\tgithub.com/fxamacker/cbor/v2 v2.9.0 // indirect\n\tgithub.com/go-errors/errors v1.5.1 // indirect\n\tgithub.com/go-logr/logr v1.4.3 // indirect\n\tgithub.com/go-logr/zapr v1.3.0 // indirect\n\tgithub.com/go-openapi/jsonpointer v0.22.1 // indirect\n\tgithub.com/go-openapi/jsonreference v0.21.2 // indirect\n\tgithub.com/go-openapi/swag v0.25.1 // indirect\n\tgithub.com/go-openapi/swag/cmdutils v0.25.1 // indirect\n\tgithub.com/go-openapi/swag/conv v0.25.1 // indirect\n\tgithub.com/go-openapi/swag/fileutils v0.25.1 // indirect\n\tgithub.com/go-openapi/swag/jsonname v0.25.1 // indirect\n\tgithub.com/go-openapi/swag/jsonutils v0.25.1 // indirect\n\tgithub.com/go-openapi/swag/loading v0.25.1 // indirect\n\tgithub.com/go-openapi/swag/mangling v0.25.1 // indirect\n\tgithub.com/go-openapi/swag/netutils v0.25.1 // indirect\n\tgithub.com/go-openapi/swag/stringutils v0.25.1 // indirect\n\tgithub.com/go-openapi/swag/typeutils v0.25.1 // indirect\n\tgithub.com/go-openapi/swag/yamlutils v0.25.1 // indirect\n\tgithub.com/gogo/protobuf v1.3.2 // indirect\n\tgithub.com/google/btree v1.1.3 // indirect\n\tgithub.com/google/gnostic-models v0.7.0 // indirect\n\tgithub.com/google/go-cmp v0.7.0 // indirect\n\tgithub.com/google/uuid v1.6.0 // indirect\n\tgithub.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79 // indirect\n\tgithub.com/inconshreveable/mousetrap v1.1.0 // indirect\n\tgithub.com/json-iterator/go v1.1.12 // indirect\n\tgithub.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de // indirect\n\tgithub.com/mattn/go-colorable v0.1.14 // indirect\n\tgithub.com/mattn/go-isatty v0.0.20 // indirect\n\tgithub.com/moby/term v0.5.2 // indirect\n\tgithub.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect\n\tgithub.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee // indirect\n\tgithub.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00 // indirect\n\tgithub.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect\n\tgithub.com/onsi/ginkgo/v2 v2.27.2 // indirect\n\tgithub.com/onsi/gomega v1.38.2 // indirect\n\tgithub.com/opencontainers/go-digest v1.0.0 // indirect\n\tgithub.com/peterbourgon/diskv v2.0.1+incompatible // indirect\n\tgithub.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect\n\tgithub.com/prometheus/client_golang v1.23.2 // indirect\n\tgithub.com/prometheus/client_model v0.6.2 // indirect\n\tgithub.com/prometheus/common v0.66.1 // indirect\n\tgithub.com/prometheus/procfs v0.17.0 // indirect\n\tgithub.com/shopspring/decimal v1.4.0 // indirect\n\tgithub.com/x448/float16 v0.8.4 // indirect\n\tgithub.com/xlab/treeprint v1.2.0 // indirect\n\tgithub.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect\n\tgo.uber.org/multierr v1.11.0 // indirect\n\tgo.uber.org/zap v1.27.1 // indirect\n\tgo.yaml.in/yaml/v2 v2.4.3 // indirect\n\tgo.yaml.in/yaml/v3 v3.0.4 // indirect\n\tgolang.org/x/exp v0.0.0-20250218142911-aa4b98e5adaa // indirect\n\tgolang.org/x/net v0.47.0 // indirect\n\tgolang.org/x/oauth2 v0.36.0 // indirect\n\tgolang.org/x/sync v0.20.0 // indirect\n\tgolang.org/x/sys v0.42.0 // indirect\n\tgolang.org/x/term v0.37.0 // indirect\n\tgolang.org/x/text v0.31.0 // indirect\n\tgolang.org/x/time v0.13.0 // indirect\n\tgomodules.xyz/jsonpatch/v2 v2.5.0 // indirect\n\tgoogle.golang.org/protobuf v1.36.10 // indirect\n\tgopkg.in/evanphx/json-patch.v4 v4.13.0 // indirect\n\tgopkg.in/inf.v0 v0.9.1 // indirect\n\tgopkg.in/yaml.v3 v3.0.1 // indirect\n\tk8s.io/apiextensions-apiserver v0.35.0 // indirect\n\tk8s.io/klog/v2 v2.130.1 // indirect\n\tk8s.io/kube-openapi v0.0.0-20250910181357-589584f1c912 // indirect\n\tk8s.io/utils v0.0.0-20251002143259-bc988d571ff4 // indirect\n\tsigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 // indirect\n\tsigs.k8s.io/kustomize/api v0.20.1 // indirect\n\tsigs.k8s.io/kustomize/kyaml v0.20.1 // indirect\n\tsigs.k8s.io/randfill v1.0.0 // indirect\n\tsigs.k8s.io/structured-merge-diff/v6 v6.3.2-0.20260122202528-d9cc6641c482 // indirect\n\tsigs.k8s.io/yaml v1.6.0 // indirect\n)\n"
  },
  {
    "path": "go.sum",
    "content": "entgo.io/ent v0.14.5 h1:Rj2WOYJtCkWyFo6a+5wB3EfBRP0rnx1fMk6gGA0UUe4=\nentgo.io/ent v0.14.5/go.mod h1:zTzLmWtPvGpmSwtkaayM2cm5m819NdM7z7tYPq3vN0U=\ngithub.com/Azure/go-ansiterm v0.0.0-20250102033503-faa5f7b0171c h1:udKWzYgxTojEKWjV8V+WSxDXJ4NFATAsZjh8iIbsQIg=\ngithub.com/Azure/go-ansiterm v0.0.0-20250102033503-faa5f7b0171c/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E=\ngithub.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=\ngithub.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=\ngithub.com/blang/semver/v4 v4.0.0 h1:1PFHFE6yCCTv8C1TeyNNarDzntLi7wMI5i/pzqYIsAM=\ngithub.com/blang/semver/v4 v4.0.0/go.mod h1:IbckMUScFkM3pff0VJDNKRiT6TG/YpiHIM2yvyW5YoQ=\ngithub.com/briandowns/spinner v1.23.2 h1:Zc6ecUnI+YzLmJniCfDNaMbW0Wid1d5+qcTq4L2FW8w=\ngithub.com/briandowns/spinner v1.23.2/go.mod h1:LaZeM4wm2Ywy6vO571mvhQNRcWfRUnXOs0RcKV0wYKM=\ngithub.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs=\ngithub.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=\ngithub.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g=\ngithub.com/creack/pty v1.1.18 h1:n56/Zwd5o6whRC5PMGretI4IdRLlmBXYNjScPaBgsbY=\ngithub.com/creack/pty v1.1.18/go.mod h1:MOBLtS5ELjhRRrroQr9kyvTxUAFNvYEK993ew/Vr4O4=\ngithub.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=\ngithub.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=\ngithub.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM=\ngithub.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=\ngithub.com/emicklei/go-restful/v3 v3.13.0 h1:C4Bl2xDndpU6nJ4bc1jXd+uTmYPVUwkD6bFY/oTyCes=\ngithub.com/emicklei/go-restful/v3 v3.13.0/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc=\ngithub.com/evanphx/json-patch v5.9.0+incompatible h1:fBXyNpNMuTTDdquAq/uisOr2lShz4oaXpDTX2bLe7ls=\ngithub.com/evanphx/json-patch v5.9.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk=\ngithub.com/evanphx/json-patch/v5 v5.9.11 h1:/8HVnzMq13/3x9TPvjG08wUGqBTmZBsCWzjTM0wiaDU=\ngithub.com/evanphx/json-patch/v5 v5.9.11/go.mod h1:3j+LviiESTElxA4p3EMKAB9HXj3/XEtnUf6OZxqIQTM=\ngithub.com/fatih/color v1.18.0 h1:S8gINlzdQ840/4pfAwic/ZE0djQEH3wM94VfqLTZcOM=\ngithub.com/fatih/color v1.18.0/go.mod h1:4FelSpRwEGDpQ12mAdzqdOukCy4u8WUtOY6lkT/6HfU=\ngithub.com/fsnotify/fsnotify v1.9.0 h1:2Ml+OJNzbYCTzsxtv8vKSFD9PbJjmhYF14k/jKC7S9k=\ngithub.com/fsnotify/fsnotify v1.9.0/go.mod h1:8jBTzvmWwFyi3Pb8djgCCO5IBqzKJ/Jwo8TRcHyHii0=\ngithub.com/fxamacker/cbor/v2 v2.9.0 h1:NpKPmjDBgUfBms6tr6JZkTHtfFGcMKsw3eGcmD/sapM=\ngithub.com/fxamacker/cbor/v2 v2.9.0/go.mod h1:vM4b+DJCtHn+zz7h3FFp/hDAI9WNWCsZj23V5ytsSxQ=\ngithub.com/go-errors/errors v1.5.1 h1:ZwEMSLRCapFLflTpT7NKaAc7ukJ8ZPEjzlxt8rPN8bk=\ngithub.com/go-errors/errors v1.5.1/go.mod h1:sIVyrIiJhuEF+Pj9Ebtd6P/rEYROXFi3BopGUQ5a5Og=\ngithub.com/go-logr/logr v1.4.3 h1:CjnDlHq8ikf6E492q6eKboGOC0T8CDaOvkHCIg8idEI=\ngithub.com/go-logr/logr v1.4.3/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=\ngithub.com/go-logr/zapr v1.3.0 h1:XGdV8XW8zdwFiwOA2Dryh1gj2KRQyOOoNmBy4EplIcQ=\ngithub.com/go-logr/zapr v1.3.0/go.mod h1:YKepepNBd1u/oyhd/yQmtjVXmm9uML4IXUgMOwR8/Gg=\ngithub.com/go-openapi/jsonpointer v0.22.1 h1:sHYI1He3b9NqJ4wXLoJDKmUmHkWy/L7rtEo92JUxBNk=\ngithub.com/go-openapi/jsonpointer v0.22.1/go.mod h1:pQT9OsLkfz1yWoMgYFy4x3U5GY5nUlsOn1qSBH5MkCM=\ngithub.com/go-openapi/jsonreference v0.21.2 h1:Wxjda4M/BBQllegefXrY/9aq1fxBA8sI5M/lFU6tSWU=\ngithub.com/go-openapi/jsonreference v0.21.2/go.mod h1:pp3PEjIsJ9CZDGCNOyXIQxsNuroxm8FAJ/+quA0yKzQ=\ngithub.com/go-openapi/swag v0.25.1 h1:6uwVsx+/OuvFVPqfQmOOPsqTcm5/GkBhNwLqIR916n8=\ngithub.com/go-openapi/swag v0.25.1/go.mod h1:bzONdGlT0fkStgGPd3bhZf1MnuPkf2YAys6h+jZipOo=\ngithub.com/go-openapi/swag/cmdutils v0.25.1 h1:nDke3nAFDArAa631aitksFGj2omusks88GF1VwdYqPY=\ngithub.com/go-openapi/swag/cmdutils v0.25.1/go.mod h1:pdae/AFo6WxLl5L0rq87eRzVPm/XRHM3MoYgRMvG4A0=\ngithub.com/go-openapi/swag/conv v0.25.1 h1:+9o8YUg6QuqqBM5X6rYL/p1dpWeZRhoIt9x7CCP+he0=\ngithub.com/go-openapi/swag/conv v0.25.1/go.mod h1:Z1mFEGPfyIKPu0806khI3zF+/EUXde+fdeksUl2NiDs=\ngithub.com/go-openapi/swag/fileutils v0.25.1 h1:rSRXapjQequt7kqalKXdcpIegIShhTPXx7yw0kek2uU=\ngithub.com/go-openapi/swag/fileutils v0.25.1/go.mod h1:+NXtt5xNZZqmpIpjqcujqojGFek9/w55b3ecmOdtg8M=\ngithub.com/go-openapi/swag/jsonname v0.25.1 h1:Sgx+qbwa4ej6AomWC6pEfXrA6uP2RkaNjA9BR8a1RJU=\ngithub.com/go-openapi/swag/jsonname v0.25.1/go.mod h1:71Tekow6UOLBD3wS7XhdT98g5J5GR13NOTQ9/6Q11Zo=\ngithub.com/go-openapi/swag/jsonutils v0.25.1 h1:AihLHaD0brrkJoMqEZOBNzTLnk81Kg9cWr+SPtxtgl8=\ngithub.com/go-openapi/swag/jsonutils v0.25.1/go.mod h1:JpEkAjxQXpiaHmRO04N1zE4qbUEg3b7Udll7AMGTNOo=\ngithub.com/go-openapi/swag/jsonutils/fixtures_test v0.25.1 h1:DSQGcdB6G0N9c/KhtpYc71PzzGEIc/fZ1no35x4/XBY=\ngithub.com/go-openapi/swag/jsonutils/fixtures_test v0.25.1/go.mod h1:kjmweouyPwRUEYMSrbAidoLMGeJ5p6zdHi9BgZiqmsg=\ngithub.com/go-openapi/swag/loading v0.25.1 h1:6OruqzjWoJyanZOim58iG2vj934TysYVptyaoXS24kw=\ngithub.com/go-openapi/swag/loading v0.25.1/go.mod h1:xoIe2EG32NOYYbqxvXgPzne989bWvSNoWoyQVWEZicc=\ngithub.com/go-openapi/swag/mangling v0.25.1 h1:XzILnLzhZPZNtmxKaz/2xIGPQsBsvmCjrJOWGNz/ync=\ngithub.com/go-openapi/swag/mangling v0.25.1/go.mod h1:CdiMQ6pnfAgyQGSOIYnZkXvqhnnwOn997uXZMAd/7mQ=\ngithub.com/go-openapi/swag/netutils v0.25.1 h1:2wFLYahe40tDUHfKT1GRC4rfa5T1B4GWZ+msEFA4Fl4=\ngithub.com/go-openapi/swag/netutils v0.25.1/go.mod h1:CAkkvqnUJX8NV96tNhEQvKz8SQo2KF0f7LleiJwIeRE=\ngithub.com/go-openapi/swag/stringutils v0.25.1 h1:Xasqgjvk30eUe8VKdmyzKtjkVjeiXx1Iz0zDfMNpPbw=\ngithub.com/go-openapi/swag/stringutils v0.25.1/go.mod h1:JLdSAq5169HaiDUbTvArA2yQxmgn4D6h4A+4HqVvAYg=\ngithub.com/go-openapi/swag/typeutils v0.25.1 h1:rD/9HsEQieewNt6/k+JBwkxuAHktFtH3I3ysiFZqukA=\ngithub.com/go-openapi/swag/typeutils v0.25.1/go.mod h1:9McMC/oCdS4BKwk2shEB7x17P6HmMmA6dQRtAkSnNb8=\ngithub.com/go-openapi/swag/yamlutils v0.25.1 h1:mry5ez8joJwzvMbaTGLhw8pXUnhDK91oSJLDPF1bmGk=\ngithub.com/go-openapi/swag/yamlutils v0.25.1/go.mod h1:cm9ywbzncy3y6uPm/97ysW8+wZ09qsks+9RS8fLWKqg=\ngithub.com/go-task/slim-sprig/v3 v3.0.0 h1:sUs3vkvUymDpBKi3qH1YSqBQk9+9D/8M2mN1vB6EwHI=\ngithub.com/go-task/slim-sprig/v3 v3.0.0/go.mod h1:W848ghGpv3Qj3dhTPRyJypKRiqCdHZiAzKg9hl15HA8=\ngithub.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=\ngithub.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q=\ngithub.com/google/btree v1.1.3 h1:CVpQJjYgC4VbzxeGVHfvZrv1ctoYCAI8vbl07Fcxlyg=\ngithub.com/google/btree v1.1.3/go.mod h1:qOPhT0dTNdNzV6Z/lhRX0YXUafgPLFUh+gZMl761Gm4=\ngithub.com/google/gnostic-models v0.7.0 h1:qwTtogB15McXDaNqTZdzPJRHvaVJlAl+HVQnLmJEJxo=\ngithub.com/google/gnostic-models v0.7.0/go.mod h1:whL5G0m6dmc5cPxKc5bdKdEN3UjI7OUGxBlw57miDrQ=\ngithub.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=\ngithub.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=\ngithub.com/google/go-containerregistry v0.20.7 h1:24VGNpS0IwrOZ2ms2P1QE3Xa5X9p4phx0aUgzYzHW6I=\ngithub.com/google/go-containerregistry v0.20.7/go.mod h1:Lx5LCZQjLH1QBaMPeGwsME9biPeo1lPx6lbGj/UmzgM=\ngithub.com/google/go-containerregistry v0.21.3 h1:Xr+yt3VvwOOn/5nJzd7UoOhwPGiPkYW0zWDLLUXqAi4=\ngithub.com/google/go-containerregistry v0.21.3/go.mod h1:D5ZrJF1e6dMzvInpBPuMCX0FxURz7GLq2rV3Us9aPkc=\ngithub.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=\ngithub.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0=\ngithub.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=\ngithub.com/google/pprof v0.0.0-20250403155104-27863c87afa6 h1:BHT72Gu3keYf3ZEu2J0b1vyeLSOYI8bm5wbJM/8yDe8=\ngithub.com/google/pprof v0.0.0-20250403155104-27863c87afa6/go.mod h1:boTsfXsheKC2y+lKOCMpSfarhxDeIzfZG1jqGcPl3cA=\ngithub.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=\ngithub.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=\ngithub.com/gookit/assert v0.1.1 h1:lh3GcawXe/p+cU7ESTZ5Ui3Sm/x8JWpIis4/1aF0mY0=\ngithub.com/gookit/assert v0.1.1/go.mod h1:jS5bmIVQZTIwk42uXl4lyj4iaaxx32tqH16CFj0VX2E=\ngithub.com/gookit/color v1.6.0 h1:JjJXBTk1ETNyqyilJhkTXJYYigHG24TM9Xa2M1xAhRA=\ngithub.com/gookit/color v1.6.0/go.mod h1:9ACFc7/1IpHGBW8RwuDm/0YEnhg3dwwXpoMsmtyHfjs=\ngithub.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79 h1:+ngKgrYPPJrOjhax5N+uePQ0Fh1Z7PheYoUI/0nzkPA=\ngithub.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA=\ngithub.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=\ngithub.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=\ngithub.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM=\ngithub.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo=\ngithub.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8=\ngithub.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=\ngithub.com/klauspost/compress v1.18.1 h1:bcSGx7UbpBqMChDtsF28Lw6v/G94LPrrbMbdC3JH2co=\ngithub.com/klauspost/compress v1.18.1/go.mod h1:ZQFFVG+MdnR0P+l6wpXgIL4NTtwiKIdBnrBd8Nrxr+0=\ngithub.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=\ngithub.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=\ngithub.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=\ngithub.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=\ngithub.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc=\ngithub.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw=\ngithub.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de h1:9TO3cAIGXtEhnIaL+V+BEER86oLrvS+kWobKpbJuye0=\ngithub.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de/go.mod h1:zAbeS9B/r2mtpb6U+EI2rYA5OAXxsYw6wTamcNW+zcE=\ngithub.com/mattn/go-colorable v0.1.14 h1:9A9LHSqF/7dyVVX6g0U9cwm9pG3kP9gSzcuIPHPsaIE=\ngithub.com/mattn/go-colorable v0.1.14/go.mod h1:6LmQG8QLFO4G5z1gPvYEzlUgJ2wF+stgPZH1UqBm1s8=\ngithub.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=\ngithub.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=\ngithub.com/moby/term v0.5.2 h1:6qk3FJAFDs6i/q3W/pQ97SX192qKfZgGjCQqfCJkgzQ=\ngithub.com/moby/term v0.5.2/go.mod h1:d3djjFCrjnB+fl8NJux+EJzu0msscUP+f8it8hPkFLc=\ngithub.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=\ngithub.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg=\ngithub.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=\ngithub.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk=\ngithub.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee h1:W5t00kpgFdJifH4BDsTlE89Zl93FEloxaWZfGcifgq8=\ngithub.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk=\ngithub.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00 h1:n6/2gBQ3RWajuToeY6ZtZTIKv2v7ThUy5KKusIT0yc0=\ngithub.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00/go.mod h1:Pm3mSP3c5uWn86xMLZ5Sa7JB9GsEZySvHYXCTK4E9q4=\ngithub.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA=\ngithub.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ=\ngithub.com/nekomeowww/xo v1.18.1 h1:kbDygdNnnOppgxX3Y9jMZT/KxoXzWnn0t0LYJKlavQs=\ngithub.com/nekomeowww/xo v1.18.1/go.mod h1:ab+zgxwcrNZDIBfzs2Gtixr3BTSgs60thq1qNHT7QOs=\ngithub.com/onsi/ginkgo/v2 v2.23.4 h1:ktYTpKJAVZnDT4VjxSbiBenUjmlL/5QkBEocaWXiQus=\ngithub.com/onsi/ginkgo/v2 v2.23.4/go.mod h1:Bt66ApGPBFzHyR+JO10Zbt0Gsp4uWxu5mIOTusL46e8=\ngithub.com/onsi/ginkgo/v2 v2.27.2/go.mod h1:ArE1D/XhNXBXCBkKOLkbsb2c81dQHCRcF5zwn/ykDRo=\ngithub.com/onsi/gomega v1.37.0 h1:CdEG8g0S133B4OswTDC/5XPSzE1OeP29QOioj2PID2Y=\ngithub.com/onsi/gomega v1.37.0/go.mod h1:8D9+Txp43QWKhM24yyOBEdpkzN8FvJyAwecBgsU4KU0=\ngithub.com/onsi/gomega v1.38.2/go.mod h1:W2MJcYxRGV63b418Ai34Ud0hEdTVXq9NW9+Sx6uXf3k=\ngithub.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U=\ngithub.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM=\ngithub.com/peterbourgon/diskv v2.0.1+incompatible h1:UBdAOUP5p4RWqPBg048CAvpKN+vxiaj6gdUUzhl4XmI=\ngithub.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU=\ngithub.com/pkg/diff v0.0.0-20200914180035-5b29258ca4f7/go.mod h1:zO8QMzTeZd5cpnIkz/Gn6iK0jDfGicM1nynOkkPIl28=\ngithub.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=\ngithub.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=\ngithub.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=\ngithub.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U=\ngithub.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=\ngithub.com/prometheus/client_golang v1.23.2 h1:Je96obch5RDVy3FDMndoUsjAhG5Edi49h0RJWRi/o0o=\ngithub.com/prometheus/client_golang v1.23.2/go.mod h1:Tb1a6LWHB3/SPIzCoaDXI4I8UHKeFTEQ1YCr+0Gyqmg=\ngithub.com/prometheus/client_model v0.6.2 h1:oBsgwpGs7iVziMvrGhE53c/GrLUsZdHnqNwqPLxwZyk=\ngithub.com/prometheus/client_model v0.6.2/go.mod h1:y3m2F6Gdpfy6Ut/GBsUqTWZqCUvMVzSfMLjcu6wAwpE=\ngithub.com/prometheus/common v0.66.1 h1:h5E0h5/Y8niHc5DlaLlWLArTQI7tMrsfQjHV+d9ZoGs=\ngithub.com/prometheus/common v0.66.1/go.mod h1:gcaUsgf3KfRSwHY4dIMXLPV0K/Wg1oZ8+SbZk/HH/dA=\ngithub.com/prometheus/procfs v0.17.0 h1:FuLQ+05u4ZI+SS/w9+BWEM2TXiHKsUQ9TADiRH7DuK0=\ngithub.com/prometheus/procfs v0.17.0/go.mod h1:oPQLaDAMRbA+u8H5Pbfq+dl3VDAvHxMUOVhe0wYB2zw=\ngithub.com/rogpeppe/go-internal v1.13.1 h1:KvO1DLK/DRN07sQ1LQKScxyZJuNnedQ5/wKSR38lUII=\ngithub.com/rogpeppe/go-internal v1.13.1/go.mod h1:uMEvuHeurkdAXX61udpOXGD/AzZDWNMNyH2VO9fmH0o=\ngithub.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=\ngithub.com/samber/lo v1.52.0 h1:Rvi+3BFHES3A8meP33VPAxiBZX/Aws5RxrschYGjomw=\ngithub.com/samber/lo v1.52.0/go.mod h1:4+MXEGsJzbKGaUEQFKBq2xtfuznW9oz/WrgyzMzRoM0=\ngithub.com/samber/lo v1.53.0 h1:t975lj2py4kJPQ6haz1QMgtId2gtmfktACxIXArw3HM=\ngithub.com/samber/lo v1.53.0/go.mod h1:4+MXEGsJzbKGaUEQFKBq2xtfuznW9oz/WrgyzMzRoM0=\ngithub.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo=\ngithub.com/sergi/go-diff v1.3.1 h1:xkr+Oxo4BOQKmkn/B9eMK0g5Kg/983T9DqqPHwYqD+8=\ngithub.com/sergi/go-diff v1.3.1/go.mod h1:aMJSSKb2lpPvRNec0+w3fl7LP9IOFzdc9Pa4NFbPK1I=\ngithub.com/shopspring/decimal v1.4.0 h1:bxl37RwXBklmTi0C79JfXCEBD1cqqHt0bbgBAGFp81k=\ngithub.com/shopspring/decimal v1.4.0/go.mod h1:gawqmDU56v4yIKSwfBSFip1HdCCXN8/+DMd9qYNcwME=\ngithub.com/spf13/cobra v1.10.2 h1:DMTTonx5m65Ic0GOoRY2c16WCbHxOOw6xxezuLaBpcU=\ngithub.com/spf13/cobra v1.10.2/go.mod h1:7C1pvHqHw5A4vrJfjNwvOdzYu0Gml16OCs2GRiTUUS4=\ngithub.com/spf13/pflag v1.0.9/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=\ngithub.com/spf13/pflag v1.0.10 h1:4EBh2KAYBwaONj6b2Ye1GiHfwjqyROoF4RwYO+vPwFk=\ngithub.com/spf13/pflag v1.0.10/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=\ngithub.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=\ngithub.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY=\ngithub.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA=\ngithub.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=\ngithub.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=\ngithub.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=\ngithub.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=\ngithub.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=\ngithub.com/tailscale/depaware v0.0.0-20210622194025-720c4b409502/go.mod h1:p9lPsd+cx33L3H9nNoecRRxPssFKUwwI50I3pZ0yT+8=\ngithub.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM=\ngithub.com/x448/float16 v0.8.4/go.mod h1:14CWIYCyZA/cWjXOioeEpHeN/83MdbZDRQHoFcYsOfg=\ngithub.com/xlab/treeprint v1.2.0 h1:HzHnuAF1plUN2zGlAFHbSQP2qJ0ZAD3XF5XD7OesXRQ=\ngithub.com/xlab/treeprint v1.2.0/go.mod h1:gj5Gd3gPdKtR1ikdDK6fnFLdmIS0X30kTTuNd/WEJu0=\ngithub.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e h1:JVG44RsyaB9T2KIHavMF/ppJZNG9ZpyihvCd0w101no=\ngithub.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e/go.mod h1:RbqR21r5mrJuqunuUZ/Dhy/avygyECGrLceyNeo4LiM=\ngithub.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=\ngithub.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=\ngo.uber.org/automaxprocs v1.6.0 h1:O3y2/QNTOdbF+e/dpXNNW7Rx2hZ4sTIPyybbxyNqTUs=\ngo.uber.org/automaxprocs v1.6.0/go.mod h1:ifeIMSnPZuznNm6jmdzmU3/bfk01Fe2fotchwEFJ8r8=\ngo.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=\ngo.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=\ngo.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0=\ngo.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=\ngo.uber.org/zap v1.27.1 h1:08RqriUEv8+ArZRYSTXy1LeBScaMpVSTBhCeaZYfMYc=\ngo.uber.org/zap v1.27.1/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E=\ngo.yaml.in/yaml/v2 v2.4.3 h1:6gvOSjQoTB3vt1l+CU+tSyi/HOjfOjRLJ4YwYZGwRO0=\ngo.yaml.in/yaml/v2 v2.4.3/go.mod h1:zSxWcmIDjOzPXpjlTTbAsKokqkDNAVtZO0WOMiT90s8=\ngo.yaml.in/yaml/v3 v3.0.4 h1:tfq32ie2Jv2UxXFdLJdh3jXuOzWiL1fo0bu/FbuKpbc=\ngo.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg=\ngolang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=\ngolang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=\ngolang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=\ngolang.org/x/exp v0.0.0-20250218142911-aa4b98e5adaa h1:t2QcU6V556bFjYgu4L6C+6VrCPyJZ+eyRsABUPs1mz4=\ngolang.org/x/exp v0.0.0-20250218142911-aa4b98e5adaa/go.mod h1:BHOTPb3L19zxehTsLoJXVaTktb06DFgmdW6Wb9s8jqk=\ngolang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=\ngolang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=\ngolang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=\ngolang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=\ngolang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=\ngolang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=\ngolang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=\ngolang.org/x/net v0.44.0 h1:evd8IRDyfNBMBTTY5XRF1vaZlD+EmWx6x8PkhR04H/I=\ngolang.org/x/net v0.44.0/go.mod h1:ECOoLqd5U3Lhyeyo/QDCEVQ4sNgYsqvCZ722XogGieY=\ngolang.org/x/net v0.47.0 h1:Mx+4dIFzqraBXUugkia1OOvlD6LemFo1ALMHjrXDOhY=\ngolang.org/x/net v0.47.0/go.mod h1:/jNxtkgq5yWUGYkaZGqo27cfGZ1c5Nen03aYrrKpVRU=\ngolang.org/x/oauth2 v0.33.0 h1:4Q+qn+E5z8gPRJfmRy7C2gGG3T4jIprK6aSYgTXGRpo=\ngolang.org/x/oauth2 v0.33.0/go.mod h1:lzm5WQJQwKZ3nwavOZ3IS5Aulzxi68dUSgRHujetwEA=\ngolang.org/x/oauth2 v0.36.0 h1:peZ/1z27fi9hUOFCAZaHyrpWG5lwe0RJEEEeH0ThlIs=\ngolang.org/x/oauth2 v0.36.0/go.mod h1:YDBUJMTkDnJS+A4BP4eZBjCqtokkg1hODuPjwiGPO7Q=\ngolang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=\ngolang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=\ngolang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=\ngolang.org/x/sync v0.18.0 h1:kr88TuHDroi+UVf+0hZnirlk8o8T+4MrK6mr60WkH/I=\ngolang.org/x/sync v0.18.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI=\ngolang.org/x/sync v0.20.0 h1:e0PTpb7pjO8GAtTs2dQ6jYa5BWYlMuX047Dco/pItO4=\ngolang.org/x/sync v0.20.0/go.mod h1:9xrNwdLfx4jkKbNva9FpL6vEN7evnE43NNNJQ2LF3+0=\ngolang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=\ngolang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=\ngolang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=\ngolang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=\ngolang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=\ngolang.org/x/sys v0.38.0 h1:3yZWxaJjBmCWXqhN1qh02AkOnCQ1poK6oF+a7xWL6Gc=\ngolang.org/x/sys v0.38.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=\ngolang.org/x/sys v0.42.0 h1:omrd2nAlyT5ESRdCLYdm3+fMfNFE/+Rf4bDIQImRJeo=\ngolang.org/x/sys v0.42.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw=\ngolang.org/x/term v0.35.0 h1:bZBVKBudEyhRcajGcNc3jIfWPqV4y/Kt2XcoigOWtDQ=\ngolang.org/x/term v0.35.0/go.mod h1:TPGtkTLesOwf2DE8CgVYiZinHAOuy5AYUYT1lENIZnA=\ngolang.org/x/term v0.37.0 h1:8EGAD0qCmHYZg6J17DvsMy9/wJ7/D/4pV/wfnld5lTU=\ngolang.org/x/term v0.37.0/go.mod h1:5pB4lxRNYYVZuTLmy8oR2BH8dflOR+IbTYFD8fi3254=\ngolang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=\ngolang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=\ngolang.org/x/text v0.31.0 h1:aC8ghyu4JhP8VojJ2lEHBnochRno1sgL6nEi9WGFGMM=\ngolang.org/x/text v0.31.0/go.mod h1:tKRAlv61yKIjGGHX/4tP1LTbc13YSec1pxVEWXzfoeM=\ngolang.org/x/time v0.13.0 h1:eUlYslOIt32DgYD6utsuUeHs4d7AsEYLuIAdg7FlYgI=\ngolang.org/x/time v0.13.0/go.mod h1:eL/Oa2bBBK0TkX57Fyni+NgnyQQN4LitPmob2Hjnqw4=\ngolang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=\ngolang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=\ngolang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=\ngolang.org/x/tools v0.0.0-20201211185031-d93e913c1a58/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=\ngolang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=\ngolang.org/x/tools v0.39.0 h1:ik4ho21kwuQln40uelmciQPp9SipgNDdrafrYA4TmQQ=\ngolang.org/x/tools v0.39.0/go.mod h1:JnefbkDPyD8UU2kI5fuf8ZX4/yUeh9W877ZeBONxUqQ=\ngolang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=\ngolang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=\ngolang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=\ngolang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=\ngomodules.xyz/jsonpatch/v2 v2.5.0 h1:JELs8RLM12qJGXU4u/TO3V25KW8GreMKl9pdkk14RM0=\ngomodules.xyz/jsonpatch/v2 v2.5.0/go.mod h1:AH3dM2RI6uoBZxn3LVrfvJ3E0/9dG4cSrbuBJT4moAY=\ngoogle.golang.org/protobuf v1.36.10 h1:AYd7cD/uASjIL6Q9LiTjz8JLcrh/88q5UObnmY3aOOE=\ngoogle.golang.org/protobuf v1.36.10/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco=\ngopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=\ngopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=\ngopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=\ngopkg.in/evanphx/json-patch.v4 v4.13.0 h1:czT3CmqEaQ1aanPc5SdlgQrrEIb8w/wwCvWWnfEbYzo=\ngopkg.in/evanphx/json-patch.v4 v4.13.0/go.mod h1:p8EYWUEYMpynmqDbY58zCKCFZw8pRWMG4EsWvDvM72M=\ngopkg.in/inf.v0 v0.9.1 h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc=\ngopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw=\ngopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=\ngopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=\ngopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=\ngopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=\nk8s.io/api v0.34.3 h1:D12sTP257/jSH2vHV2EDYrb16bS7ULlHpdNdNhEw2S4=\nk8s.io/api v0.34.3/go.mod h1:PyVQBF886Q5RSQZOim7DybQjAbVs8g7gwJNhGtY5MBk=\nk8s.io/api v0.35.0 h1:iBAU5LTyBI9vw3L5glmat1njFK34srdLmktWwLTprlY=\nk8s.io/api v0.35.0/go.mod h1:AQ0SNTzm4ZAczM03QH42c7l3bih1TbAXYo0DkF8ktnA=\nk8s.io/api v0.35.2 h1:tW7mWc2RpxW7HS4CoRXhtYHSzme1PN1UjGHJ1bdrtdw=\nk8s.io/api v0.35.2/go.mod h1:7AJfqGoAZcwSFhOjcGM7WV05QxMMgUaChNfLTXDRE60=\nk8s.io/apiextensions-apiserver v0.34.1 h1:NNPBva8FNAPt1iSVwIE0FsdrVriRXMsaWFMqJbII2CI=\nk8s.io/apiextensions-apiserver v0.34.1/go.mod h1:hP9Rld3zF5Ay2Of3BeEpLAToP+l4s5UlxiHfqRaRcMc=\nk8s.io/apiextensions-apiserver v0.35.0 h1:3xHk2rTOdWXXJM+RDQZJvdx0yEOgC0FgQ1PlJatA5T4=\nk8s.io/apiextensions-apiserver v0.35.0/go.mod h1:E1Ahk9SADaLQ4qtzYFkwUqusXTcaV2uw3l14aqpL2LU=\nk8s.io/apimachinery v0.34.3 h1:/TB+SFEiQvN9HPldtlWOTp0hWbJ+fjU+wkxysf/aQnE=\nk8s.io/apimachinery v0.34.3/go.mod h1:/GwIlEcWuTX9zKIg2mbw0LRFIsXwrfoVxn+ef0X13lw=\nk8s.io/apimachinery v0.35.0 h1:Z2L3IHvPVv/MJ7xRxHEtk6GoJElaAqDCCU0S6ncYok8=\nk8s.io/apimachinery v0.35.0/go.mod h1:jQCgFZFR1F4Ik7hvr2g84RTJSZegBc8yHgFWKn//hns=\nk8s.io/apimachinery v0.35.2 h1:NqsM/mmZA7sHW02JZ9RTtk3wInRgbVxL8MPfzSANAK8=\nk8s.io/apimachinery v0.35.2/go.mod h1:jQCgFZFR1F4Ik7hvr2g84RTJSZegBc8yHgFWKn//hns=\nk8s.io/cli-runtime v0.34.3 h1:YRyMhiwX0dT9lmG0AtZDaeG33Nkxgt9OlCTZhRXj9SI=\nk8s.io/cli-runtime v0.34.3/go.mod h1:GVwL1L5uaGEgM7eGeKjaTG2j3u134JgG4dAI6jQKhMc=\nk8s.io/cli-runtime v0.35.0 h1:PEJtYS/Zr4p20PfZSLCbY6YvaoLrfByd6THQzPworUE=\nk8s.io/cli-runtime v0.35.0/go.mod h1:VBRvHzosVAoVdP3XwUQn1Oqkvaa8facnokNkD7jOTMY=\nk8s.io/cli-runtime v0.35.2 h1:3DNctzpPNXavqyrm/FFiT60TLk4UjUxuUMYbKOE970E=\nk8s.io/cli-runtime v0.35.2/go.mod h1:G2Ieu0JidLm5m1z9b0OkFhnykvJ1w+vjbz1tR5OFKL0=\nk8s.io/client-go v0.34.3 h1:wtYtpzy/OPNYf7WyNBTj3iUA0XaBHVqhv4Iv3tbrF5A=\nk8s.io/client-go v0.34.3/go.mod h1:OxxeYagaP9Kdf78UrKLa3YZixMCfP6bgPwPwNBQBzpM=\nk8s.io/client-go v0.35.0 h1:IAW0ifFbfQQwQmga0UdoH0yvdqrbwMdq9vIFEhRpxBE=\nk8s.io/client-go v0.35.0/go.mod h1:q2E5AAyqcbeLGPdoRB+Nxe3KYTfPce1Dnu1myQdqz9o=\nk8s.io/client-go v0.35.2 h1:YUfPefdGJA4aljDdayAXkc98DnPkIetMl4PrKX97W9o=\nk8s.io/client-go v0.35.2/go.mod h1:4QqEwh4oQpeK8AaefZ0jwTFJw/9kIjdQi0jpKeYvz7g=\nk8s.io/klog/v2 v2.130.1 h1:n9Xl7H1Xvksem4KFG4PYbdQCQxqc/tTUyrgXaOhHSzk=\nk8s.io/klog/v2 v2.130.1/go.mod h1:3Jpz1GvMt720eyJH1ckRHK1EDfpxISzJ7I9OYgaDtPE=\nk8s.io/kube-openapi v0.0.0-20250910181357-589584f1c912 h1:Y3gxNAuB0OBLImH611+UDZcmKS3g6CthxToOb37KgwE=\nk8s.io/kube-openapi v0.0.0-20250910181357-589584f1c912/go.mod h1:kdmbQkyfwUagLfXIad1y2TdrjPFWp2Q89B3qkRwf/pQ=\nk8s.io/utils v0.0.0-20250820121507-0af2bda4dd1d h1:wAhiDyZ4Tdtt7e46e9M5ZSAJ/MnPGPs+Ki1gHw4w1R0=\nk8s.io/utils v0.0.0-20250820121507-0af2bda4dd1d/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=\nk8s.io/utils v0.0.0-20251002143259-bc988d571ff4 h1:SjGebBtkBqHFOli+05xYbK8YF1Dzkbzn+gDM4X9T4Ck=\nk8s.io/utils v0.0.0-20251002143259-bc988d571ff4/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=\nmoul.io/http2curl/v2 v2.3.0 h1:9r3JfDzWPcbIklMOs2TnIFzDYvfAZvjeavG6EzP7jYs=\nmoul.io/http2curl/v2 v2.3.0/go.mod h1:RW4hyBjTWSYDOxapodpNEtX0g5Eb16sxklBqmd2RHcE=\nsigs.k8s.io/controller-runtime v0.22.4 h1:GEjV7KV3TY8e+tJ2LCTxUTanW4z/FmNB7l327UfMq9A=\nsigs.k8s.io/controller-runtime v0.22.4/go.mod h1:+QX1XUpTXN4mLoblf4tqr5CQcyHPAki2HLXqQMY6vh8=\nsigs.k8s.io/controller-runtime v0.23.3 h1:VjB/vhoPoA9l1kEKZHBMnQF33tdCLQKJtydy4iqwZ80=\nsigs.k8s.io/controller-runtime v0.23.3/go.mod h1:B6COOxKptp+YaUT5q4l6LqUJTRpizbgf9KSRNdQGns0=\nsigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 h1:IpInykpT6ceI+QxKBbEflcR5EXP7sU1kvOlxwZh5txg=\nsigs.k8s.io/json v0.0.0-20250730193827-2d320260d730/go.mod h1:mdzfpAEoE6DHQEN0uh9ZbOCuHbLK5wOm7dK4ctXE9Tg=\nsigs.k8s.io/kustomize/api v0.20.1 h1:iWP1Ydh3/lmldBnH/S5RXgT98vWYMaTUL1ADcr+Sv7I=\nsigs.k8s.io/kustomize/api v0.20.1/go.mod h1:t6hUFxO+Ph0VxIk1sKp1WS0dOjbPCtLJ4p8aADLwqjM=\nsigs.k8s.io/kustomize/kyaml v0.20.1 h1:PCMnA2mrVbRP3NIB6v9kYCAc38uvFLVs8j/CD567A78=\nsigs.k8s.io/kustomize/kyaml v0.20.1/go.mod h1:0EmkQHRUsJxY8Ug9Niig1pUMSCGHxQ5RklbpV/Ri6po=\nsigs.k8s.io/randfill v1.0.0 h1:JfjMILfT8A6RbawdsK2JXGBR5AQVfd+9TbzrlneTyrU=\nsigs.k8s.io/randfill v1.0.0/go.mod h1:XeLlZ/jmk4i1HRopwe7/aU3H5n1zNUcX6TM94b3QxOY=\nsigs.k8s.io/structured-merge-diff/v6 v6.3.0 h1:jTijUJbW353oVOd9oTlifJqOGEkUw2jB/fXCbTiQEco=\nsigs.k8s.io/structured-merge-diff/v6 v6.3.0/go.mod h1:M3W8sfWvn2HhQDIbGWj3S099YozAsymCo/wrT5ohRUE=\nsigs.k8s.io/structured-merge-diff/v6 v6.3.2-0.20260122202528-d9cc6641c482 h1:2WOzJpHUBVrrkDjU4KBT8n5LDcj824eX0I5UKcgeRUs=\nsigs.k8s.io/structured-merge-diff/v6 v6.3.2-0.20260122202528-d9cc6641c482/go.mod h1:M3W8sfWvn2HhQDIbGWj3S099YozAsymCo/wrT5ohRUE=\nsigs.k8s.io/yaml v1.6.0 h1:G8fkbMSAFqgEFgh4b1wmtzDnioxFCUgTZhlbj5P9QYs=\nsigs.k8s.io/yaml v1.6.0/go.mod h1:796bPqUfzR/0jLAl6XjHl3Ck7MiyVv8dbTdyT3/pMf4=\n"
  },
  {
    "path": "hack/boilerplate.go.txt",
    "content": "/*\nCopyright 2024.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/"
  },
  {
    "path": "hack/kind-config.yaml",
    "content": "kind: Cluster\napiVersion: kind.x-k8s.io/v1alpha4\nnodes:\n- role: control-plane\n- role: worker\n  extraPortMappings:\n  - containerPort: 30101\n    hostPort: 30101\n    protocol: TCP\n- role: worker\n  extraPortMappings:\n  - containerPort: 30101\n    hostPort: 30102\n    protocol: TCP\n- role: worker\n  extraPortMappings:\n  - containerPort: 30101\n    hostPort: 30103\n    protocol: TCP\n"
  },
  {
    "path": "hack/ollama-model-llama2-kind-cluster.yaml",
    "content": "apiVersion: ollama.ayaka.io/v1\nkind: Model\nmetadata:\n  name: llama2\nspec:\n  image: llama2\n  persistentVolume:\n    accessMode: ReadWriteOnce\n"
  },
  {
    "path": "hack/ollama-model-llama2-nfs.yaml",
    "content": "apiVersion: ollama.ayaka.io/v1\nkind: Model\nmetadata:\n  name: llama2\nspec:\n  image: llama2\n  storageClassName: nfs-csi\n"
  },
  {
    "path": "hack/ollama-model-phi-kind-cluster.yaml",
    "content": "apiVersion: ollama.ayaka.io/v1\nkind: Model\nmetadata:\n  name: phi\nspec:\n  image: phi\n  persistentVolume:\n    accessMode: ReadWriteOnce\n"
  },
  {
    "path": "hack/ollama-model-phi-nfs.yaml",
    "content": "apiVersion: ollama.ayaka.io/v1\nkind: Model\nmetadata:\n  name: phi\nspec:\n  image: phi\n  storageClassName: nfs-csi\n"
  },
  {
    "path": "internal/cli/kollama/cmd.go",
    "content": "/*\nCopyright 2018 The Kubernetes Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\npackage kollama\n\nimport (\n\t\"github.com/spf13/cobra\"\n\n\t\"k8s.io/cli-runtime/pkg/genericiooptions\"\n\n\tollamav1 \"github.com/nekomeowww/ollama-operator/api/ollama/v1\"\n)\n\nvar (\n\tschemaGroupVersion = ollamav1.GroupVersion\n\n\tmodelSchemaResourceName         = \"models\"\n\tmodelSchemaGroupVersionResource = ollamav1.GroupVersion.WithResource(modelSchemaResourceName)\n)\n\n// NewCmd provides a cobra command wrapping NamespaceOptions\nfunc NewCmd(streams genericiooptions.IOStreams) *cobra.Command {\n\trootCmd := &cobra.Command{\n\t\tUse:   \"kollama [cmd] [args] [flags]\",\n\t\tShort: \"CLI for Ollama Operator\",\n\t\tArgs:  cobra.NoArgs,\n\t}\n\n\trootCmd.AddCommand(NewCmdDeploy(streams))\n\trootCmd.AddCommand(NewCmdUndeploy(streams))\n\trootCmd.AddCommand(NewCmdExpose(streams))\n\n\treturn rootCmd\n}\n"
  },
  {
    "path": "internal/cli/kollama/cmd_deploy.go",
    "content": "package kollama\n\nimport (\n\t\"context\"\n\t\"errors\"\n\t\"fmt\"\n\t\"net/url\"\n\t\"strings\"\n\t\"time\"\n\n\t\"github.com/briandowns/spinner\"\n\t\"github.com/gookit/color\"\n\t\"github.com/nekomeowww/ollama-operator/pkg/model\"\n\t\"github.com/samber/lo\"\n\t\"github.com/spf13/cobra\"\n\t\"github.com/spf13/pflag\"\n\t\"sigs.k8s.io/controller-runtime/pkg/client\"\n\n\tnamepkg \"github.com/google/go-containerregistry/pkg/name\"\n\tcorev1 \"k8s.io/api/core/v1\"\n\t\"k8s.io/apimachinery/pkg/api/resource\"\n\t\"k8s.io/cli-runtime/pkg/genericclioptions\"\n\t\"k8s.io/cli-runtime/pkg/genericiooptions\"\n\t\"k8s.io/client-go/discovery\"\n\t\"k8s.io/client-go/dynamic\"\n\t\"k8s.io/client-go/rest\"\n\t\"k8s.io/client-go/tools/clientcmd\"\n)\n\nconst (\n\tdeployExample = `\n  # Deploy a phi model\n  $ %s deploy phi\n\n  # Deploy a model with exposed through NodePort service\n  $ %s deploy phi --expose\n\n  # Deploy a model with a specific image\n  $ %s deploy phi --image=phi-image\n\n  # Deploy a phi model in a specific namespace\n  $ %s deploy phi -n phi-namespace\n`\n\n\tdeployedNonExposedMessage = `🎉 Successfully deployed %s.\n💡 Currently the deployed model has not yet exposed. If this is unintentional, you can expose the model through\n\n  %s expose %s\n\nOr create with a exposed port with\n\n  %s deploy %s --expose\n\nnext time.\n\nTo expose manually, use the following command:\n\n  kubectl expose deployment %s --name=%s-nodeport --type=NodePort --port 11434\n`\n\n\tdeployedExposedMessage = `🎉 Successfully deployed %s.\n🌐 The model has been exposed through a service over %s.\n\nTo start a chat with ollama:\n\n  OLLAMA_HOST=%s ollama run %s\n\nTo integrate with your OpenAI API compatible client:\n\n  curl http://%s/v1/chat/completions -H \"Content-Type: application/json\" -d '{\n    \"model\": \"%s\",\n    \"messages\": [\n      {\n        \"role\": \"user\",\n        \"content\": \"Hello!\"\n      }\n    ]\n  }'\n`\n)\n\n// CmdDeployOptions provides information required to deploy a model\ntype CmdDeployOptions struct {\n\tgenericiooptions.IOStreams\n\n\tconfigFlags     *genericclioptions.ConfigFlags\n\tclientConfig    clientcmd.ClientConfig\n\tkubeConfig      *rest.Config\n\tkubeClient      client.Client\n\tdynamicClient   dynamic.Interface\n\tdiscoveryClient discovery.DiscoveryInterface\n\n\tmodelImage   string\n\texpose       bool\n\tserviceType  string\n\tserviceName  string\n\tnodePort     int32\n\tstorageClass string\n\tpvAccessMode string\n\n\tresourceLimits []string\n}\n\n// NewCmdDeployOptions provides an instance of CmdDeployOptions with default values\nfunc NewCmdDeployOptions(streams genericiooptions.IOStreams) *CmdDeployOptions {\n\treturn &CmdDeployOptions{\n\t\tIOStreams:   streams,\n\t\tconfigFlags: genericclioptions.NewConfigFlags(true),\n\t}\n}\n\nfunc (o *CmdDeployOptions) AddFlags(flags *pflag.FlagSet) {\n\tflags.StringVar(&o.modelImage, \"image\", \"\", \"\"+\n\t\t\"Model image to deploy. If not specified, the model name will be used as the \"+\n\t\t\"image name (will be pulled from registry.ollama.ai/library/<model name> by \"+\n\t\t\"default if no registry is specified), the tag will be latest.\",\n\t)\n\n\tflags.StringArrayVar(&o.resourceLimits, \"limit\", []string{}, \"\"+\n\t\t\"Resource limits for the model. The format is <resource>=<quantity>. \"+\n\t\t\"For example: --limit=cpu=1 --limit=memory=1Gi\"+\n\t\t\"Multiple limits can be specified by using the flag multiple times. \",\n\t)\n\n\tflags.StringVarP(&o.storageClass, \"storage-class\", \"\", \"\", \"\"+\n\t\t\"StorageClass to use for the model's associated PersistentVolumeClaim. If not specified, \"+\n\t\t\"the default StorageClass will be used.\",\n\t)\n\n\tflags.StringVarP(&o.pvAccessMode, \"pv-access-mode\", \"\", \"\", \"\"+\n\t\t\"Access mode for Ollama Operator created image store (to cache pulled images)'s StatefulSet \"+\n\t\t\"resource associated PersistentVolume. If not specified, the access mode will be ReadWriteOnce. \"+\n\t\t\"If you are deploying models into default deployed kind and k3s clusters, you should keep \"+\n\t\t\"it as ReadWriteOnce. If you are deploying models into a custom cluster, you can set it to \"+\n\t\t\"ReadWriteMany if StorageClass supports it.\",\n\t)\n\n\tflags.BoolVar(&o.expose, \"expose\", false, \"\"+\n\t\t\"Whether to expose the model through a service for external access and makes it \"+\n\t\t\"easy to interact with the model. By default, --expose will create a NodePort \"+\n\t\t\"service. Use --service-type=LoadBalancer to create a LoadBalancer service\",\n\t)\n\n\tflags.StringVar(&o.serviceType, \"service-type\", \"\", \"\"+\n\t\t\"Type of the Service to expose the model. If not specified, the service will be \"+\n\t\t\"exposed as NodePort. Use LoadBalancer to expose the service as LoadBalancer.\",\n\t)\n\n\tflags.StringVar(&o.serviceName, \"service-name\", \"\", \"\"+\n\t\t\"Name of the Service to expose the model. If not specified, the model name will \"+\n\t\t\"be used as the service name with -nodeport as the suffix for NodePort.\",\n\t)\n\n\tflags.Int32Var(&o.nodePort, \"node-port\", 0, \"\"+\n\t\t\"NodePort to expose the model. If not specified, a random port will be assigned.\"+\n\t\t\"Only valid when --expose is specified, and --service-type is set to NodePort.\",\n\t)\n}\n\n// NewCmdDeploy provides a cobra command wrapping CmdDeployOptions\nfunc NewCmdDeploy(streams genericiooptions.IOStreams) *cobra.Command {\n\to := NewCmdDeployOptions(streams)\n\n\tcmd := &cobra.Command{\n\t\tUse:     \"deploy [model name] [flags]\",\n\t\tShort:   \"Deploy a model with the given name by using Ollama Operator\",\n\t\tExample: fmt.Sprintf(deployExample, command(), command(), command(), command()),\n\t\tArgs: func(cmd *cobra.Command, args []string) error {\n\t\t\tif len(args) < 1 {\n\t\t\t\treturn errors.New(\"model name is required\")\n\t\t\t}\n\n\t\t\tif args[0] == \"\" {\n\t\t\t\treturn errors.New(\"model name cannot be empty\")\n\t\t\t}\n\n\t\t\treturn nil\n\t\t},\n\t\tRunE: func(c *cobra.Command, args []string) error {\n\t\t\treturn o.runE(c, args)\n\t\t},\n\t}\n\to.AddFlags(cmd.Flags())\n\to.configFlags.AddFlags(cmd.Flags())\n\n\to.clientConfig = o.configFlags.ToRawKubeConfigLoader()\n\to.kubeConfig = lo.Must(o.clientConfig.ClientConfig())\n\to.kubeClient = lo.Must(client.New(o.kubeConfig, client.Options{}))\n\to.dynamicClient = lo.Must(dynamic.NewForConfig(o.kubeConfig))\n\to.discoveryClient = lo.Must(discovery.NewDiscoveryClientForConfig(o.kubeConfig))\n\n\treturn cmd\n}\n\nfunc (o *CmdDeployOptions) runE(cmd *cobra.Command, args []string) error {\n\tvar err error\n\n\tnamespace, err := getNamespace(o.clientConfig, cmd)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tsupported, err := IsOllamaOperatorCRDSupported(o.discoveryClient, modelSchemaResourceName)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tif !supported {\n\t\treturn ErrOllamaModelNotSupported\n\t}\n\n\tmodelName := args[0]\n\n\tmodelImage, err := getImage(cmd, args)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tmodelImageRef, err := namepkg.ParseReference(modelImage, namepkg.Insecure, namepkg.WithDefaultRegistry(\"\"), namepkg.WithDefaultTag(\"latest\"))\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tfmt.Println(\"Deploying model \\\"\" + modelName + \"\\\"...\\n\")\n\n\tctx, cancel := context.WithTimeout(context.Background(), 1*time.Minute)\n\tdefer cancel()\n\n\tcreatedModel, err := getOllama(ctx, o.dynamicClient, namespace, modelName)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tif createdModel == nil {\n\t\tvar resourceRequirements corev1.ResourceRequirements\n\n\t\tfor _, limit := range o.resourceLimits {\n\t\t\tparts := strings.Split(limit, \"=\")\n\t\t\tif len(parts) != 2 {\n\t\t\t\treturn fmt.Errorf(\"invalid resource limit format: %s\", limit)\n\t\t\t}\n\n\t\t\tif resourceRequirements.Limits == nil {\n\t\t\t\tresourceRequirements.Limits = make(corev1.ResourceList)\n\t\t\t}\n\n\t\t\tresourceRequirements.Limits[corev1.ResourceName(parts[0])] = resource.MustParse(parts[1])\n\t\t}\n\n\t\tcreatedModelCtx, createdModelCancel := context.WithTimeout(context.Background(), 1*time.Minute)\n\t\tdefer createdModelCancel()\n\n\t\tcreatedModel, err := createOllamaModel(createdModelCtx, o.dynamicClient, namespace, modelName, modelImage, resourceRequirements, o.storageClass, o.pvAccessMode)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\n\t\tif !o.expose {\n\t\t\tfmt.Printf(deployedNonExposedMessage, modelName, command(), modelName, command(), modelName, createdModel.Name, createdModel.Name)\n\t\t\treturn nil\n\t\t}\n\t}\n\n\terr = waitUntilModelAvailable(o.kubeClient, namespace, modelName, modelImageRef.String())\n\tif err != nil {\n\t\treturn err\n\t}\n\n\texposeSvcCtx, exposeSvcCancel := context.WithTimeout(context.Background(), 1*time.Minute)\n\tdefer exposeSvcCancel()\n\n\tsvc, err := exposeOllamaModel(\n\t\texposeSvcCtx,\n\t\to.kubeClient,\n\t\tnamespace,\n\t\tmodelName,\n\t\tlo.Ternary(o.serviceType == \"\", corev1.ServiceTypeNodePort, corev1.ServiceType(o.serviceType)),\n\t\to.serviceName,\n\t\to.nodePort,\n\t)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\ts := spinner.New(spinner.CharSets[14], 200*time.Millisecond)\n\ts.FinalMSG = color.FgGreen.Render(\"✓\") + \" model exposed\"\n\t_ = s.Color(\"blue\")\n\n\ts.Start()\n\n\ts.Suffix = \" exposing model service...\"\n\n\terr = waitUntilOllamaModelServiceReady(exposeSvcCtx, o.kubeClient, namespace, modelName)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\ts.Stop()\n\tfmt.Println()\n\tfmt.Println()\n\n\tparsedHost, err := url.Parse(o.kubeConfig.Host)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tollamaHost := fmt.Sprintf(\"%s:%d\", parsedHost.Hostname(), svc.Spec.Ports[0].NodePort)\n\tfmt.Printf(deployedExposedMessage, modelName, ollamaHost, ollamaHost, model.OllamaModelNameFromNameReference(modelImageRef), ollamaHost, model.OllamaModelNameFromNameReference(modelImageRef))\n\n\treturn nil\n}\n"
  },
  {
    "path": "internal/cli/kollama/cmd_expose.go",
    "content": "package kollama\n\nimport (\n\t\"context\"\n\t\"errors\"\n\t\"fmt\"\n\t\"net/url\"\n\t\"os\"\n\t\"time\"\n\n\t\"github.com/samber/lo\"\n\t\"github.com/spf13/cobra\"\n\t\"github.com/spf13/pflag\"\n\t\"sigs.k8s.io/controller-runtime/pkg/client\"\n\n\tcorev1 \"k8s.io/api/core/v1\"\n\t\"k8s.io/client-go/discovery\"\n\t\"k8s.io/client-go/dynamic\"\n\t\"k8s.io/client-go/rest\"\n\t\"k8s.io/client-go/tools/clientcmd\"\n\n\t\"k8s.io/cli-runtime/pkg/genericclioptions\"\n\t\"k8s.io/cli-runtime/pkg/genericiooptions\"\n)\n\nconst (\n\texposedMessage = `🎉 The model has been exposed through a service over %s.\n\nTo start a chat with ollama:\n\n  OLLAMA_HOST=%s ollama run %s\n\nTo integrate with your OpenAI API compatible client:\n\n  curl http://%s/v1/chat/completions -H \"Content-Type: application/json\" -d '{\n    \"model\": \"%s\",\n    \"messages\": [\n      {\n        \"role\": \"user\",\n        \"content\": \"Hello!\"\n      }\n    ]\n  }'.\n`\n)\n\n// CmdExposeOptions provides information required to expose a model\ntype CmdExposeOptions struct {\n\tgenericiooptions.IOStreams\n\n\tconfigFlags     *genericclioptions.ConfigFlags\n\tclientConfig    clientcmd.ClientConfig\n\tkubeConfig      *rest.Config\n\tkubeClient      client.Client\n\tdynamicClient   dynamic.Interface\n\tdiscoveryClient discovery.DiscoveryInterface\n\n\tserviceType string\n\tserviceName string\n\tnodePort    int32\n}\n\n// NewCmdExposeOptions provides an instance of CmdExposeOptions with default values\nfunc NewCmdExposeOptions(streams genericiooptions.IOStreams) *CmdExposeOptions {\n\treturn &CmdExposeOptions{\n\t\tIOStreams:   streams,\n\t\tconfigFlags: genericclioptions.NewConfigFlags(true),\n\t}\n}\n\nfunc (o *CmdExposeOptions) AddFlags(flags *pflag.FlagSet) {\n\tflags.StringVar(&o.serviceType, \"service-type\", \"\", \"\"+\n\t\t\"Type of the Service to expose the model. If not specified, the service will be \"+\n\t\t\"exposed as NodePort. Use LoadBalancer to expose the service as LoadBalancer.\",\n\t)\n\tflags.StringVar(&o.serviceName, \"service-name\", \"\", \"\"+\n\t\t\"Name of the Service to expose the model. If not specified, the model name will \"+\n\t\t\"be used as the service name with -nodeport as the suffix for NodePort.\",\n\t)\n\tflags.Int32Var(&o.nodePort, \"node-port\", 0, \"\"+\n\t\t\"NodePort to expose the model. If not specified, a random port will be assigned.\"+\n\t\t\"Only valid when --expose is specified, and --service-type is set to NodePort.\",\n\t)\n}\n\n// NewCmdExpose provides a cobra command wrapping NamespaceOptions\nfunc NewCmdExpose(streams genericiooptions.IOStreams) *cobra.Command {\n\to := NewCmdExposeOptions(streams)\n\n\tcmd := &cobra.Command{\n\t\tUse:     \"expose [model name] [flags]\",\n\t\tShort:   \"Expose a model with the given name as NodePort, or LoadBalancer service for external access\",\n\t\tExample: fmt.Sprintf(deployExample, command(), command(), command(), command()),\n\t\tArgs: func(cmd *cobra.Command, args []string) error {\n\t\t\tif len(args) < 1 {\n\t\t\t\treturn errors.New(\"model name is required\")\n\t\t\t}\n\n\t\t\tif args[0] == \"\" {\n\t\t\t\treturn errors.New(\"model name cannot be empty\")\n\t\t\t}\n\n\t\t\treturn nil\n\t\t},\n\t\tRunE: func(c *cobra.Command, args []string) error {\n\t\t\treturn o.runE(c, args)\n\t\t},\n\t}\n\to.AddFlags(cmd.Flags())\n\to.configFlags.AddFlags(cmd.Flags())\n\n\to.clientConfig = o.configFlags.ToRawKubeConfigLoader()\n\to.kubeConfig = lo.Must(o.clientConfig.ClientConfig())\n\to.kubeClient = lo.Must(client.New(o.kubeConfig, client.Options{}))\n\to.dynamicClient = lo.Must(dynamic.NewForConfig(o.kubeConfig))\n\to.discoveryClient = lo.Must(discovery.NewDiscoveryClientForConfig(o.kubeConfig))\n\n\treturn cmd\n}\n\nfunc (o *CmdExposeOptions) runE(cmd *cobra.Command, args []string) error {\n\tvar err error\n\n\tnamespace, err := getNamespace(o.clientConfig, cmd)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tsupported, err := IsOllamaOperatorCRDSupported(o.discoveryClient, modelSchemaResourceName)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tif !supported {\n\t\treturn ErrOllamaModelNotSupported\n\t}\n\n\tmodelName := args[0]\n\n\tctx, cancel := context.WithTimeout(context.Background(), 5*time.Minute)\n\tdefer cancel()\n\n\tmodel, err := getOllama(ctx, o.dynamicClient, namespace, modelName)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tif model == nil {\n\t\tfmt.Println(\"Ollama Model\", modelName, \"not found, did you deploy it?\")\n\t\tcancel()\n\t\tos.Exit(1) //nolint:gocritic\n\n\t\treturn nil\n\t}\n\n\tsvc, err := exposeOllamaModel(\n\t\tctx,\n\t\to.kubeClient,\n\t\tnamespace,\n\t\tmodelName,\n\t\tlo.Ternary(o.serviceType == \"\", corev1.ServiceTypeNodePort, corev1.ServiceType(o.serviceType)),\n\t\to.serviceName,\n\t\to.nodePort,\n\t)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tparsedHost, err := url.Parse(o.kubeConfig.Host)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tollamaHost := fmt.Sprintf(\"%s:%d\", parsedHost.Hostname(), svc.Spec.Ports[0].NodePort)\n\tfmt.Printf(exposedMessage, ollamaHost, ollamaHost, modelName, ollamaHost, modelName)\n\n\treturn nil\n}\n"
  },
  {
    "path": "internal/cli/kollama/cmd_undeploy.go",
    "content": "package kollama\n\nimport (\n\t\"context\"\n\t\"errors\"\n\t\"fmt\"\n\t\"time\"\n\n\t\"github.com/samber/lo\"\n\t\"github.com/spf13/cobra\"\n\n\tmetav1 \"k8s.io/apimachinery/pkg/apis/meta/v1\"\n\t\"k8s.io/client-go/discovery\"\n\t\"k8s.io/client-go/dynamic\"\n\t\"k8s.io/client-go/rest\"\n\t\"k8s.io/client-go/tools/clientcmd\"\n\n\t\"k8s.io/cli-runtime/pkg/genericclioptions\"\n\t\"k8s.io/cli-runtime/pkg/genericiooptions\"\n)\n\nconst (\n\tunDeployExample = `\n  # Undeploy a phi model\n  $ kollama undeploy phi\n\n  # or if using as kubectl plugin\n  $ kubectl ollama undeploy phi\n\n  # Undeploy a phi model in a specific namespace\n  $ kollama undeploy phi -n phi-namespace\n\n  # or if using as kubectl plugin\n  $ kubectl ollama undeploy phi -n phi-namespace`\n)\n\ntype CmdUndeployOptions struct {\n\tgenericiooptions.IOStreams\n\n\tconfigFlags     *genericclioptions.ConfigFlags\n\tclientConfig    clientcmd.ClientConfig\n\tkubeConfig      *rest.Config\n\tdynamicClient   dynamic.Interface\n\tdiscoveryClient discovery.DiscoveryInterface\n}\n\nfunc NewCmdUndeployOptions(streams genericiooptions.IOStreams) *CmdUndeployOptions {\n\treturn &CmdUndeployOptions{\n\t\tIOStreams:   streams,\n\t\tconfigFlags: genericclioptions.NewConfigFlags(true),\n\t}\n}\n\nfunc NewCmdUndeploy(streams genericiooptions.IOStreams) *cobra.Command {\n\to := NewCmdUndeployOptions(streams)\n\n\tcmd := &cobra.Command{\n\t\tUse:     \"undeploy [model name] [flags]\",\n\t\tShort:   \"Undeploy a model with the given name by using Ollama Operator\",\n\t\tExample: unDeployExample,\n\t\tArgs: func(cmd *cobra.Command, args []string) error {\n\t\t\tif len(args) < 1 {\n\t\t\t\treturn errors.New(\"model name is required\")\n\t\t\t}\n\n\t\t\tif args[0] == \"\" {\n\t\t\t\treturn errors.New(\"model name cannot be empty\")\n\t\t\t}\n\n\t\t\treturn nil\n\t\t},\n\t\tRunE: func(c *cobra.Command, args []string) error {\n\t\t\treturn o.runE(c, args)\n\t\t},\n\t}\n\n\to.configFlags.AddFlags(cmd.Flags())\n\n\to.clientConfig = o.configFlags.ToRawKubeConfigLoader()\n\to.kubeConfig = lo.Must(o.clientConfig.ClientConfig())\n\to.dynamicClient = lo.Must(dynamic.NewForConfig(o.kubeConfig))\n\to.discoveryClient = lo.Must(discovery.NewDiscoveryClientForConfig(o.kubeConfig))\n\n\treturn cmd\n}\n\nfunc (o *CmdUndeployOptions) runE(cmd *cobra.Command, args []string) error {\n\tvar err error\n\n\tnamespace, err := getNamespace(o.clientConfig, cmd)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tsupported, err := IsOllamaOperatorCRDSupported(o.discoveryClient, modelSchemaResourceName)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tif !supported {\n\t\treturn ErrOllamaModelNotSupported\n\t}\n\n\tmodelImage := args[0]\n\n\tctx, cancel := context.WithTimeout(context.Background(), 5*time.Minute)\n\tdefer cancel()\n\n\tmodel, err := getOllama(ctx, o.dynamicClient, namespace, modelImage)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tif model == nil {\n\t\tfmt.Println(modelImage, \"undeployed\")\n\t\treturn nil\n\t}\n\n\terr = o.dynamicClient.\n\t\tResource(modelSchemaGroupVersionResource).\n\t\tNamespace(namespace).\n\t\tDelete(ctx, modelImage, metav1.DeleteOptions{})\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tfmt.Println(modelImage, \"undeployed\")\n\n\treturn nil\n}\n"
  },
  {
    "path": "internal/cli/kollama/common.go",
    "content": "package kollama\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"os\"\n\t\"path/filepath\"\n\t\"strings\"\n\t\"time\"\n\n\tappsv1 \"k8s.io/api/apps/v1\"\n\tcorev1 \"k8s.io/api/core/v1\"\n\tapierrors \"k8s.io/apimachinery/pkg/api/errors\"\n\tmetav1 \"k8s.io/apimachinery/pkg/apis/meta/v1\"\n\t\"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured\"\n\t\"k8s.io/apimachinery/pkg/runtime\"\n\t\"k8s.io/apimachinery/pkg/types\"\n\t\"k8s.io/client-go/discovery\"\n\t\"k8s.io/client-go/dynamic\"\n\t\"k8s.io/client-go/tools/clientcmd\"\n\t\"sigs.k8s.io/controller-runtime/pkg/client\"\n\n\t\"github.com/samber/lo\"\n\t\"github.com/spf13/cobra\"\n\n\tollamav1 \"github.com/nekomeowww/ollama-operator/api/ollama/v1\"\n\t\"github.com/nekomeowww/ollama-operator/pkg/model\"\n)\n\nvar (\n\tErrOllamaModelNotSupported = fmt.Errorf(\"%s is not supported on the cluster, did you install the Ollama Operator?\", modelSchemaGroupVersionResource.String())\n)\n\nfunc isKubectlPlugin() (bool, error) {\n\texec, err := os.Executable()\n\tif err != nil {\n\t\treturn false, err\n\t}\n\n\tbasename := filepath.Base(exec)\n\tif strings.HasPrefix(basename, \"kubectl-\") {\n\t\treturn true, nil\n\t}\n\n\treturn false, nil\n}\n\nfunc command() string {\n\tis, _ := isKubectlPlugin()\n\tif is {\n\t\treturn \"kubectl kollama\"\n\t}\n\n\treturn \"kollama\"\n}\n\nfunc IsOllamaOperatorCRDSupported(discoveryClient discovery.DiscoveryInterface, resourceName string) (bool, error) {\n\tgroupVersion := schemaGroupVersion.String()\n\n\tlist, err := discoveryClient.ServerResourcesForGroupVersion(groupVersion)\n\tif err != nil {\n\t\tif apierrors.IsNotFound(err) {\n\t\t\treturn false, nil\n\t\t}\n\n\t\t// don't record, just attempt again next time in case it's a transient error\n\t\treturn false, err\n\t}\n\n\tfor _, resources := range list.APIResources {\n\t\tif resources.Name == resourceName {\n\t\t\treturn true, nil\n\t\t}\n\t}\n\n\treturn false, nil\n}\n\nfunc FromUnstructured[T any](obj *unstructured.Unstructured) (*T, error) {\n\ttypedObj := new(T)\n\n\terr := runtime.DefaultUnstructuredConverter.FromUnstructured(obj.UnstructuredContent(), typedObj)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\treturn typedObj, nil\n}\n\nfunc Unstructured[T runtime.Object](obj T) (*unstructured.Unstructured, error) {\n\tunstructured := &unstructured.Unstructured{}\n\n\tconverted, err := runtime.DefaultUnstructuredConverter.ToUnstructured(obj)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tunstructured.SetUnstructuredContent(converted)\n\tunstructured.SetAPIVersion(schemaGroupVersion.String())\n\tunstructured.SetKind(\"Model\")\n\n\treturn unstructured, nil\n}\n\nfunc getOllama(ctx context.Context, dynamicClient dynamic.Interface, namespace string, name string) (*ollamav1.Model, error) {\n\tunstructuredObj, err := dynamicClient.\n\t\tResource(modelSchemaGroupVersionResource).\n\t\tNamespace(namespace).\n\t\tGet(ctx, name, metav1.GetOptions{})\n\tif err != nil {\n\t\tif apierrors.IsNotFound(err) {\n\t\t\treturn nil, nil\n\t\t}\n\n\t\treturn nil, err\n\t}\n\n\tmodel, err := FromUnstructured[ollamav1.Model](unstructuredObj)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\treturn model, nil\n}\n\nfunc getNamespace(clientConfig clientcmd.ClientConfig, cmd *cobra.Command) (string, error) {\n\tnamespace, err := cmd.Flags().GetString(\"namespace\")\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\n\tif namespace == \"\" {\n\t\tvar ok bool\n\n\t\tnamespace, ok, err = clientConfig.Namespace()\n\t\tif err != nil {\n\t\t\treturn \"\", err\n\t\t}\n\n\t\tif !ok {\n\t\t\tnamespace = \"default\"\n\t\t}\n\t}\n\n\treturn namespace, nil\n}\n\nfunc getImage(cmd *cobra.Command, args []string) (string, error) {\n\tmodelName := args[0]\n\n\tmodelImage, err := cmd.Flags().GetString(\"image\")\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\n\tif modelImage == \"\" {\n\t\treturn modelName, nil\n\t}\n\n\treturn modelImage, nil\n}\n\nfunc createOllamaModel(\n\tctx context.Context,\n\tdynamicClient dynamic.Interface,\n\tnamespace string,\n\tname string,\n\timage string,\n\tresources corev1.ResourceRequirements,\n\tstorageClass string,\n\tpvAccessMode string,\n) (*ollamav1.Model, error) {\n\tmodel := &ollamav1.Model{\n\t\tTypeMeta: metav1.TypeMeta{\n\t\t\tAPIVersion: schemaGroupVersion.String(),\n\t\t\tKind:       \"Model\",\n\t\t},\n\t\tObjectMeta: metav1.ObjectMeta{\n\t\t\tName: name,\n\t\t\tLabels: map[string]string{\n\t\t\t\t\"ollama.ayaka.io/managed-by\": \"kollama\",\n\t\t\t},\n\t\t},\n\t\tSpec: ollamav1.ModelSpec{\n\t\t\tImage:     image,\n\t\t\tResources: resources,\n\t\t},\n\t}\n\tif storageClass != \"\" {\n\t\tmodel.Spec.StorageClassName = lo.ToPtr(storageClass)\n\t}\n\n\tif pvAccessMode != \"\" {\n\t\tmodel.Spec.PersistentVolume = &ollamav1.ModelPersistentVolumeSpec{\n\t\t\tAccessMode: lo.ToPtr(corev1.PersistentVolumeAccessMode(pvAccessMode)),\n\t\t}\n\t}\n\n\tunstructuredObj, err := Unstructured(model)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\t_, err = dynamicClient.\n\t\tResource(modelSchemaGroupVersionResource).\n\t\tNamespace(namespace).\n\t\tCreate(ctx, unstructuredObj, metav1.CreateOptions{})\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\treturn model, nil\n}\n\nfunc exposeOllamaModel(\n\tctx context.Context,\n\tkubeClient client.Client,\n\tnamespace string,\n\tname string,\n\tserviceType corev1.ServiceType,\n\tserviceName string,\n\tnodePort int32,\n) (*corev1.Service, error) {\n\tvar deployment appsv1.Deployment\n\n\terr := kubeClient.Get(ctx, types.NamespacedName{Namespace: namespace, Name: model.ModelAppName(name)}, &deployment)\n\tif err != nil {\n\t\tif apierrors.IsNotFound(err) {\n\t\t\ttime.Sleep(1 * time.Second)\n\t\t\treturn exposeOllamaModel(ctx, kubeClient, namespace, name, serviceType, serviceName, nodePort)\n\t\t}\n\n\t\treturn nil, err\n\t}\n\n\tsvc := model.NewServiceForModel(namespace, name, &deployment, serviceType)\n\tif serviceName != \"\" {\n\t\tsvc.Name = serviceName\n\t} else {\n\t\tswitch serviceType {\n\t\tcase corev1.ServiceTypeNodePort:\n\t\t\tsvc.Name = model.ModelAppName(name) + \"-nodeport\"\n\t\tcase corev1.ServiceTypeLoadBalancer:\n\t\t\tsvc.Name = model.ModelAppName(name) + \"-lb\"\n\t\tcase corev1.ServiceTypeExternalName:\n\t\t\tsvc.Name = model.ModelAppName(name) + \"-external\"\n\t\tcase corev1.ServiceTypeClusterIP:\n\t\t\tsvc.Name = model.ModelAppName(name)\n\t\tdefault:\n\t\t\treturn nil, fmt.Errorf(\"unsupported service type: %s\", serviceType)\n\t\t}\n\t}\n\n\tif serviceType == \"NodePort\" && nodePort != 0 {\n\t\tif nodePort < 0 || nodePort > 65535 {\n\t\t\treturn nil, fmt.Errorf(\"invalid nodePort: %d\", nodePort)\n\t\t}\n\n\t\tsvc.Spec.Ports[0].NodePort = nodePort\n\t}\n\n\tvar existingService corev1.Service\n\n\terr = kubeClient.Get(ctx, types.NamespacedName{Namespace: namespace, Name: svc.Name}, &existingService)\n\tif err != nil && !apierrors.IsNotFound(err) {\n\t\treturn nil, err\n\t}\n\n\tif err == nil {\n\t\treturn &existingService, nil\n\t}\n\n\terr = kubeClient.Create(ctx, svc)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\treturn svc, nil\n}\n"
  },
  {
    "path": "internal/cli/kollama/wait_until.go",
    "content": "package kollama\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"time\"\n\n\t\"github.com/gookit/color\"\n\tappsv1 \"k8s.io/api/apps/v1\"\n\tcorev1 \"k8s.io/api/core/v1\"\n\tapierrors \"k8s.io/apimachinery/pkg/api/errors\"\n\t\"k8s.io/apimachinery/pkg/types\"\n\t\"sigs.k8s.io/controller-runtime/pkg/client\"\n\n\t\"github.com/briandowns/spinner\"\n\t\"github.com/nekomeowww/ollama-operator/pkg/model\"\n)\n\nconst (\n\tisReadyString = \" is ready\"\n)\n\nfunc waitUntilImageStoreReady(ctx context.Context, kubeClient client.Client, namespace string) error {\n\tvar imageStore appsv1.StatefulSet\n\n\terr := kubeClient.Get(ctx, types.NamespacedName{Namespace: namespace, Name: model.ImageStoreStatefulSetName}, &imageStore)\n\tif err != nil {\n\t\tif apierrors.IsNotFound(err) {\n\t\t\ttime.Sleep(1 * time.Second)\n\t\t\treturn waitUntilImageStoreReady(ctx, kubeClient, namespace)\n\t\t}\n\n\t\treturn err\n\t}\n\n\treturn nil\n}\n\nfunc waitUntilImageStoreServiceReady(ctx context.Context, kubeClient client.Client, namespace string) error {\n\tvar imageStoreService corev1.Service\n\n\terr := kubeClient.Get(ctx, types.NamespacedName{Namespace: namespace, Name: model.ImageStoreStatefulSetName}, &imageStoreService)\n\tif err != nil {\n\t\tif apierrors.IsNotFound(err) {\n\t\t\ttime.Sleep(1 * time.Second)\n\t\t\treturn waitUntilImageStoreServiceReady(ctx, kubeClient, namespace)\n\t\t}\n\n\t\treturn err\n\t}\n\n\treturn nil\n}\n\nfunc waitUntilOllamaModelDeploymentPullImageDone(ctx context.Context, kubeClient client.Client, namespace string, name string) error {\n\tvar pods corev1.PodList\n\n\terr := kubeClient.List(ctx, &pods, client.InNamespace(namespace), client.MatchingLabels{\"app\": model.ModelAppName(name)})\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tfor _, pod := range pods.Items {\n\t\tif len(pod.Status.InitContainerStatuses) == 0 || !pod.Status.InitContainerStatuses[0].Ready {\n\t\t\ttime.Sleep(1 * time.Second)\n\t\t\treturn waitUntilOllamaModelDeploymentPullImageDone(ctx, kubeClient, namespace, name)\n\t\t}\n\n\t\tif len(pod.Status.ContainerStatuses) == 0 || !pod.Status.ContainerStatuses[0].Ready {\n\t\t\ttime.Sleep(1 * time.Second)\n\t\t\treturn waitUntilOllamaModelDeploymentPullImageDone(ctx, kubeClient, namespace, name)\n\t\t}\n\t}\n\n\treturn nil\n}\n\nfunc waitUntilOllamaModelDeploymentReady(ctx context.Context, kubeClient client.Client, namespace string, name string) error {\n\tvar deployment appsv1.Deployment\n\n\terr := kubeClient.Get(ctx, types.NamespacedName{Namespace: namespace, Name: model.ModelAppName(name)}, &deployment)\n\tif err != nil {\n\t\tif apierrors.IsNotFound(err) {\n\t\t\ttime.Sleep(1 * time.Second)\n\t\t\treturn waitUntilOllamaModelDeploymentReady(ctx, kubeClient, namespace, name)\n\t\t}\n\n\t\treturn err\n\t}\n\n\tif deployment.Status.ReadyReplicas == 0 {\n\t\ttime.Sleep(1 * time.Second)\n\t\treturn waitUntilOllamaModelDeploymentReady(ctx, kubeClient, namespace, name)\n\t}\n\n\treturn nil\n}\n\nfunc waitUntilOllamaModelServiceReady(ctx context.Context, kubeClient client.Client, namespace string, name string) error { //nolint:unparam\n\tvar services corev1.ServiceList\n\n\terr := kubeClient.List(ctx, &services, client.MatchingLabels(model.ModelLabels(name)))\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tif len(services.Items) == 0 {\n\t\ttime.Sleep(1 * time.Second)\n\t\treturn waitUntilOllamaModelServiceReady(ctx, kubeClient, namespace, name)\n\t}\n\n\treturn nil\n}\n\nfunc waitUntilModelAvailable(kubeClient client.Client, namespace string, modelName string, modelImage string) error {\n\ts := spinner.New(spinner.CharSets[14], 200*time.Millisecond)\n\ts.FinalMSG = color.FgGreen.Render(\"✓\") + \" image store\" + isReadyString\n\t_ = s.Color(\"blue\")\n\n\ts.Start()\n\n\ts.Suffix = \" preparing image store...\"\n\n\twaitConditionCtx, waitConditionCancel := context.WithTimeout(context.Background(), 1*time.Hour)\n\tdefer waitConditionCancel()\n\n\terr := waitUntilImageStoreReady(waitConditionCtx, kubeClient, namespace)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\ts.Stop()\n\tfmt.Println()\n\n\ts = spinner.New(spinner.CharSets[14], 200*time.Millisecond)\n\ts.FinalMSG = color.FgGreen.Render(\"✓\") + \" image store exposed\"\n\t_ = s.Color(\"blue\")\n\n\ts.Start()\n\n\ts.Suffix = \" exposing image store service...\"\n\n\terr = waitUntilImageStoreServiceReady(waitConditionCtx, kubeClient, namespace)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\ts.Stop()\n\tfmt.Println()\n\n\ts = spinner.New(spinner.CharSets[14], 200*time.Millisecond)\n\ts.FinalMSG = color.FgGreen.Render(\"✓\") + \" model pulled and prepared\"\n\t_ = s.Color(\"blue\")\n\n\ts.Start()\n\n\ts.Suffix = \" pulling model image \\\"\" + modelImage + \"\\\"...\"\n\n\terr = waitUntilOllamaModelDeploymentPullImageDone(waitConditionCtx, kubeClient, namespace, modelName)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\ts.Stop()\n\tfmt.Println()\n\n\ts = spinner.New(spinner.CharSets[14], 200*time.Millisecond)\n\ts.FinalMSG = color.FgGreen.Render(\"✓\") + \" model\" + isReadyString\n\t_ = s.Color(\"blue\")\n\n\ts.Start()\n\n\ts.Suffix = \" deploying model...\"\n\n\terr = waitUntilOllamaModelDeploymentReady(waitConditionCtx, kubeClient, namespace, modelName)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\ts.Stop()\n\tfmt.Println()\n\n\treturn nil\n}\n"
  },
  {
    "path": "internal/controller/model_controller.go",
    "content": "/*\nCopyright 2024.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\npackage controller\n\nimport (\n\t\"context\"\n\t\"time\"\n\n\t\"k8s.io/apimachinery/pkg/runtime\"\n\t\"k8s.io/client-go/tools/record\"\n\tctrl \"sigs.k8s.io/controller-runtime\"\n\t\"sigs.k8s.io/controller-runtime/pkg/client\"\n\t\"sigs.k8s.io/controller-runtime/pkg/reconcile\"\n\n\tollamav1 \"github.com/nekomeowww/ollama-operator/api/ollama/v1\"\n\tmodel \"github.com/nekomeowww/ollama-operator/pkg/model\"\n\t\"github.com/nekomeowww/ollama-operator/pkg/operator\"\n)\n\n// ModelReconciler reconciles a Model object\ntype ModelReconciler struct {\n\tclient.Client\n\n\tScheme   *runtime.Scheme\n\tRecorder record.EventRecorder\n}\n\n//+kubebuilder:rbac:groups=ollama.ayaka.io,resources=models,verbs=get;list;watch;create;update;patch;delete\n//+kubebuilder:rbac:groups=ollama.ayaka.io,resources=models/status,verbs=get;update;patch\n//+kubebuilder:rbac:groups=ollama.ayaka.io,resources=models/finalizers,verbs=update\n//+kubebuilder:rbac:groups=apps,resources=deployments,verbs=get;list;watch;create;update;patch;delete\n//+kubebuilder:rbac:groups=apps,resources=statefulsets,verbs=get;list;watch;create;update;patch;delete\n//+kubebuilder:rbac:groups=core,resources=services,verbs=get;list;watch;create;update;patch;delete\n//+kubebuilder:rbac:groups=core,resources=persistentvolumeclaims,verbs=get;list;watch;create;update;patch;delete\n//+kubebuilder:rbac:groups=core,resources=storageclasses,verbs=get;list;watch\n//+kubebuilder:rbac:groups=core,resources=persistentvolumes,verbs=get;list;watch\n//+kubebuilder:rbac:groups=core,resources=namespaces,verbs=get;list;watch\n//+kubebuilder:rbac:groups=batch,resources=jobs,verbs=get;list;watch;create;update;patch;delete;deletecollection\n//+kubebuilder:rbac:groups=batch,resources=jobs/status,verbs=get\n\n// Reconcile is part of the main kubernetes reconciliation loop which aims to\n// move the current state of the cluster closer to the desired state.\n//\n// For more details, check Reconcile and its Result here:\n// - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.17.2/pkg/reconcile\nfunc (r *ModelReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {\n\tvar m ollamav1.Model\n\n\terr := r.Get(ctx, req.NamespacedName, &m)\n\tif err != nil {\n\t\treturn reconcile.Result{}, client.IgnoreNotFound(err)\n\t}\n\n\tctx = model.WithWrappedRecorder(ctx, model.NewWrappedRecorder(r.Recorder, &m))\n\tctx = model.WithClient(ctx, r.Client)\n\n\tres, err := operator.ResultFromError(r.reconcile(ctx, req, &m))\n\n\treturn operator.HandleError(ctx, res, err)\n}\n\n// SetupWithManager sets up the controller with the Manager.\nfunc (r *ModelReconciler) SetupWithManager(mgr ctrl.Manager) error {\n\treturn ctrl.NewControllerManagedBy(mgr).\n\t\tFor(&ollamav1.Model{}).\n\t\tComplete(r)\n}\n\nfunc (r *ModelReconciler) reconcile(ctx context.Context, req ctrl.Request, m *ollamav1.Model) error {\n\tclient := model.ClientFromContext(ctx)\n\trecorder := model.WrappedRecorderFromContext[*ollamav1.Model](ctx)\n\n\tif !model.IsAvailable(ctx, *m) {\n\t\thasSet, err := model.SetProgressing(ctx, client, *m)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\n\t\tif hasSet {\n\t\t\trecorder.Eventf(\"Normal\", \"ModelProgressing\", \"Model is progressing\")\n\t\t\treturn operator.RequeueAfter(time.Second)\n\t\t}\n\t}\n\n\treturn operator.NewSubReconcilers(\n\t\toperator.NewPVCReconciler(r.reconcilePVC),\n\t\toperator.NewStatefulSetReconciler(r.reconcileStatefulSet),\n\t\toperator.NewServiceReconciler(r.reconcileService),\n\t\toperator.NewDeploymentReconciler(r.reconcileDeployment),\n\t\toperator.NewServiceReconciler(r.reconcileModelService),\n\t).Reconcile(ctx, req, m)\n}\n\nfunc (r *ModelReconciler) reconcilePVC(ctx context.Context, ns string, name string, m *ollamav1.Model) error {\n\tmodelStorageClass := m.Spec.StorageClassName\n\tmodelPVC := m.Spec.PersistentVolumeClaim\n\tmodelPV := m.Spec.PersistentVolume\n\n\t_, err := model.EnsureImageStorePVCCreated(ctx, ns, modelStorageClass, modelPVC, modelPV)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\treturn nil\n}\n\nfunc (r *ModelReconciler) reconcileStatefulSet(ctx context.Context, ns string, name string, m *ollamav1.Model) error {\n\t_, err := model.EnsureImageStoreStatefulSetCreated(ctx, ns, m)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tstatefulSetReady, err := model.IsImageStoreStatefulSetReady(ctx, ns)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tif !statefulSetReady {\n\t\treturn operator.RequeueAfter(time.Second * 5)\n\t}\n\n\treturn nil\n}\n\nfunc (r *ModelReconciler) reconcileService(ctx context.Context, ns string, name string, m *ollamav1.Model) error {\n\tstatefulSet, err := model.EnsureImageStoreStatefulSetCreated(ctx, ns, m)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\t_, err = model.EnsureImageStoreServiceCreated(ctx, ns, statefulSet)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tserviceReady, err := model.IsImageStoreServiceReady(ctx, ns)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tif !serviceReady {\n\t\treturn operator.RequeueAfter(time.Second * 5)\n\t}\n\n\treturn nil\n}\n\nfunc (r *ModelReconciler) reconcileDeployment(ctx context.Context, ns string, name string, m *ollamav1.Model) error {\n\t_, err := model.EnsureDeploymentCreated(ctx, ns, name, m.Spec.Image, m.Spec.Replicas, m)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tmodelDeploymentUpdated, err := model.UpdateDeployment(ctx, m)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tif modelDeploymentUpdated {\n\t\treturn operator.RequeueAfter(time.Second * 5)\n\t}\n\n\tmodelDeploymentReady, err := model.IsDeploymentReady(ctx, ns, name)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tif !modelDeploymentReady {\n\t\treturn operator.RequeueAfter(time.Second * 5)\n\t}\n\n\treturn nil\n}\n\nfunc (r *ModelReconciler) reconcileModelService(ctx context.Context, ns string, name string, m *ollamav1.Model) error {\n\trecorder := model.WrappedRecorderFromContext[*ollamav1.Model](ctx)\n\n\tdeployment, err := model.EnsureDeploymentCreated(ctx, ns, name, m.Spec.Image, m.Spec.Replicas, m)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\t_, err = model.EnsureServiceCreated(ctx, ns, name, deployment)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tmodelServiceReady, err := model.IsServiceReady(ctx, ns, name)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tif !modelServiceReady {\n\t\treturn operator.RequeueAfter(time.Second * 5)\n\t}\n\n\tif model.ShouldSetReplicas(ctx, m, deployment.Status.Replicas, deployment.Status.ReadyReplicas, deployment.Status.AvailableReplicas, deployment.Status.UnavailableReplicas) {\n\t\thasSet, err := model.SetReplicas(ctx, m, deployment.Status.Replicas, deployment.Status.ReadyReplicas, deployment.Status.AvailableReplicas, deployment.Status.UnavailableReplicas)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\n\t\tif hasSet {\n\t\t\treturn operator.RequeueAfter(time.Second * 5)\n\t\t}\n\t}\n\n\t_, err = model.SetAvailable(ctx, m)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\trecorder.Eventf(\"Normal\", \"ModelAvailable\", \"Model is available\")\n\n\treturn nil\n}\n"
  },
  {
    "path": "pkg/model/image_store.go",
    "content": "package model\n\nimport (\n\t\"context\"\n\n\t\"github.com/samber/lo\"\n\tappsv1 \"k8s.io/api/apps/v1\"\n\tcorev1 \"k8s.io/api/core/v1\"\n\t\"k8s.io/apimachinery/pkg/api/errors\"\n\t\"k8s.io/apimachinery/pkg/api/resource\"\n\tmetav1 \"k8s.io/apimachinery/pkg/apis/meta/v1\"\n\t\"k8s.io/apimachinery/pkg/types\"\n\t\"k8s.io/apimachinery/pkg/util/intstr\"\n\t\"sigs.k8s.io/controller-runtime/pkg/client\"\n\t\"sigs.k8s.io/controller-runtime/pkg/log\"\n\n\tollamav1 \"github.com/nekomeowww/ollama-operator/api/ollama/v1\"\n)\n\nconst (\n\tImageStorePVCName         = \"ollama-models-store-pvc\"\n\tImageStoreStatefulSetName = \"ollama-models-store\"\n)\n\nfunc getImageStorePVC(ctx context.Context, client client.Client, namespace string) (*corev1.PersistentVolumeClaim, error) {\n\tvar pvc corev1.PersistentVolumeClaim\n\n\terr := client.Get(ctx, types.NamespacedName{Namespace: namespace, Name: ImageStorePVCName}, &pvc)\n\tif err != nil {\n\t\tif errors.IsNotFound(err) {\n\t\t\treturn nil, nil\n\t\t}\n\n\t\treturn nil, err\n\t}\n\n\treturn &pvc, nil\n}\n\nfunc EnsureImageStorePVCCreated(\n\tctx context.Context,\n\tnamespace string,\n\tstorageClassName *string,\n\tpvcSource *corev1.PersistentVolumeClaimVolumeSource,\n\tpvSpec *ollamav1.ModelPersistentVolumeSpec,\n) (*corev1.PersistentVolumeClaim, error) {\n\tlog := log.FromContext(ctx)\n\tclient := ClientFromContext(ctx)\n\tmodelRecorder := WrappedRecorderFromContext[*ollamav1.Model](ctx)\n\n\tpvc, err := getImageStorePVC(ctx, client, namespace)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tif pvc != nil {\n\t\treturn pvc, nil\n\t}\n\n\tlog.Info(\"no existing image storage PVC found, creating one...\")\n\n\taccessMode := corev1.ReadWriteOnce\n\tif pvSpec != nil && pvSpec.AccessMode != nil {\n\t\taccessMode = *pvSpec.AccessMode\n\t}\n\n\tpvc = &corev1.PersistentVolumeClaim{\n\t\tObjectMeta: metav1.ObjectMeta{\n\t\t\tName:        ImageStorePVCName,\n\t\t\tNamespace:   namespace,\n\t\t\tLabels:      ImageStoreLabels(),\n\t\t\tAnnotations: ModelAnnotations(ImageStoreStatefulSetName, true),\n\t\t},\n\t\tSpec: corev1.PersistentVolumeClaimSpec{\n\t\t\tResources: corev1.VolumeResourceRequirements{\n\t\t\t\tRequests: corev1.ResourceList{\n\t\t\t\t\tcorev1.ResourceStorage: resource.MustParse(\"100Gi\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tStorageClassName: storageClassName,\n\t\t\tAccessModes:      []corev1.PersistentVolumeAccessMode{accessMode},\n\t\t},\n\t}\n\n\terr = client.Create(ctx, pvc)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tlog.Info(\"created image storage PVC\", \"pvc\", pvc)\n\tmodelRecorder.Event(corev1.EventTypeNormal, \"ProvisionedImageStoragePVC\", \"Provisioned image storage PVC\")\n\n\treturn pvc, nil\n}\n\nfunc GetImageStorePVByPVC(ctx context.Context, c client.Client, pvc *corev1.PersistentVolumeClaim) (*corev1.PersistentVolume, error) {\n\tvar pv corev1.PersistentVolume\n\n\terr := c.Get(ctx, types.NamespacedName{Namespace: pvc.Namespace, Name: pvc.Spec.VolumeName}, &pv)\n\tif err != nil {\n\t\tif errors.IsNotFound(err) {\n\t\t\treturn nil, nil\n\t\t}\n\n\t\treturn nil, err\n\t}\n\n\treturn &pv, nil\n}\n\nfunc getImageStoreStatefulSet(ctx context.Context, client client.Client, namespace string) (*appsv1.StatefulSet, error) {\n\tvar statefulSet appsv1.StatefulSet\n\n\terr := client.Get(ctx, types.NamespacedName{Namespace: namespace, Name: ImageStoreStatefulSetName}, &statefulSet)\n\tif err != nil {\n\t\tif errors.IsNotFound(err) {\n\t\t\treturn nil, nil\n\t\t}\n\n\t\treturn nil, err\n\t}\n\n\treturn &statefulSet, nil\n}\n\nfunc EnsureImageStoreStatefulSetCreated(\n\tctx context.Context,\n\tnamespace string,\n\tmodel *ollamav1.Model,\n) (*appsv1.StatefulSet, error) {\n\tlog := log.FromContext(ctx)\n\tclient := ClientFromContext(ctx)\n\tmodelRecorder := WrappedRecorderFromContext[*ollamav1.Model](ctx)\n\n\tstatefulSet, err := getImageStoreStatefulSet(ctx, client, namespace)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tif statefulSet != nil {\n\t\treturn statefulSet, nil\n\t}\n\n\tlog.Info(\"no existing image store stateful set found, creating one...\")\n\n\tstatefulSet = &appsv1.StatefulSet{\n\t\tObjectMeta: metav1.ObjectMeta{\n\t\t\tName:        ImageStoreStatefulSetName,\n\t\t\tNamespace:   namespace,\n\t\t\tLabels:      ImageStoreLabels(),\n\t\t\tAnnotations: ModelAnnotations(ImageStoreStatefulSetName, true),\n\t\t},\n\t\tSpec: appsv1.StatefulSetSpec{\n\t\t\tReplicas: lo.ToPtr(int32(1)),\n\t\t\tSelector: &metav1.LabelSelector{\n\t\t\t\tMatchLabels: ImageStoreLabels(),\n\t\t\t},\n\t\t\tTemplate: corev1.PodTemplateSpec{\n\t\t\t\tObjectMeta: metav1.ObjectMeta{\n\t\t\t\t\tLabels:      ImageStoreLabels(),\n\t\t\t\t\tAnnotations: ModelAnnotations(ImageStoreStatefulSetName, true),\n\t\t\t\t},\n\t\t\t\tSpec: corev1.PodSpec{\n\t\t\t\t\tContainers: []corev1.Container{\n\t\t\t\t\t\tNewOllamaServerContainer(false, corev1.ResourceRequirements{}, model.Spec.ExtraEnvFrom, model.Spec.Env),\n\t\t\t\t\t},\n\t\t\t\t\tRestartPolicy: corev1.RestartPolicyAlways,\n\t\t\t\t\tVolumes: []corev1.Volume{\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tName: \"image-storage\",\n\t\t\t\t\t\t\tVolumeSource: corev1.VolumeSource{\n\t\t\t\t\t\t\t\tPersistentVolumeClaim: &corev1.PersistentVolumeClaimVolumeSource{\n\t\t\t\t\t\t\t\t\tClaimName: ImageStorePVCName,\n\t\t\t\t\t\t\t\t\tReadOnly:  false,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t}\n\n\terr = client.Create(ctx, statefulSet)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tlog.Info(\"created image store stateful set\", \"statefulSet\", statefulSet)\n\tmodelRecorder.Event(corev1.EventTypeNormal, \"ProvisionedImageStoreStatefulSet\", \"Provisioned image store stateful set\")\n\n\treturn statefulSet, nil\n}\n\nfunc IsImageStoreStatefulSetReady(\n\tctx context.Context,\n\tnamespace string,\n) (bool, error) {\n\tlog := log.FromContext(ctx)\n\tclient := ClientFromContext(ctx)\n\tmodelRecorder := WrappedRecorderFromContext[*ollamav1.Model](ctx)\n\n\tstatefulSet, err := getImageStoreStatefulSet(ctx, client, namespace)\n\tif err != nil {\n\t\treturn false, err\n\t}\n\n\tif statefulSet == nil {\n\t\treturn false, nil\n\t}\n\n\tif statefulSet.Status.ReadyReplicas == 1 {\n\t\treturn true, nil\n\t}\n\n\tlog.Info(\"waiting for image store stateful set to be ready\", \"statefulSet\", statefulSet)\n\tmodelRecorder.Event(corev1.EventTypeNormal, \"WaitingForImageStoreStatefulSet\", \"Waiting for image store stateful set to become ready\")\n\n\treturn false, nil\n}\n\nfunc getImageStoreService(ctx context.Context, client client.Client, namespace string) (*corev1.Service, error) {\n\tvar service corev1.Service\n\n\terr := client.Get(ctx, types.NamespacedName{Namespace: namespace, Name: ImageStoreStatefulSetName}, &service)\n\tif err != nil {\n\t\tif errors.IsNotFound(err) {\n\t\t\treturn nil, nil\n\t\t}\n\n\t\treturn nil, err\n\t}\n\n\treturn &service, nil\n}\n\nfunc EnsureImageStoreServiceCreated(\n\tctx context.Context,\n\tnamespace string,\n\tstatefulSet *appsv1.StatefulSet,\n) (*corev1.Service, error) {\n\tlog := log.FromContext(ctx)\n\tclient := ClientFromContext(ctx)\n\tmodelRecorder := WrappedRecorderFromContext[*ollamav1.Model](ctx)\n\n\tservice, err := getImageStoreService(ctx, client, namespace)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tif service != nil {\n\t\treturn service, nil\n\t}\n\n\tlog.Info(\"no existing image store service found, creating one...\")\n\n\tservice = &corev1.Service{\n\t\tObjectMeta: metav1.ObjectMeta{\n\t\t\tName:        ImageStoreStatefulSetName,\n\t\t\tNamespace:   namespace,\n\t\t\tLabels:      ImageStoreLabels(),\n\t\t\tAnnotations: ModelAnnotations(ImageStoreStatefulSetName, true),\n\t\t\tOwnerReferences: []metav1.OwnerReference{{\n\t\t\t\tAPIVersion:         \"apps/v1\",\n\t\t\t\tKind:               \"StatefulSet\",\n\t\t\t\tName:               statefulSet.Name,\n\t\t\t\tUID:                statefulSet.UID,\n\t\t\t\tBlockOwnerDeletion: lo.ToPtr(true),\n\t\t\t}},\n\t\t},\n\t\tSpec: corev1.ServiceSpec{\n\t\t\tType: corev1.ServiceTypeClusterIP,\n\t\t\tPorts: []corev1.ServicePort{\n\t\t\t\t{\n\t\t\t\t\tName:       \"ollama\",\n\t\t\t\t\tProtocol:   corev1.ProtocolTCP,\n\t\t\t\t\tPort:       11434,\n\t\t\t\t\tTargetPort: intstr.FromInt(11434),\n\t\t\t\t},\n\t\t\t},\n\t\t\tSelector: ImageStoreLabels(),\n\t\t},\n\t}\n\n\terr = client.Create(ctx, service)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tlog.Info(\"created image store service\", \"service\", service)\n\tmodelRecorder.Event(corev1.EventTypeNormal, \"ProvisionedImageStoreService\", \"Provisioned image store service\")\n\n\treturn service, nil\n}\n\nfunc IsImageStoreServiceReady(\n\tctx context.Context,\n\tnamespace string,\n) (bool, error) {\n\tlog := log.FromContext(ctx)\n\tclient := ClientFromContext(ctx)\n\tmodelRecorder := WrappedRecorderFromContext[*ollamav1.Model](ctx)\n\n\tservice, err := getImageStoreService(ctx, client, namespace)\n\tif err != nil {\n\t\treturn false, err\n\t}\n\n\tif service == nil {\n\t\treturn false, nil\n\t}\n\n\tif service.Spec.ClusterIP != \"\" {\n\t\treturn true, nil\n\t}\n\n\tlog.Info(\"waiting for image store service to be ready\", \"service\", service, \"reason\", \"due to no ClusterIP is set\")\n\tmodelRecorder.Event(corev1.EventTypeNormal, \"WaitingForImageStoreService\", \"Waiting for image store service to become ready\")\n\n\treturn false, nil\n}\n"
  },
  {
    "path": "pkg/model/model.go",
    "content": "package model\n\nimport (\n\t\"context\"\n\t\"path/filepath\"\n\n\tnamepkg \"github.com/google/go-containerregistry/pkg/name\"\n\t\"github.com/samber/lo\"\n\tappsv1 \"k8s.io/api/apps/v1\"\n\tcorev1 \"k8s.io/api/core/v1\"\n\t\"k8s.io/apimachinery/pkg/api/errors\"\n\tmetav1 \"k8s.io/apimachinery/pkg/apis/meta/v1\"\n\t\"k8s.io/apimachinery/pkg/labels\"\n\t\"k8s.io/apimachinery/pkg/util/intstr\"\n\t\"sigs.k8s.io/controller-runtime/pkg/client\"\n\t\"sigs.k8s.io/controller-runtime/pkg/log\"\n\n\tollamav1 \"github.com/nekomeowww/ollama-operator/api/ollama/v1\"\n\t\"github.com/nekomeowww/xo\"\n)\n\nfunc getServiceByLabels(ctx context.Context, c client.Client, namespace string, l labels.Set) (*corev1.Service, error) {\n\tvar service corev1.ServiceList\n\n\terr := c.List(ctx, &service, &client.ListOptions{\n\t\tNamespace:     namespace,\n\t\tLabelSelector: labels.SelectorFromValidatedSet(l),\n\t})\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tif len(service.Items) == 0 {\n\t\treturn nil, nil\n\t}\n\n\treturn &service.Items[0], nil\n}\n\nfunc ModelServiceName(name string) string {\n\treturn \"ollama-srv-\" + xo.RandomHashString(6)\n}\n\nfunc ModelAppName(name string) string {\n\treturn \"ollama-model-\" + name\n}\n\nfunc ModelLabels(name string) map[string]string {\n\treturn map[string]string{\n\t\t\"app\":                        ModelAppName(name),\n\t\t\"ollama.ayaka.io/type\":       \"model\",\n\t\t\"model.ollama.ayaka.io\":      name,\n\t\t\"model.ollama.ayaka.io/name\": name,\n\t}\n}\n\nfunc OllamaModelNameFromNameReference(ref namepkg.Reference) string {\n\tparsedModelName := filepath.Base(ref.Context().RepositoryStr())\n\tif ref.Identifier() != \"latest\" {\n\t\tparsedModelName += \":\" + ref.Identifier()\n\t}\n\n\treturn parsedModelName\n}\n\nfunc ImageStoreLabels() map[string]string {\n\treturn map[string]string{\n\t\t\"app\":                  \"ollama-image-store\",\n\t\t\"ollama.ayaka.io/type\": \"image-store\",\n\t}\n}\n\nfunc ModelAnnotations(name string, imageStore bool) map[string]string {\n\treturn map[string]string{}\n}\n\nfunc getDeployment(ctx context.Context, c client.Client, namespace string, name string) (*appsv1.Deployment, error) {\n\tvar deployment appsv1.Deployment\n\n\terr := c.Get(ctx, client.ObjectKey{Namespace: namespace, Name: ModelAppName(name)}, &deployment)\n\tif err != nil {\n\t\tif errors.IsNotFound(err) {\n\t\t\treturn nil, nil\n\t\t}\n\n\t\treturn nil, err\n\t}\n\n\treturn &deployment, nil\n}\n\nfunc EnsureDeploymentCreated(\n\tctx context.Context,\n\tnamespace string,\n\tname string,\n\timage string,\n\treplicas *int32,\n\tmodel *ollamav1.Model,\n) (*appsv1.Deployment, error) {\n\tc := ClientFromContext(ctx)\n\tmodelRecorder := WrappedRecorderFromContext[*ollamav1.Model](ctx)\n\n\tdeployment, err := getDeployment(ctx, c, namespace, name)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tif deployment != nil {\n\t\treturn deployment, nil\n\t}\n\n\tref, err := namepkg.ParseReference(\n\t\timage,\n\t\tnamepkg.Insecure,\n\t\tnamepkg.WithDefaultRegistry(\"https://registry.ollama.ai\"),\n\t\tnamepkg.WithDefaultTag(\"latest\"),\n\t)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tdeployment = &appsv1.Deployment{\n\t\tObjectMeta: metav1.ObjectMeta{\n\t\t\tName:        ModelAppName(name),\n\t\t\tNamespace:   namespace,\n\t\t\tLabels:      ModelLabels(name),\n\t\t\tAnnotations: ModelAnnotations(ModelAppName(name), false),\n\t\t\tOwnerReferences: []metav1.OwnerReference{{\n\t\t\t\tAPIVersion:         model.APIVersion,\n\t\t\t\tKind:               model.Kind,\n\t\t\t\tName:               model.Name,\n\t\t\t\tUID:                model.UID,\n\t\t\t\tBlockOwnerDeletion: lo.ToPtr(true),\n\t\t\t}},\n\t\t},\n\t\tSpec: appsv1.DeploymentSpec{\n\t\t\tReplicas: lo.Ternary(replicas == nil, lo.ToPtr(int32(1)), replicas),\n\t\t\tSelector: &metav1.LabelSelector{\n\t\t\t\tMatchLabels: ModelLabels(name),\n\t\t\t},\n\t\t\tTemplate: MergePodTemplate(ctx, namespace, name, image, OllamaModelNameFromNameReference(ref), replicas, model),\n\t\t},\n\t}\n\n\terr = c.Create(ctx, deployment)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tmodelRecorder.Eventf(\"Normal\", \"DeploymentCreated\", \"Deployment %s created\", deployment.Name)\n\n\treturn deployment, nil\n}\n\nfunc MergePodTemplate(\n\tctx context.Context,\n\tnamespace string,\n\tname string,\n\timage string,\n\tparsedModelName string,\n\treplicas *int32,\n\tmodel *ollamav1.Model,\n) corev1.PodTemplateSpec {\n\tvar pod corev1.PodTemplateSpec\n\n\tif model.Spec.PodTemplate != nil {\n\t\tpod = *model.Spec.PodTemplate\n\t}\n\n\tpod.Labels = lo.Assign(pod.Labels, ModelLabels(name))\n\tpod.Annotations = lo.Assign(pod.Annotations, ModelAnnotations(ModelAppName(name), false))\n\n\tpod.Spec.InitContainers = AssignOrAppend(\n\t\tpod.Spec.InitContainers,\n\t\tFindOllamaPullerContainer,\n\t\tAssignOllamaPullerContainer(name, image, parsedModelName, namespace, model.Spec.Resources, model.Spec.ExtraEnvFrom, model.Spec.Env),\n\t\tfunc() corev1.Container {\n\t\t\treturn NewOllamaPullerContainer(name, image, parsedModelName, namespace, model.Spec.Resources, model.Spec.ExtraEnvFrom, model.Spec.Env)\n\t\t},\n\t)\n\tpod.Spec.Containers = AssignOrAppend(\n\t\tpod.Spec.Containers,\n\t\tFindOllamaServerContainer,\n\t\tAssignOllamaServerContainer(true, model.Spec.Resources, model.Spec.ExtraEnvFrom, model.Spec.Env),\n\t\tfunc() corev1.Container {\n\t\t\treturn NewOllamaServerContainer(true, model.Spec.Resources, model.Spec.ExtraEnvFrom, model.Spec.Env)\n\t\t},\n\t)\n\n\tpod.Spec.Volumes = AppendIfNotFound(pod.Spec.Volumes, func(item corev1.Volume) bool {\n\t\treturn item.Name == \"image-storage\"\n\t}, func() corev1.Volume {\n\t\treturn corev1.Volume{\n\t\t\tName: \"image-storage\",\n\t\t\tVolumeSource: corev1.VolumeSource{\n\t\t\t\tPersistentVolumeClaim: &corev1.PersistentVolumeClaimVolumeSource{\n\t\t\t\t\tClaimName: ImageStorePVCName,\n\t\t\t\t\tReadOnly:  true,\n\t\t\t\t},\n\t\t\t},\n\t\t}\n\t})\n\n\tif model.Spec.RuntimeClassName != nil {\n\t\tpod.Spec.RuntimeClassName = model.Spec.RuntimeClassName\n\t}\n\n\treturn pod\n}\n\nfunc AssignOrAppend[T any](source []T, predicate func(item T) bool, modifier func(item T, index int) T, newFn func() T) []T {\n\ttarget, index, found := lo.FindIndexOf(source, predicate)\n\tif found {\n\t\ttarget = modifier(target, index)\n\t\tsource[index] = target\n\t} else {\n\t\ttarget = newFn()\n\t\tsource = append(source, target)\n\t}\n\n\treturn source\n}\n\nfunc AppendIfNotFound[T any](source []T, predicate func(item T) bool, newFn func() T) []T {\n\t_, _, found := lo.FindIndexOf(source, predicate)\n\tif !found {\n\t\tsource = append(source, newFn())\n\t}\n\n\treturn source\n}\n\nfunc IsDeploymentReady(\n\tctx context.Context,\n\tnamespace string,\n\tname string,\n) (bool, error) {\n\tlog := log.FromContext(ctx)\n\tc := ClientFromContext(ctx)\n\tmodelRecorder := WrappedRecorderFromContext[*ollamav1.Model](ctx)\n\n\tdeployment, err := getDeployment(ctx, c, namespace, name)\n\tif err != nil {\n\t\treturn false, err\n\t}\n\n\tif deployment == nil {\n\t\treturn false, nil\n\t}\n\n\treplica := 1\n\tif deployment.Spec.Replicas != nil {\n\t\treplica = int(*deployment.Spec.Replicas)\n\t}\n\n\tif deployment.Status.ReadyReplicas == int32(replica) {\n\t\tlog.Info(\"deployment is ready\", \"deployment\", deployment)\n\t\treturn true, nil\n\t}\n\n\tlog.Info(\"waiting for deployment to be ready\", \"deployment\", deployment)\n\tmodelRecorder.Eventf(\"Normal\", \"WaitingForDeployment\", \"Waiting for deployment %s to become ready\", deployment.Name)\n\n\treturn false, nil\n}\n\nfunc UpdateDeployment(\n\tctx context.Context,\n\tmodel *ollamav1.Model,\n) (bool, error) {\n\tc := ClientFromContext(ctx)\n\tmodelRecorder := WrappedRecorderFromContext[*ollamav1.Model](ctx)\n\n\tdeployment, err := getDeployment(ctx, c, model.Namespace, model.Name)\n\tif err != nil {\n\t\treturn false, err\n\t}\n\n\tif deployment == nil {\n\t\treturn false, nil\n\t}\n\n\treplicas := 1\n\n\tif model.Spec.Replicas != nil {\n\t\treplicas = int(*model.Spec.Replicas)\n\t}\n\n\tif deployment.Spec.Replicas != nil {\n\t\tif int(*deployment.Spec.Replicas) == replicas {\n\t\t\treturn false, nil\n\t\t}\n\n\t\tdeployment.Spec.Replicas = lo.ToPtr(int32(replicas))\n\t} else {\n\t\tdeployment.Spec.Replicas = lo.ToPtr(int32(replicas))\n\t}\n\n\terr = c.Update(ctx, deployment)\n\tif err != nil {\n\t\treturn false, err\n\t}\n\n\tmodelRecorder.Eventf(corev1.EventTypeNormal, \"ModelScaled\", \"Model scaled from %d to %d\", deployment.Status.Replicas, replicas)\n\n\treturn true, nil\n}\n\nfunc NewServiceForModel(namespace, name string, deployment *appsv1.Deployment, serviceType corev1.ServiceType) *corev1.Service {\n\treturn &corev1.Service{\n\t\tObjectMeta: metav1.ObjectMeta{\n\t\t\tName:        ModelServiceName(name),\n\t\t\tNamespace:   namespace,\n\t\t\tLabels:      ModelLabels(name),\n\t\t\tAnnotations: ModelAnnotations(ModelAppName(name), false),\n\t\t\tOwnerReferences: []metav1.OwnerReference{{\n\t\t\t\tAPIVersion:         \"apps/v1\",\n\t\t\t\tKind:               \"Deployment\",\n\t\t\t\tName:               deployment.Name,\n\t\t\t\tUID:                deployment.UID,\n\t\t\t\tBlockOwnerDeletion: lo.ToPtr(true),\n\t\t\t}},\n\t\t},\n\t\tSpec: corev1.ServiceSpec{\n\t\t\tType:     serviceType,\n\t\t\tSelector: ModelLabels(name),\n\t\t\tPorts: []corev1.ServicePort{\n\t\t\t\t{\n\t\t\t\t\tName:       \"ollama\",\n\t\t\t\t\tPort:       11434,\n\t\t\t\t\tTargetPort: intstr.FromInt(11434),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t}\n}\n\nfunc EnsureServiceCreated(\n\tctx context.Context,\n\tnamespace string,\n\tname string,\n\tdeployment *appsv1.Deployment,\n) (*corev1.Service, error) {\n\tc := ClientFromContext(ctx)\n\tmodelRecorder := WrappedRecorderFromContext[*ollamav1.Model](ctx)\n\n\tservice, err := getServiceByLabels(ctx, c, namespace, ModelLabels(name))\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tif service != nil {\n\t\treturn service, nil\n\t}\n\n\tservice = NewServiceForModel(namespace, name, deployment, corev1.ServiceTypeClusterIP)\n\n\terr = c.Create(ctx, service)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tmodelRecorder.Eventf(\"Normal\", \"ServiceCreated\", \"Service %s created\", service.Name)\n\n\treturn service, nil\n}\n\nfunc IsServiceReady(\n\tctx context.Context,\n\tnamespace string,\n\tname string,\n) (bool, error) {\n\tlog := log.FromContext(ctx)\n\tc := ClientFromContext(ctx)\n\tmodelRecorder := WrappedRecorderFromContext[*ollamav1.Model](ctx)\n\n\tservice, err := getServiceByLabels(ctx, c, namespace, ModelLabels(name))\n\tif err != nil {\n\t\treturn false, err\n\t}\n\n\tif service == nil {\n\t\treturn false, nil\n\t}\n\n\tif service.Spec.ClusterIP == \"\" {\n\t\tlog.Info(\"waiting for service to have cluster IP\", \"service\", service)\n\t\tmodelRecorder.Eventf(\"Normal\", \"WaitingForService\", \"Waiting for service %s to have cluster IP\", service.Name)\n\n\t\treturn false, nil\n\t}\n\n\tlog.Info(\"service is ready\", \"service\", service)\n\n\treturn true, nil\n}\n\nfunc IsProgressing(ctx context.Context, ollamaModelResource ollamav1.Model) bool {\n\treturn len(lo.Filter(ollamaModelResource.Status.Conditions, func(item ollamav1.ModelStatusCondition, _ int) bool {\n\t\treturn item.Type == ollamav1.ModelProgressing\n\t})) > 0\n}\n\nfunc SetProgressing(\n\tctx context.Context,\n\tc client.Client,\n\tollamaModelResource ollamav1.Model,\n) (bool, error) {\n\thasProgressing := len(lo.Filter(ollamaModelResource.Status.Conditions, func(item ollamav1.ModelStatusCondition, _ int) bool {\n\t\treturn item.Type == ollamav1.ModelProgressing\n\t})) > 0\n\tif hasProgressing {\n\t\treturn false, nil\n\t}\n\n\tollamaModelResource.Status.Conditions = []ollamav1.ModelStatusCondition{\n\t\t{\n\t\t\tType:               ollamav1.ModelProgressing,\n\t\t\tStatus:             corev1.ConditionTrue,\n\t\t\tLastUpdateTime:     metav1.Now(),\n\t\t\tLastTransitionTime: metav1.Now(),\n\t\t},\n\t}\n\n\terr := c.Status().Update(ctx, &ollamaModelResource)\n\tif err != nil {\n\t\treturn false, err\n\t}\n\n\treturn true, nil\n}\n\nfunc IsAvailable(ctx context.Context, ollamaModelResource ollamav1.Model) bool {\n\treturn len(lo.Filter(ollamaModelResource.Status.Conditions, func(item ollamav1.ModelStatusCondition, _ int) bool {\n\t\treturn item.Type == ollamav1.ModelAvailable\n\t})) > 0\n}\n\nfunc SetAvailable(\n\tctx context.Context,\n\tollamaModelResource *ollamav1.Model,\n) (bool, error) {\n\tc := ClientFromContext(ctx)\n\n\thasAvailable := len(lo.Filter(ollamaModelResource.Status.Conditions, func(item ollamav1.ModelStatusCondition, _ int) bool {\n\t\treturn item.Type == ollamav1.ModelAvailable\n\t})) > 0\n\tif hasAvailable {\n\t\treturn false, nil\n\t}\n\n\tollamaModelResource.Status.Conditions = []ollamav1.ModelStatusCondition{\n\t\t{\n\t\t\tType:               ollamav1.ModelAvailable,\n\t\t\tStatus:             corev1.ConditionTrue,\n\t\t\tLastUpdateTime:     metav1.Now(),\n\t\t\tLastTransitionTime: metav1.Now(),\n\t\t},\n\t}\n\n\terr := c.Status().Update(ctx, ollamaModelResource)\n\tif err != nil {\n\t\treturn false, err\n\t}\n\n\treturn true, nil\n}\n\nfunc ShouldSetReplicas(\n\tctx context.Context,\n\tollamaModelResource *ollamav1.Model,\n\treplicas int32,\n\treadyReplicas int32,\n\tavailableReplicas int32,\n\tunavailableReplicas int32,\n) bool {\n\treturn ollamaModelResource.Status.Replicas != replicas ||\n\t\tollamaModelResource.Status.ReadyReplicas != readyReplicas ||\n\t\tollamaModelResource.Status.AvailableReplicas != availableReplicas ||\n\t\tollamaModelResource.Status.UnavailableReplicas != unavailableReplicas\n}\n\nfunc SetReplicas(\n\tctx context.Context,\n\tollamaModelResource *ollamav1.Model,\n\treplicas int32,\n\treadyReplicas int32,\n\tavailableReplicas int32,\n\tunavailableReplicas int32,\n) (bool, error) {\n\tc := ClientFromContext(ctx)\n\n\tollamaModelResource.Status.Replicas = replicas\n\tollamaModelResource.Status.ReadyReplicas = readyReplicas\n\tollamaModelResource.Status.AvailableReplicas = availableReplicas\n\tollamaModelResource.Status.UnavailableReplicas = unavailableReplicas\n\n\terr := c.Status().Update(ctx, ollamaModelResource)\n\tif err != nil {\n\t\treturn false, err\n\t}\n\n\treturn true, nil\n}\n"
  },
  {
    "path": "pkg/model/model_test.go",
    "content": "package model\n\nimport (\n\t\"path/filepath\"\n\t\"testing\"\n\n\t\"github.com/google/go-containerregistry/pkg/name\"\n\t\"github.com/stretchr/testify/assert\"\n\t\"github.com/stretchr/testify/require\"\n)\n\nfunc TestModelNameFromImage(t *testing.T) {\n\tref, err := name.ParseReference(\n\t\t\"deepseek-r1\",\n\t\tname.Insecure,\n\t\tname.WithDefaultRegistry(\"https://registry.ollama.ai\"),\n\t\tname.WithDefaultTag(\"latest\"),\n\t)\n\trequire.NoError(t, err)\n\tassert.Equal(t, \"deepseek-r1\", ref.Context().RepositoryStr())\n\tassert.Equal(t, \"latest\", ref.Identifier())\n\tassert.Equal(t, \"deepseek-r1\", ref.String())\n\n\tref, err = name.ParseReference(\n\t\t\"deepseek-r1:7b\",\n\t\tname.Insecure,\n\t\tname.WithDefaultRegistry(\"https://registry.ollama.ai\"),\n\t\tname.WithDefaultTag(\"latest\"),\n\t)\n\trequire.NoError(t, err)\n\tassert.Equal(t, \"deepseek-r1\", ref.Context().RepositoryStr())\n\tassert.Equal(t, \"7b\", ref.Identifier())\n\tassert.Equal(t, \"deepseek-r1:7b\", ref.String())\n\n\tref, err = name.ParseReference(\n\t\t\"registry.ollama.ai/library/deepseek-r1:7b\",\n\t\tname.Insecure,\n\t\tname.WithDefaultRegistry(\"https://registry.ollama.ai\"),\n\t\tname.WithDefaultTag(\"latest\"),\n\t)\n\trequire.NoError(t, err)\n\tassert.Equal(t, \"library/deepseek-r1\", ref.Context().RepositoryStr())\n\tassert.Equal(t, \"deepseek-r1\", filepath.Base(ref.Context().RepositoryStr()))\n\tassert.Equal(t, \"7b\", ref.Identifier())\n\tassert.Equal(t, \"registry.ollama.ai/library/deepseek-r1:7b\", ref.String())\n}\n"
  },
  {
    "path": "pkg/model/pod.go",
    "content": "package model\n\nimport (\n\t\"bytes\"\n\t\"context\"\n\t\"encoding/json\"\n\t\"io\"\n\t\"net/http\"\n\n\t\"github.com/samber/lo\"\n\tcorev1 \"k8s.io/api/core/v1\"\n\t\"k8s.io/apimachinery/pkg/util/intstr\"\n\t\"moul.io/http2curl/v2\"\n)\n\nconst (\n\tOllamaBaseImage = \"ollama/ollama\"\n)\n\nfunc FindOllamaServerContainer(container corev1.Container) bool {\n\treturn container.Name == \"server\"\n}\n\nfunc UniqEnvVar(env []corev1.EnvVar) []corev1.EnvVar {\n\treturn lo.UniqBy(env, func(item corev1.EnvVar) string {\n\t\treturn item.Name\n\t})\n}\n\nfunc AssignOllamaServerContainer(readOnly bool, resources corev1.ResourceRequirements, extraEnvFrom []corev1.EnvFromSource, extraEnv []corev1.EnvVar) func(container corev1.Container, _ int) corev1.Container {\n\treturn func(container corev1.Container, _ int) corev1.Container {\n\t\tcontainer.Image = OllamaBaseImage\n\t\tcontainer.Args = []string{\n\t\t\t\"serve\",\n\t\t}\n\n\t\tcontainer.EnvFrom = append(container.EnvFrom, extraEnvFrom...)\n\t\t_, configuredOllamaPortAsEnvFrom := lo.Find(container.EnvFrom, func(item corev1.EnvFromSource) bool {\n\t\t\treturn item.Prefix == \"OLLAMA_PORT\"\n\t\t})\n\n\t\tcontainer.Env = append(container.Env, extraEnv...)\n\t\tcontainer.Env = AppendIfNotFound(container.Env, func(item corev1.EnvVar) bool {\n\t\t\treturn item.Name == \"OLLAMA_HOST\"\n\t\t}, func() corev1.EnvVar {\n\t\t\treturn corev1.EnvVar{\n\t\t\t\tName:  \"OLLAMA_HOST\",\n\t\t\t\tValue: \"0.0.0.0\",\n\t\t\t}\n\t\t})\n\n\t\t_, configuredOllamaPort := lo.Find(container.Env, func(item corev1.EnvVar) bool {\n\t\t\treturn item.Name == \"OLLAMA_PORT\"\n\t\t})\n\n\t\tif !configuredOllamaPort && !configuredOllamaPortAsEnvFrom {\n\t\t\tcontainer.Ports = AppendIfNotFound(container.Ports, func(item corev1.ContainerPort) bool {\n\t\t\t\treturn item.ContainerPort == 11434\n\t\t\t}, func() corev1.ContainerPort {\n\t\t\t\treturn corev1.ContainerPort{\n\t\t\t\t\tName:          \"ollama\",\n\t\t\t\t\tProtocol:      corev1.ProtocolTCP,\n\t\t\t\t\tContainerPort: 11434,\n\t\t\t\t}\n\t\t\t})\n\t\t}\n\n\t\tcontainer.VolumeMounts = AppendIfNotFound(container.VolumeMounts, func(item corev1.VolumeMount) bool {\n\t\t\treturn item.Name == \"image-storage\"\n\t\t}, func() corev1.VolumeMount {\n\t\t\treturn corev1.VolumeMount{\n\t\t\t\tName:      \"image-storage\",\n\t\t\t\tMountPath: \"/root/.ollama\",\n\t\t\t\tReadOnly:  readOnly,\n\t\t\t}\n\t\t})\n\n\t\tcontainer.Resources.Limits = lo.Assign(container.Resources.Limits, resources.Limits)\n\t\tcontainer.Resources.Requests = lo.Assign(container.Resources.Requests, resources.Requests)\n\n\t\tcontainer.ReadinessProbe = &corev1.Probe{\n\t\t\tProbeHandler: corev1.ProbeHandler{\n\t\t\t\tHTTPGet: &corev1.HTTPGetAction{\n\t\t\t\t\tPath: \"/api/tags\",\n\t\t\t\t\tPort: intstr.FromString(\"ollama\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tInitialDelaySeconds: 5,\n\t\t\tSuccessThreshold:    1,\n\t\t\tFailureThreshold:    2500,\n\t\t\tTimeoutSeconds:      5,\n\t\t}\n\n\t\tcontainer.LivenessProbe = &corev1.Probe{\n\t\t\tProbeHandler: corev1.ProbeHandler{\n\t\t\t\tHTTPGet: &corev1.HTTPGetAction{\n\t\t\t\t\tPath: \"/api/tags\",\n\t\t\t\t\tPort: intstr.FromString(\"ollama\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tInitialDelaySeconds: 5,\n\t\t\tSuccessThreshold:    1,\n\t\t\tFailureThreshold:    2500,\n\t\t\tTimeoutSeconds:      1,\n\t\t}\n\n\t\treturn container\n\t}\n}\n\nfunc NewOllamaServerContainer(readOnly bool, resources corev1.ResourceRequirements, extraEnvFrom []corev1.EnvFromSource, extraEnv []corev1.EnvVar) corev1.Container {\n\treturn corev1.Container{\n\t\tName:  \"server\",\n\t\tImage: OllamaBaseImage,\n\t\tArgs: []string{\n\t\t\t\"serve\",\n\t\t},\n\t\tEnv: UniqEnvVar(\n\t\t\tappend(\n\t\t\t\tappend([]corev1.EnvVar{}, corev1.EnvVar{\n\t\t\t\t\tName:  \"OLLAMA_HOST\",\n\t\t\t\t\tValue: \"0.0.0.0\",\n\t\t\t\t}),\n\t\t\t\textraEnv...,\n\t\t\t),\n\t\t),\n\t\tEnvFrom: extraEnvFrom,\n\t\tPorts: []corev1.ContainerPort{\n\t\t\t{\n\t\t\t\tName:          \"ollama\",\n\t\t\t\tProtocol:      corev1.ProtocolTCP,\n\t\t\t\tContainerPort: 11434,\n\t\t\t},\n\t\t},\n\t\tVolumeMounts: []corev1.VolumeMount{\n\t\t\t{\n\t\t\t\tName:      \"image-storage\",\n\t\t\t\tMountPath: \"/root/.ollama\",\n\t\t\t\tReadOnly:  readOnly,\n\t\t\t},\n\t\t},\n\t\tResources: corev1.ResourceRequirements{\n\t\t\tLimits:   lo.Ternary(len(resources.Limits) == 0, nil, resources.Limits),\n\t\t\tRequests: lo.Ternary(len(resources.Requests) == 0, nil, resources.Requests),\n\t\t},\n\t\tReadinessProbe: &corev1.Probe{\n\t\t\tProbeHandler: corev1.ProbeHandler{\n\t\t\t\tHTTPGet: &corev1.HTTPGetAction{\n\t\t\t\t\tPath: \"/api/tags\",\n\t\t\t\t\tPort: intstr.FromString(\"ollama\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tInitialDelaySeconds: 5,\n\t\t\tSuccessThreshold:    1,\n\t\t\tFailureThreshold:    2500,\n\t\t\tTimeoutSeconds:      5,\n\t\t},\n\t\tLivenessProbe: &corev1.Probe{\n\t\t\tProbeHandler: corev1.ProbeHandler{\n\t\t\t\tHTTPGet: &corev1.HTTPGetAction{\n\t\t\t\t\tPath: \"/api/tags\",\n\t\t\t\t\tPort: intstr.FromString(\"ollama\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tInitialDelaySeconds: 5,\n\t\t\tSuccessThreshold:    1,\n\t\t\tFailureThreshold:    2500,\n\t\t\tTimeoutSeconds:      1,\n\t\t},\n\t}\n}\n\nfunc FindOllamaPullerContainer(container corev1.Container) bool {\n\treturn container.Name == \"ollama-image-pull\"\n}\n\nfunc ioReaderOfJsonBody(body map[string]any) (io.Reader, error) {\n\tjsonBytes, err := json.Marshal(body)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tbuffer := bytes.NewBuffer(jsonBytes)\n\n\treturn buffer, nil\n}\n\nfunc ollamaPull(image string) string {\n\tpullRequest := lo.Must(http.NewRequestWithContext(context.TODO(), http.MethodPost, \"http://ollama-models-store:11434/api/pull\", lo.Must(ioReaderOfJsonBody(map[string]any{\"model\": image}))))\n\tpullRequest.Header.Set(\"Content-Type\", \"application/json\")\n\n\tpullModelCurlCommand := lo.Must(http2curl.GetCurlCommand(pullRequest))\n\n\treturn pullModelCurlCommand.String()\n}\n\nfunc ollamaGenerate(image string) string {\n\tgenerateRequest := lo.Must(http.NewRequestWithContext(context.TODO(), http.MethodPost, \"http://ollama-models-store:11434/api/generate\", lo.Must(ioReaderOfJsonBody(map[string]any{\"model\": image}))))\n\tgenerateRequest.Header.Set(\"Content-Type\", \"application/json\")\n\n\tgenerateModelCurlCommand := lo.Must(http2curl.GetCurlCommand(generateRequest))\n\n\treturn generateModelCurlCommand.String()\n}\n\nfunc AssignOllamaPullerContainer(name string, image string, parsedModelName string, serverLocatedNamespace string, resources corev1.ResourceRequirements, extraEnvFrom []corev1.EnvFromSource, extraEnv []corev1.EnvVar) func(container corev1.Container, _ int) corev1.Container {\n\treturn func(container corev1.Container, _ int) corev1.Container {\n\t\tcontainer.Command = []string{\n\t\t\t\"sh\",\n\t\t}\n\n\t\tcontainer.Args = []string{\n\t\t\t\"-c\",\n\t\t\t// TODO: This is a temporary solution, we need to find a better way to preload the models\n\t\t\t\"until curl -f http://ollama-models-store:11434/api/version; do echo 'Waiting for Ollama...'; sleep 5; done && \" + ollamaPull(image) + \" && \" + ollamaGenerate(parsedModelName),\n\t\t}\n\n\t\tcontainer.Env = AppendIfNotFound(container.Env, func(item corev1.EnvVar) bool {\n\t\t\treturn item.Name == \"OLLAMA_HOST\"\n\t\t}, func() corev1.EnvVar {\n\t\t\treturn corev1.EnvVar{\n\t\t\t\tName:  \"OLLAMA_HOST\",\n\t\t\t\tValue: \"ollama-models-store.\" + serverLocatedNamespace,\n\t\t\t}\n\t\t})\n\n\t\treturn container\n\t}\n}\n\nfunc NewOllamaPullerContainer(name string, image string, parsedModelName string, serverLocatedNamespace string, resources corev1.ResourceRequirements, extraEnvFrom []corev1.EnvFromSource, extraEnv []corev1.EnvVar) corev1.Container {\n\treturn corev1.Container{\n\t\tName:  \"ollama-image-pull\",\n\t\tImage: \"curlimages/curl\",\n\t\tCommand: []string{\n\t\t\t\"sh\",\n\t\t},\n\t\tArgs: []string{\n\t\t\t\"-c\",\n\t\t\t// TODO: This is a temporary solution, we need to find a better way to preload the models\n\t\t\t\"until curl -f http://ollama-models-store:11434/api/version; do echo 'Waiting for Ollama...'; sleep 5; done && \" + ollamaPull(image) + \" && \" + ollamaGenerate(parsedModelName),\n\t\t},\n\t\tEnv: []corev1.EnvVar{\n\t\t\t{\n\t\t\t\tName:  \"OLLAMA_HOST\",\n\t\t\t\tValue: \"ollama-models-store.\" + serverLocatedNamespace,\n\t\t\t},\n\t\t},\n\t}\n}\n"
  },
  {
    "path": "pkg/model/pod_test.go",
    "content": "package model\n\nimport (\n\t\"testing\"\n\n\t\"github.com/stretchr/testify/assert\"\n)\n\nfunc TestOllamaPull(t *testing.T) {\n\tcommand := ollamaPull(\"gemma3:270m\")\n\tassert.Equal(t, \"curl -X 'POST' -d '{\\\"model\\\":\\\"gemma3:270m\\\"}' -H 'Content-Type: application/json' 'http://ollama-models-store:11434/api/pull'\", command)\n}\n\nfunc TestOllamaGenerate(t *testing.T) {\n\tcommand := ollamaGenerate(\"gemma3:270m\")\n\tassert.Equal(t, \"curl -X 'POST' -d '{\\\"model\\\":\\\"gemma3:270m\\\"}' -H 'Content-Type: application/json' 'http://ollama-models-store:11434/api/generate'\", command)\n}\n"
  },
  {
    "path": "pkg/model/recorder.go",
    "content": "package model\n\nimport (\n\t\"context\"\n\n\t\"k8s.io/apimachinery/pkg/runtime\"\n\t\"k8s.io/client-go/tools/record\"\n\t\"sigs.k8s.io/controller-runtime/pkg/client\"\n)\n\ntype WrappedRecorder[T runtime.Object] struct {\n\trecorder record.EventRecorder\n\tt        T\n}\n\nfunc NewWrappedRecorder[T runtime.Object](recorder record.EventRecorder, object T) *WrappedRecorder[T] {\n\treturn &WrappedRecorder[T]{\n\t\trecorder: recorder,\n\t\tt:        object,\n\t}\n}\n\nfunc (r *WrappedRecorder[T]) Event(eventType, reason, message string) {\n\tr.recorder.Event(r.t, eventType, reason, message)\n}\n\n// Eventf is just like Event, but with Sprintf for the message field.\nfunc (r *WrappedRecorder[T]) Eventf(eventType, reason, messageFmt string, args ...any) {\n\tr.recorder.Eventf(r.t, eventType, reason, messageFmt, args...)\n}\n\n// AnnotatedEventf is just like eventf, but with annotations attached\nfunc (r *WrappedRecorder[T]) AnnotatedEventf(annotations map[string]string, eventType, reason, messageFmt string, args ...any) {\n\tr.recorder.AnnotatedEventf(r.t, annotations, eventType, reason, messageFmt, args...)\n}\n\ntype baseWrapperRecorderContextKey string\n\nfunc NewWrappedRecorderContextKey(key string) baseWrapperRecorderContextKey {\n\treturn baseWrapperRecorderContextKey(key)\n}\n\nconst (\n\tdefaultBaseWrapperRecorderContextKey baseWrapperRecorderContextKey = \"default\"\n)\n\nfunc WithWrappedRecorder[T runtime.Object](ctx context.Context, recorder *WrappedRecorder[T], key ...baseWrapperRecorderContextKey) context.Context {\n\tif len(key) == 0 {\n\t\treturn context.WithValue(ctx, defaultBaseWrapperRecorderContextKey, recorder)\n\t}\n\n\treturn context.WithValue(ctx, key[0], recorder)\n}\n\nfunc WrappedRecorderFromContext[T runtime.Object](ctx context.Context, key ...baseWrapperRecorderContextKey) *WrappedRecorder[T] {\n\tif len(key) == 0 {\n\t\tr, _ := ctx.Value(defaultBaseWrapperRecorderContextKey).(*WrappedRecorder[T])\n\t\treturn r\n\t}\n\n\tr, _ := ctx.Value(key[0]).(*WrappedRecorder[T])\n\n\treturn r\n}\n\ntype baseClientContextKey string\n\nconst (\n\tdefaultBaseClientContextKey baseClientContextKey = \"default\"\n)\n\nfunc NewClientContextKey(key string) baseClientContextKey {\n\treturn baseClientContextKey(key)\n}\n\nfunc WithClient(ctx context.Context, client client.Client, key ...baseClientContextKey) context.Context {\n\tif len(key) == 0 {\n\t\treturn context.WithValue(ctx, defaultBaseClientContextKey, client)\n\t}\n\n\treturn context.WithValue(ctx, key[0], client)\n}\n\nfunc ClientFromContext(ctx context.Context, key ...baseClientContextKey) client.Client {\n\tif len(key) == 0 {\n\t\tc, _ := ctx.Value(defaultBaseClientContextKey).(client.Client)\n\t\treturn c\n\t}\n\n\tc, _ := ctx.Value(key[0]).(client.Client)\n\n\treturn c\n}\n"
  },
  {
    "path": "pkg/operator/reconcile.go",
    "content": "package operator\n\nimport (\n\t\"context\"\n\t\"errors\"\n\t\"fmt\"\n\t\"time\"\n\n\t\"k8s.io/apimachinery/pkg/runtime\"\n\tctrl \"sigs.k8s.io/controller-runtime\"\n\t\"sigs.k8s.io/controller-runtime/pkg/log\"\n\t\"sigs.k8s.io/controller-runtime/pkg/reconcile\"\n\n\t\"github.com/samber/lo\"\n)\n\nfunc ResultFromError(err error) (*ctrl.Result, error) {\n\tif err == nil {\n\t\treturn &ctrl.Result{}, nil\n\t}\n\n\tvar requeueErr *RequeueError\n\tif errors.As(err, &requeueErr) {\n\t\treturn lo.ToPtr(requeueErr.Result()), requeueErr.err\n\t}\n\n\treturn nil, err\n}\n\nfunc HandleError(ctx context.Context, result *ctrl.Result, err error) (ctrl.Result, error) {\n\tlog := log.FromContext(ctx)\n\n\tif result != nil && err != nil {\n\t\tlog.Error(err, \"Requeue\", \"after\", result.RequeueAfter)\n\t\treturn *result, err\n\t}\n\n\tif result != nil {\n\t\treturn *result, nil\n\t}\n\n\treturn ctrl.Result{}, err\n}\n\ntype SubReconciler[T runtime.Object] struct {\n\tversion   string\n\tgroup     string\n\tkind      string\n\treconcile func(ctx context.Context, ns string, name string, m T) error\n}\n\ntype SubReconcilers[T runtime.Object] []SubReconciler[T]\n\nfunc (s SubReconcilers[T]) Reconcile(ctx context.Context, req ctrl.Request, m T) error {\n\tlog := log.FromContext(ctx)\n\n\tfor _, subReconciler := range s {\n\t\tlog.Info(\"Reconciling\", \"kind\", subReconciler.kind)\n\n\t\terr := subReconciler.reconcile(ctx, req.Namespace, req.Name, m)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t}\n\n\treturn nil\n}\n\nfunc NewSubReconcilers[T runtime.Object](reconcilers ...SubReconciler[T]) SubReconcilers[T] {\n\treturn reconcilers\n}\n\ntype ReconcileHandler[T runtime.Object] func(ctx context.Context, ns string, name string, m T) error\n\nfunc NewPVCReconciler[T runtime.Object](fn ReconcileHandler[T]) SubReconciler[T] {\n\treturn SubReconciler[T]{\n\t\tversion:   \"v1\",\n\t\tgroup:     \"core\",\n\t\tkind:      \"PersistentVolumeClaim\",\n\t\treconcile: fn,\n\t}\n}\n\nfunc NewStatefulSetReconciler[T runtime.Object](fn ReconcileHandler[T]) SubReconciler[T] {\n\treturn SubReconciler[T]{\n\t\tversion:   \"v1\",\n\t\tgroup:     \"apps\",\n\t\tkind:      \"StatefulSet\",\n\t\treconcile: fn,\n\t}\n}\n\nfunc NewServiceReconciler[T runtime.Object](fn ReconcileHandler[T]) SubReconciler[T] {\n\treturn SubReconciler[T]{\n\t\tversion:   \"v1\",\n\t\tgroup:     \"core\",\n\t\tkind:      \"Service\",\n\t\treconcile: fn,\n\t}\n}\n\nfunc NewDeploymentReconciler[T runtime.Object](fn ReconcileHandler[T]) SubReconciler[T] {\n\treturn SubReconciler[T]{\n\t\tversion:   \"v1\",\n\t\tgroup:     \"apps\",\n\t\tkind:      \"Deployment\",\n\t\treconcile: fn,\n\t}\n}\n\nfunc RequeueAfter(d time.Duration) error {\n\treturn &RequeueError{after: d}\n}\n\nfunc RequeueAfterWithError(d time.Duration, err error) error {\n\treturn &RequeueError{after: d, err: err}\n}\n\ntype RequeueError struct {\n\tafter time.Duration\n\terr   error\n}\n\nfunc (r *RequeueError) Error() string {\n\tif r.err != nil {\n\t\treturn fmt.Sprintf(\"encountered an error: %v, requeue after %d\", r.err, r.after.Milliseconds())\n\t}\n\n\treturn fmt.Sprintf(\"requeue after %d\", r.after.Milliseconds())\n}\n\nfunc (r *RequeueError) Result() reconcile.Result {\n\treturn reconcile.Result{Requeue: true, RequeueAfter: r.after}\n}\n"
  }
]