|
| 1 | +# Migration from Launcher to native Kubernetes runner with templateValues. |
| 2 | +# Each field is annotated with its original launcher.templateValues path. |
| 3 | + |
| 4 | +sharedStorage: |
| 5 | + create: true |
| 6 | + mount: true |
| 7 | + storageClassName: nfs-sc-rwx # TODO: Change to your RWX StorageClass |
| 8 | + requests: |
| 9 | + storage: 100G |
| 10 | + |
| 11 | +launcher: |
| 12 | + enabled: false |
| 13 | + |
| 14 | +backends: |
| 15 | + kubernetes: |
| 16 | + enabled: true |
| 17 | + defaultResourceJobBase: |
| 18 | + metadata: |
| 19 | + labels: # Was: templateValues.job.labels |
| 20 | + app.example.com/managed-by: connect |
| 21 | + annotations: # Was: templateValues.job.annotations |
| 22 | + app.example.com/team: data-science |
| 23 | + spec: |
| 24 | + template: |
| 25 | + metadata: |
| 26 | + labels: # Was: templateValues.pod.labels |
| 27 | + app.example.com/content: "true" |
| 28 | + annotations: # Was: templateValues.pod.annotations |
| 29 | + app.example.com/tier: compute |
| 30 | + spec: |
| 31 | + nodeSelector: # Was: templateValues.pod.nodeSelector |
| 32 | + workload: content |
| 33 | + tolerations: # Was: templateValues.pod.tolerations |
| 34 | + - key: "dedicated" |
| 35 | + operator: "Equal" |
| 36 | + value: "content" |
| 37 | + effect: "NoSchedule" |
| 38 | + affinity: # Was: templateValues.pod.affinity |
| 39 | + podAntiAffinity: |
| 40 | + preferredDuringSchedulingIgnoredDuringExecution: |
| 41 | + - weight: 100 |
| 42 | + podAffinityTerm: |
| 43 | + labelSelector: |
| 44 | + matchLabels: |
| 45 | + app.example.com/content: "true" |
| 46 | + topologyKey: kubernetes.io/hostname |
| 47 | + securityContext: # Was: templateValues.pod.securityContext and pod.defaultSecurityContext |
| 48 | + runAsUser: 999 |
| 49 | + runAsGroup: 999 |
| 50 | + fsGroup: 999 |
| 51 | + serviceAccountName: connect-content-sa # Was: templateValues.pod.serviceAccountName |
| 52 | + # NOTE: SA must be labeled: kubectl label sa connect-content-sa connect.posit.co/service-account=true |
| 53 | + imagePullSecrets: # Was: templateValues.pod.imagePullSecrets |
| 54 | + - name: registry-credentials # TODO: Change to your image pull secret |
| 55 | + priorityClassName: "" # Was: templateValues.pod.priorityClassName |
| 56 | + hostAliases: # Was: templateValues.pod.hostAliases |
| 57 | + - ip: "10.0.0.50" |
| 58 | + hostnames: |
| 59 | + - "internal-api.example.com" |
| 60 | + volumes: # Was: templateValues.pod.volumes |
| 61 | + - name: extra-config |
| 62 | + configMap: |
| 63 | + name: content-config |
| 64 | + initContainers: # Was: templateValues.pod.initContainers |
| 65 | + # The chart auto-generates connect-content-init; custom init containers run alongside it. |
| 66 | + - name: wait-for-db |
| 67 | + image: busybox:latest |
| 68 | + command: ["sh", "-c", "echo waiting for dependencies"] |
| 69 | + containers: |
| 70 | + - name: log-forwarder # Was: templateValues.pod.extraContainers |
| 71 | + image: fluent/fluent-bit:latest |
| 72 | + resources: |
| 73 | + requests: |
| 74 | + cpu: "50m" |
| 75 | + memory: "64Mi" |
| 76 | + - name: connect-content # Must use this exact name for the content container |
| 77 | + env: # Was: templateValues.pod.env |
| 78 | + - name: DATABASE_URL |
| 79 | + valueFrom: |
| 80 | + secretKeyRef: |
| 81 | + name: app-secrets |
| 82 | + key: database-url |
| 83 | + resources: # Was: templateValues.pod.resources |
| 84 | + requests: |
| 85 | + memory: "1Gi" |
| 86 | + cpu: "500m" |
| 87 | + limits: |
| 88 | + memory: "4Gi" |
| 89 | + cpu: "2" |
| 90 | + imagePullPolicy: IfNotPresent # Was: templateValues.pod.imagePullPolicy |
| 91 | + securityContext: # Was: templateValues.pod.containerSecurityContext |
| 92 | + allowPrivilegeEscalation: false |
| 93 | + volumeMounts: # Was: templateValues.pod.volumeMounts |
| 94 | + - name: extra-config |
| 95 | + mountPath: /etc/content-config |
| 96 | + readOnly: true |
| 97 | + |
| 98 | + defaultResourceServiceBase: |
| 99 | + metadata: |
| 100 | + labels: # Was: templateValues.service.labels |
| 101 | + app.example.com/service: content |
| 102 | + annotations: # Was: templateValues.service.annotations |
| 103 | + app.example.com/tier: compute |
| 104 | + spec: |
| 105 | + type: ClusterIP # Was: templateValues.service.type |
| 106 | + |
| 107 | +config: |
| 108 | + # ... your existing config ... |
| 109 | + |
| 110 | + Kubernetes: # Was: config.Launcher |
| 111 | + DataDirPVCName: connect-shared-storage # TODO: Change if you use a custom sharedStorage.name |
0 commit comments