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

inherit tolerations and nodeSelector from tserver #179

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dgparker
Copy link

resolves #178

per discussion in issue, inherit tolerations from tserver and nodeSelector from root.

test output:

# Source: yugabyte/templates/hooks/setup-credentials-job.yaml
apiVersion: batch/v1
kind: Job
metadata:
  name: release-name-yugabyte-setup-credentials
  namespace: "default"
  labels:
    app: "setup-credentials"
    release: "release-name"
    chart: "yugabyte"
    component: "yugabytedb"
  annotations:
    "helm.sh/hook": post-install
    "helm.sh/hook-weight": "0"
    "helm.sh/hook-delete-policy": hook-succeeded
spec:
  backoffLimit: 2
  template:
    metadata:
      name: "setup-credentials"
      labels:
        app: "setup-credentials"
        release: "release-name"
        chart: "yugabyte"
        component: "yugabytedb"
    spec:
      nodeSelector:
        diskType: ssd
      tolerations:
        - effect: NoSchedule
          key: test
          operator: Equal
          value: test
      restartPolicy: Never
      containers:
      - name: setup-credentials
        image: "yugabytedb/yugabyte:2.19.3.0-b140"
        env:
        - name: YSQL_USER
          value: "test"
        - name: YSQL_PASSWORD
          value: "test"
        - name: YSQL_DB
          value: "test"
        command:
        - 'bash'
        - '/home/yugabyte/bin/setup-credentials/setup-credentials.sh'
        volumeMounts:
        - name: setup-credentials-script
          mountPath: "/home/yugabyte/bin/setup-credentials"
      volumes:
      - name: setup-credentials-script
        configMap:
          name: release-name-yugabyte-setup-credentials-script

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.

Tolerations not added to setup-credentials-job
1 participant