Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose nodeselector and affinity keys in Helm chart #1338

Merged

Conversation

mach-kernel
Copy link
Contributor

I want to deploy Spice on its own K8S nodegroup. To do so, I need to be able to set the node selector key to match my Karpenter provisioner.

Example value:

affinity:
  nodeAffinity:
    requiredDuringSchedulingIgnoredDuringExecution:
      nodeSelectorTerms:
      - matchExpressions:
          - key: karpenter.sh/provisioner-name
            operator: In
            values:
              - spice

helm template:

# Source: spiceai/templates/spiceai.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: release-name
  labels:
    app: release-name
spec:
  replicas: 1
  selector:
    matchLabels:
      app: release-name
  template:
    metadata:
      labels:
        app: release-name
      annotations:
        checksum/spicepod: d78b43d9c95e511b38cc1449cb06d3c7e2139705f05014f45c01c0d65ba2e327
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
            - matchExpressions:
              - key: karpenter.sh/provisioner-name
                operator: In
                values:
                - spice
      containers:
        - name: spiceai
          image: spiceai/spiceai:0.12.1-alpha
          imagePullPolicy: Always

@mach-kernel mach-kernel requested a review from a team as a code owner May 8, 2024 13:51
@phillipleblanc phillipleblanc self-assigned this May 8, 2024
@phillipleblanc phillipleblanc enabled auto-merge (squash) May 8, 2024 14:02
@phillipleblanc phillipleblanc added this to the v0.13-alpha milestone May 8, 2024
@phillipleblanc phillipleblanc merged commit 909c0a9 into spiceai:trunk May 8, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants