Skip to main content

infra/helm/platform/templates/agents.yaml

Metadata

Indexed Symbols

No indexed functions/methods detected in this file.

Markdown Headings (if applicable)

No markdown headings detected.

Source Preview

{{- if .Values.agents.enabled }}
{{- range $agent := .Values.agents.list }}
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ $agent }}
namespace: {{ $.Values.namespace.name }}
labels:
app.kubernetes.io/name: {{ $agent }}
anchor.io/agent: "true"
spec:
replicas: {{ $.Values.agents.replicaCount }}
selector:
matchLabels:
app.kubernetes.io/name: {{ $agent }}
template:
metadata:
labels:
app.kubernetes.io/name: {{ $agent }}
anchor.io/agent: "true"
spec:
serviceAccountName: {{ $.Values.global.serviceAccountName }}
automountServiceAccountToken: false
securityContext:
runAsNonRoot: true