linkerd2/chart/templates/tap.yaml

73 lines
1.6 KiB
YAML

{{with .Values -}}
---
###
### Tap
###
---
kind: Service
apiVersion: v1
metadata:
name: linkerd-tap
namespace: {{.Namespace}}
labels:
{{.ControllerComponentLabel}}: tap
annotations:
{{.CreatedByAnnotation}}: {{.CliVersion}}
spec:
type: ClusterIP
selector:
{{.ControllerComponentLabel}}: tap
ports:
- name: grpc
port: 8088
targetPort: 8088
---
kind: Deployment
apiVersion: extensions/v1beta1
metadata:
name: linkerd-tap
namespace: {{.Namespace}}
labels:
{{.ControllerComponentLabel}}: tap
annotations:
{{.CreatedByAnnotation}}: {{.CliVersion}}
spec:
replicas: {{.ControllerReplicas}}
template:
metadata:
labels:
{{.ControllerComponentLabel}}: tap
annotations:
{{.CreatedByAnnotation}}: {{.CliVersion}}
spec:
serviceAccountName: linkerd-tap
containers:
- name: tap
ports:
- name: grpc
containerPort: 8088
- name: admin-http
containerPort: 9998
image: {{.ControllerImage}}
imagePullPolicy: {{.ImagePullPolicy}}
args:
- "tap"
- "-controller-namespace={{.Namespace}}"
- "-log-level={{.ControllerLogLevel}}"
livenessProbe:
httpGet:
path: /ping
port: 9998
initialDelaySeconds: 10
readinessProbe:
httpGet:
path: /ready
port: 9998
failureThreshold: 7
{{ with .TapResources -}}
{{- template "resources" . }}
{{ end -}}
securityContext:
runAsUser: {{.ControllerUID}}
{{end -}}