Skip to content

Commit 5cef7c7

Browse files
authored
Port Over Changes From Kinnon's Branch (#11644)
* Port Over Changes * Fix Link
1 parent bc09e1b commit 5cef7c7

File tree

4 files changed

+71
-10
lines changed

4 files changed

+71
-10
lines changed
File renamed without changes.
Lines changed: 68 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ helpdocs_topic_id: cjtk5rw8z4
66
helpdocs_category_id: vm60533pvt
77
helpdocs_is_private: false
88
helpdocs_is_published: true
9+
redirect_from:
10+
- /docs/platform/delegates/delegate-reference/YAML/example-kubernetes-manifest-harness-delegate
911
---
1012

1113
Go to the following for an example of a Kubernetes manifest that you can use to configure Harness Delegate and the Helm chart default `values.yaml` file.
@@ -252,18 +254,25 @@ spec:
252254
<summary>Helm chart default `values.yaml` file</summary>
253255
<br />
254256

255-
[Helm chart default `values.yaml` file](https://github.com/harness/delegate-helm-chart/blob/main/harness-delegate-ng/values.yaml)
257+
For the latest references, see the most up-to-date [Helm chart default `values.yaml` file example found in our repository](https://github.com/harness/delegate-helm-chart/blob/main/harness-delegate-ng/values.yaml).
256258

257259
```yaml
258-
# Default configuration values for the Harness Delegate NextGen.
260+
# Default values for delegate-ng.
259261
# This is a YAML-formatted file.
260262
# Declare variables to be passed into your templates.
261263

262264
image:
263265
pullPolicy: Always
266+
# Uncomment below lines to use a custom registry + repository, a different repository or a different tag, this will override the delegateDockerImage
267+
# registry: null
268+
# repository: null
269+
# tag: null
264270

265271
fullnameOverride: ""
266272

273+
mTLS:
274+
secretName: ""
275+
267276
serviceAccount:
268277
# Specifies whether a service account should be created.
269278
create: true
@@ -274,7 +283,7 @@ serviceAccount:
274283
name: ""
275284

276285
service:
277-
# type: ClusterIP
286+
# type: ClusterIP
278287
port: 8080
279288

280289
# Edit this if you want to enable horizontal pod autoscaling.
@@ -297,17 +306,23 @@ delegateName: harness-delegate-ng
297306

298307
deployMode: "KUBERNETES"
299308

300-
delegateDockerImage: harness/delegate:24.01.82108
309+
delegateDockerImage: harness/delegate:25.08.86503
301310

302-
# Annotations for delegate deployment; Prometheus is added by default.
311+
commonAnnotations: {} # Annotations that will be applied to all resources
312+
delegateAnnotations: {} # Annotations that will be applied to both pod and deployment spec for Delegate
313+
# Annotations for delegate deployment, prometheus is added by default
303314
annotations:
304315
prometheus.io/scrape: "true"
305316
prometheus.io/port: "3460"
306317
prometheus.io/path: "/api/metrics"
307318

319+
commonLabels: {} # Labels that will be applied to all resources
320+
delegatePodLabels: {} # Labels that will be applied to pod spec
321+
delegateLabels: {} # Labels that will be applied to both deployment and pod spec for Delegate
322+
308323
imagePullSecret: ""
309324

310-
# Endpoint that will point to the Harness platform. For accessing SaaS platform use the default value.
325+
# Endpoint that will point to the Harness platform. For accessing the SaaS platform, use the default value.
311326
managerEndpoint: https://app.harness.io
312327

313328
# If socket connection is not supported, set this flag to true to poll tasks using REST API calls.
@@ -342,7 +357,24 @@ replicas: 1
342357
# possible due to custom volumes or mounts that can only be attached to a single pod.
343358
deploymentStrategy: "RollingUpdate"
344359

345-
# Resource limits of the container running the delegate image in Kubernetes.
360+
# Rolling update configuration (only applies when deploymentStrategy is "RollingUpdate").
361+
# By default, these are not set so Kubernetes uses its own defaults (currently 25%).
362+
# Uncomment and set if you want to override the defaults. You may use integers or percentage strings (e.g., "25%")
363+
# rollingUpdate:
364+
# # Maximum number of pods that can be created above the desired replica count during updates
365+
# maxSurge: "25%"
366+
# # Maximum number of pods that can be unavailable during the update process
367+
# maxUnavailable: "25%"
368+
369+
# Resource limits of container running delegate image in kubernetes
370+
# If you want to set custom resource limits, uncomment the below line and set the values for cpu and memory request/limit
371+
# resources:
372+
# limits:
373+
# cpu: 1
374+
# memory: 2048Mi
375+
# requests:
376+
# cpu: 1
377+
# memory: 2048Mi
346378
cpu: 1
347379
memory: 2048
348380

@@ -357,15 +389,31 @@ javaOpts: "-Xms64M"
357389
upgrader:
358390
enabled: true
359391
upgraderDockerImage: "harness/upgrader:latest"
392+
registryMirror: ""
393+
image:
394+
pullPolicy: Always
395+
# Uncomment below lines to use a custom registry + repository, a different repository or a different tag, this will override the upgraderDockerImage
396+
# registry: null
397+
# repository: null
398+
# tag: null
399+
400+
# Schedule for the upgrader cronjob (cron format)
401+
schedule: "0 */1 * * *"
402+
403+
imagePullSecret: ""
404+
360405
cronJobServiceAccountName: "upgrader-cronjob-sa"
361-
# Use an existing Secret that stores the UPGRADER_TOKEN key instead of creating a new one. The value should be set with the `UPGRADER_TOKEN` key inside the secret.
406+
# Use an existing Secret which stores the UPGRADER_TOKEN key instead of creating a new one. The value should be set with the `UPGRADER_TOKEN` key inside the secret.
362407
## The use of external secrets allows you to manage credentials from external tools like Vault, 1Password, SealedSecrets, among others.
363408
## If set, this parameter takes precedence over "upgraderToken".
364409
## Recommendations:
365410
## - Use different Secrets names for `existingUpgraderToken` and `existingDelegateToken`.
366411
## - Do not use Secrets managed by other Helm deployments.
367412
existingUpgraderToken: ""
368413

414+
# Set security context for upgrader
415+
securityContext:
416+
369417
# This field is DEPRECATED, DON'T OVERRIDE/USE THIS!!
370418
# To set root/non-root access and other security context, use the delegateSecurityContext field below.
371419
# Not removing this field to maintain backward compatibility.
@@ -426,6 +474,18 @@ shared_certificates:
426474
# - /kaniko/ssl/certs/additional-ca-cert-bundle.crt
427475

428476
# Additional environment variables for the delegate pod.
477+
custom_init_containers:
478+
# - name: init-container
479+
# image: busybox
480+
# command: ['sh', '-c', 'echo "Hello from init container!"']
481+
482+
# additional sidecar containers for the delegate pod
483+
custom_containers:
484+
# - name: sidecar
485+
# image: busybox
486+
# command: ['sh', '-c', 'echo "Hello from sidecar!"']
487+
488+
# additional environment variables for the delegate pod
429489
custom_envs:
430490
# - name: DELEGATE_TASK_CAPACITY
431491
# value: "10"
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ helpdocs_topic_id: 3onmos2n3v
66
helpdocs_category_id: vm60533pvt
77
helpdocs_is_private: false
88
helpdocs_is_published: true
9+
redirect_from:
10+
- /docs/platform/delegates/delegate-reference/YAML/sample-create-a-permanent-volume-nfs-server
911
---
1012

1113
This Kubernetes manifest creates a permanent volume for NFS.

docs/platform/delegates/install-delegates/delegate-upgrades-and-expiration.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -470,5 +470,4 @@ To update the delegate YAML, do the following:
470470

471471
- Select **New Delegate** > **Kubernetes** > **Kubernetes Manifest** > **Custom**, and then follow the instructions on the screen.
472472

473-
For an example of a complete Delegate YAML file, go to [Example Kubernetes manifest for Harness Delegate](/docs/platform/delegates/delegate-reference/YAML/example-kubernetes-manifest-harness-delegate.md).
474-
473+
For an example of a complete Delegate YAML file, go to [Example Kubernetes manifest for Harness Delegate](/docs/platform/delegates/delegate-reference/yaml/example-kubernetes-manifest-harness-delegate).

0 commit comments

Comments
 (0)