mirror of https://github.com/linkerd/linkerd2.git
132 lines
3.3 KiB
YAML
132 lines
3.3 KiB
YAML
{{with .Values -}}
|
|
---
|
|
###
|
|
### Controller
|
|
###
|
|
---
|
|
kind: Service
|
|
apiVersion: v1
|
|
metadata:
|
|
name: linkerd-controller-api
|
|
namespace: {{.Namespace}}
|
|
labels:
|
|
{{.ControllerComponentLabel}}: controller
|
|
annotations:
|
|
{{.CreatedByAnnotation}}: {{.CliVersion}}
|
|
spec:
|
|
type: ClusterIP
|
|
selector:
|
|
{{.ControllerComponentLabel}}: controller
|
|
ports:
|
|
- name: http
|
|
port: 8085
|
|
targetPort: 8085
|
|
---
|
|
kind: Service
|
|
apiVersion: v1
|
|
metadata:
|
|
name: linkerd-destination
|
|
namespace: {{.Namespace}}
|
|
labels:
|
|
{{.ControllerComponentLabel}}: controller
|
|
annotations:
|
|
{{.CreatedByAnnotation}}: {{.CliVersion}}
|
|
spec:
|
|
type: ClusterIP
|
|
selector:
|
|
{{.ControllerComponentLabel}}: controller
|
|
ports:
|
|
- name: grpc
|
|
port: 8086
|
|
targetPort: 8086
|
|
---
|
|
kind: Deployment
|
|
apiVersion: extensions/v1beta1
|
|
metadata:
|
|
name: linkerd-controller
|
|
namespace: {{.Namespace}}
|
|
labels:
|
|
{{.ControllerComponentLabel}}: controller
|
|
annotations:
|
|
{{.CreatedByAnnotation}}: {{.CliVersion}}
|
|
spec:
|
|
replicas: {{.ControllerReplicas}}
|
|
template:
|
|
metadata:
|
|
labels:
|
|
{{.ControllerComponentLabel}}: controller
|
|
annotations:
|
|
{{.CreatedByAnnotation}}: {{.CliVersion}}
|
|
spec:
|
|
serviceAccountName: linkerd-controller
|
|
containers:
|
|
- name: public-api
|
|
ports:
|
|
- name: http
|
|
containerPort: 8085
|
|
- name: admin-http
|
|
containerPort: 9995
|
|
volumeMounts:
|
|
- name: config
|
|
mountPath: /var/run/linkerd/config
|
|
image: {{.ControllerImage}}
|
|
imagePullPolicy: {{.ImagePullPolicy}}
|
|
args:
|
|
- "public-api"
|
|
- "-prometheus-url=http://linkerd-prometheus.{{.Namespace}}.svc.cluster.local:9090"
|
|
- "-tap-addr=linkerd-tap.{{.Namespace}}.svc.cluster.local:8088"
|
|
- "-controller-namespace={{.Namespace}}"
|
|
- "-log-level={{.ControllerLogLevel}}"
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /ping
|
|
port: 9995
|
|
initialDelaySeconds: 10
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /ready
|
|
port: 9995
|
|
failureThreshold: 7
|
|
{{ with .PublicAPIResources -}}
|
|
{{- template "resources" . }}
|
|
{{ end -}}
|
|
securityContext:
|
|
runAsUser: {{.ControllerUID}}
|
|
- name: destination
|
|
ports:
|
|
- name: grpc
|
|
containerPort: 8086
|
|
- name: admin-http
|
|
containerPort: 9996
|
|
volumeMounts:
|
|
- name: config
|
|
mountPath: /var/run/linkerd/config
|
|
image: {{.ControllerImage}}
|
|
imagePullPolicy: {{.ImagePullPolicy}}
|
|
args:
|
|
- "destination"
|
|
- "-addr=:8086"
|
|
- "-controller-namespace={{.Namespace}}"
|
|
- "-enable-h2-upgrade={{.EnableH2Upgrade}}"
|
|
- "-log-level={{.ControllerLogLevel}}"
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /ping
|
|
port: 9996
|
|
initialDelaySeconds: 10
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /ready
|
|
port: 9996
|
|
failureThreshold: 7
|
|
{{ with .DestinationResources -}}
|
|
{{- template "resources" . }}
|
|
{{ end -}}
|
|
securityContext:
|
|
runAsUser: {{.ControllerUID}}
|
|
volumes:
|
|
- name: config
|
|
configMap:
|
|
name: linkerd-config
|
|
{{end -}}
|