mirror of https://github.com/linkerd/linkerd2.git
1662 lines
48 KiB
Plaintext
1662 lines
48 KiB
Plaintext
---
|
|
# Source: linkerd-control-plane/templates/namespace.yaml
|
|
---
|
|
# Source: linkerd-control-plane/templates/identity-rbac.yaml
|
|
---
|
|
###
|
|
### Identity Controller Service RBAC
|
|
###
|
|
kind: ClusterRole
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
metadata:
|
|
name: linkerd-linkerd-dev-identity
|
|
labels:
|
|
linkerd.io/control-plane-component: identity
|
|
linkerd.io/control-plane-ns: linkerd-dev
|
|
rules:
|
|
- apiGroups: ["authentication.k8s.io"]
|
|
resources: ["tokenreviews"]
|
|
verbs: ["create"]
|
|
- apiGroups: ["apps"]
|
|
resources: ["deployments"]
|
|
verbs: ["get"]
|
|
- apiGroups: [""]
|
|
resources: ["events"]
|
|
verbs: ["create", "patch"]
|
|
---
|
|
kind: ClusterRoleBinding
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
metadata:
|
|
name: linkerd-linkerd-dev-identity
|
|
labels:
|
|
linkerd.io/control-plane-component: identity
|
|
linkerd.io/control-plane-ns: linkerd-dev
|
|
roleRef:
|
|
apiGroup: rbac.authorization.k8s.io
|
|
kind: ClusterRole
|
|
name: linkerd-linkerd-dev-identity
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: linkerd-identity
|
|
namespace: linkerd-dev
|
|
---
|
|
kind: ServiceAccount
|
|
apiVersion: v1
|
|
metadata:
|
|
name: linkerd-identity
|
|
|
|
labels:
|
|
linkerd.io/control-plane-component: identity
|
|
linkerd.io/control-plane-ns: linkerd-dev
|
|
---
|
|
# Source: linkerd-control-plane/templates/destination-rbac.yaml
|
|
---
|
|
###
|
|
### Destination Controller Service
|
|
###
|
|
kind: ClusterRole
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
metadata:
|
|
name: linkerd-linkerd-dev-destination
|
|
labels:
|
|
linkerd.io/control-plane-component: destination
|
|
linkerd.io/control-plane-ns: linkerd-dev
|
|
rules:
|
|
- apiGroups: ["apps"]
|
|
resources: ["replicasets"]
|
|
verbs: ["list", "get", "watch"]
|
|
- apiGroups: ["batch"]
|
|
resources: ["jobs"]
|
|
verbs: ["list", "get", "watch"]
|
|
- apiGroups: [""]
|
|
resources: ["pods", "endpoints", "services", "nodes", "namespaces"]
|
|
verbs: ["list", "get", "watch"]
|
|
- apiGroups: ["linkerd.io"]
|
|
resources: ["serviceprofiles"]
|
|
verbs: ["list", "get", "watch"]
|
|
- apiGroups: ["discovery.k8s.io"]
|
|
resources: ["endpointslices"]
|
|
verbs: ["list", "get", "watch"]
|
|
---
|
|
kind: ClusterRoleBinding
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
metadata:
|
|
name: linkerd-linkerd-dev-destination
|
|
labels:
|
|
linkerd.io/control-plane-component: destination
|
|
linkerd.io/control-plane-ns: linkerd-dev
|
|
roleRef:
|
|
apiGroup: rbac.authorization.k8s.io
|
|
kind: ClusterRole
|
|
name: linkerd-linkerd-dev-destination
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: linkerd-destination
|
|
namespace: linkerd-dev
|
|
---
|
|
kind: ServiceAccount
|
|
apiVersion: v1
|
|
metadata:
|
|
name: linkerd-destination
|
|
|
|
labels:
|
|
linkerd.io/control-plane-component: destination
|
|
linkerd.io/control-plane-ns: linkerd-dev
|
|
---
|
|
apiVersion: admissionregistration.k8s.io/v1
|
|
kind: ValidatingWebhookConfiguration
|
|
metadata:
|
|
name: linkerd-sp-validator-webhook-config
|
|
labels:
|
|
linkerd.io/control-plane-component: destination
|
|
linkerd.io/control-plane-ns: linkerd-dev
|
|
webhooks:
|
|
- name: linkerd-sp-validator.linkerd.io
|
|
namespaceSelector:
|
|
matchExpressions:
|
|
- key: config.linkerd.io/admission-webhooks
|
|
operator: NotIn
|
|
values:
|
|
- disabled
|
|
clientConfig:
|
|
service:
|
|
name: linkerd-sp-validator
|
|
namespace: linkerd-dev
|
|
path: "/"
|
|
caBundle: dGVzdC1wcm9maWxlLXZhbGlkYXRvci1jYS1idW5kbGU=
|
|
failurePolicy: Ignore
|
|
admissionReviewVersions: ["v1", "v1beta1"]
|
|
rules:
|
|
- operations: ["CREATE", "UPDATE"]
|
|
apiGroups: ["linkerd.io"]
|
|
apiVersions: ["v1alpha1", "v1alpha2"]
|
|
resources: ["serviceprofiles"]
|
|
sideEffects: None
|
|
---
|
|
apiVersion: admissionregistration.k8s.io/v1
|
|
kind: ValidatingWebhookConfiguration
|
|
metadata:
|
|
name: linkerd-policy-validator-webhook-config
|
|
labels:
|
|
linkerd.io/control-plane-component: destination
|
|
linkerd.io/control-plane-ns: linkerd-dev
|
|
webhooks:
|
|
- name: linkerd-policy-validator.linkerd.io
|
|
namespaceSelector:
|
|
matchExpressions:
|
|
- key: config.linkerd.io/admission-webhooks
|
|
operator: NotIn
|
|
values:
|
|
- disabled
|
|
clientConfig:
|
|
service:
|
|
name: linkerd-policy-validator
|
|
namespace: linkerd-dev
|
|
path: "/"
|
|
caBundle: dGVzdC1wcm9maWxlLXZhbGlkYXRvci1jYS1idW5kbGU=
|
|
failurePolicy: Ignore
|
|
admissionReviewVersions: ["v1", "v1beta1"]
|
|
rules:
|
|
- operations: ["CREATE", "UPDATE"]
|
|
apiGroups: ["policy.linkerd.io"]
|
|
apiVersions: ["v1alpha1", "v1beta1"]
|
|
resources:
|
|
- authorizationpolicies
|
|
- networkauthentications
|
|
- meshtlsauthentications
|
|
- serverauthorizations
|
|
- servers
|
|
- operations: ["CREATE", "UPDATE"]
|
|
apiGroups: ["gateway.networking.k8s.io"]
|
|
apiVersions: ["v1alpha2"]
|
|
resources:
|
|
- httproutes
|
|
sideEffects: None
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: ClusterRole
|
|
metadata:
|
|
name: linkerd-policy
|
|
labels:
|
|
app.kubernetes.io/part-of: Linkerd
|
|
linkerd.io/control-plane-component: destination
|
|
linkerd.io/control-plane-ns: linkerd-dev
|
|
rules:
|
|
- apiGroups:
|
|
- ""
|
|
resources:
|
|
- pods
|
|
verbs:
|
|
- get
|
|
- list
|
|
- watch
|
|
- apiGroups:
|
|
- policy.linkerd.io
|
|
resources:
|
|
- authorizationpolicies
|
|
- meshtlsauthentications
|
|
- networkauthentications
|
|
- servers
|
|
- serverauthorizations
|
|
verbs:
|
|
- get
|
|
- list
|
|
- watch
|
|
- apiGroups:
|
|
- gateway.networking.k8s.io
|
|
resources:
|
|
- httproutes
|
|
verbs:
|
|
- list
|
|
- get
|
|
- watch
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: ClusterRoleBinding
|
|
metadata:
|
|
name: linkerd-destination-policy
|
|
labels:
|
|
app.kubernetes.io/part-of: Linkerd
|
|
linkerd.io/control-plane-component: destination
|
|
linkerd.io/control-plane-ns: linkerd-dev
|
|
roleRef:
|
|
apiGroup: rbac.authorization.k8s.io
|
|
kind: ClusterRole
|
|
name: linkerd-policy
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: linkerd-destination
|
|
namespace: linkerd-dev
|
|
---
|
|
# Source: linkerd-control-plane/templates/heartbeat-rbac.yaml
|
|
---
|
|
###
|
|
### Heartbeat RBAC
|
|
###
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: Role
|
|
metadata:
|
|
name: linkerd-heartbeat
|
|
|
|
labels:
|
|
linkerd.io/control-plane-ns: linkerd-dev
|
|
rules:
|
|
- apiGroups: [""]
|
|
resources: ["configmaps"]
|
|
verbs: ["get"]
|
|
resourceNames: ["linkerd-config"]
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: RoleBinding
|
|
metadata:
|
|
name: linkerd-heartbeat
|
|
|
|
labels:
|
|
linkerd.io/control-plane-ns: linkerd-dev
|
|
roleRef:
|
|
kind: Role
|
|
name: linkerd-heartbeat
|
|
apiGroup: rbac.authorization.k8s.io
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: linkerd-heartbeat
|
|
namespace: linkerd-dev
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: ClusterRole
|
|
metadata:
|
|
name: linkerd-heartbeat
|
|
labels:
|
|
linkerd.io/control-plane-ns: linkerd-dev
|
|
rules:
|
|
- apiGroups: [""]
|
|
resources: ["namespaces"]
|
|
verbs: ["list"]
|
|
- apiGroups: ["linkerd.io"]
|
|
resources: ["serviceprofiles"]
|
|
verbs: ["list"]
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: ClusterRoleBinding
|
|
metadata:
|
|
name: linkerd-heartbeat
|
|
labels:
|
|
linkerd.io/control-plane-ns: linkerd-dev
|
|
roleRef:
|
|
kind: ClusterRole
|
|
name: linkerd-heartbeat
|
|
apiGroup: rbac.authorization.k8s.io
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: linkerd-heartbeat
|
|
namespace: linkerd-dev
|
|
---
|
|
kind: ServiceAccount
|
|
apiVersion: v1
|
|
metadata:
|
|
name: linkerd-heartbeat
|
|
|
|
labels:
|
|
linkerd.io/control-plane-component: heartbeat
|
|
linkerd.io/control-plane-ns: linkerd-dev
|
|
---
|
|
# Source: linkerd-control-plane/templates/proxy-injector-rbac.yaml
|
|
---
|
|
###
|
|
### Proxy Injector RBAC
|
|
###
|
|
kind: ClusterRole
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
metadata:
|
|
name: linkerd-linkerd-dev-proxy-injector
|
|
labels:
|
|
linkerd.io/control-plane-component: proxy-injector
|
|
linkerd.io/control-plane-ns: linkerd-dev
|
|
rules:
|
|
- apiGroups: [""]
|
|
resources: ["events"]
|
|
verbs: ["create", "patch"]
|
|
- apiGroups: [""]
|
|
resources: ["namespaces", "replicationcontrollers"]
|
|
verbs: ["list", "get", "watch"]
|
|
- apiGroups: [""]
|
|
resources: ["pods"]
|
|
verbs: ["list", "watch"]
|
|
- apiGroups: ["extensions", "apps"]
|
|
resources: ["deployments", "replicasets", "daemonsets", "statefulsets"]
|
|
verbs: ["list", "get", "watch"]
|
|
- apiGroups: ["extensions", "batch"]
|
|
resources: ["cronjobs", "jobs"]
|
|
verbs: ["list", "get", "watch"]
|
|
---
|
|
kind: ClusterRoleBinding
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
metadata:
|
|
name: linkerd-linkerd-dev-proxy-injector
|
|
labels:
|
|
linkerd.io/control-plane-component: proxy-injector
|
|
linkerd.io/control-plane-ns: linkerd-dev
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: linkerd-proxy-injector
|
|
namespace: linkerd-dev
|
|
apiGroup: ""
|
|
roleRef:
|
|
kind: ClusterRole
|
|
name: linkerd-linkerd-dev-proxy-injector
|
|
apiGroup: rbac.authorization.k8s.io
|
|
---
|
|
kind: ServiceAccount
|
|
apiVersion: v1
|
|
metadata:
|
|
name: linkerd-proxy-injector
|
|
|
|
labels:
|
|
linkerd.io/control-plane-component: proxy-injector
|
|
linkerd.io/control-plane-ns: linkerd-dev
|
|
---
|
|
apiVersion: admissionregistration.k8s.io/v1
|
|
kind: MutatingWebhookConfiguration
|
|
metadata:
|
|
name: linkerd-proxy-injector-webhook-config
|
|
labels:
|
|
linkerd.io/control-plane-component: proxy-injector
|
|
linkerd.io/control-plane-ns: linkerd-dev
|
|
webhooks:
|
|
- name: linkerd-proxy-injector.linkerd.io
|
|
namespaceSelector:
|
|
matchExpressions:
|
|
- key: config.linkerd.io/admission-webhooks
|
|
operator: NotIn
|
|
values:
|
|
- disabled
|
|
- key: kubernetes.io/metadata.name
|
|
operator: NotIn
|
|
values:
|
|
- kube-system
|
|
- cert-manager
|
|
objectSelector:
|
|
null
|
|
clientConfig:
|
|
service:
|
|
name: linkerd-proxy-injector
|
|
namespace: linkerd-dev
|
|
path: "/"
|
|
caBundle: dGVzdC1wcm94eS1pbmplY3Rvci1jYS1idW5kbGU=
|
|
failurePolicy: Ignore
|
|
admissionReviewVersions: ["v1", "v1beta1"]
|
|
rules:
|
|
- operations: [ "CREATE" ]
|
|
apiGroups: [""]
|
|
apiVersions: ["v1"]
|
|
resources: ["pods", "services"]
|
|
sideEffects: None
|
|
---
|
|
# Source: linkerd-control-plane/templates/psp.yaml
|
|
---
|
|
# Source: linkerd-control-plane/templates/config.yaml
|
|
---
|
|
kind: ConfigMap
|
|
apiVersion: v1
|
|
metadata:
|
|
name: linkerd-config
|
|
|
|
labels:
|
|
linkerd.io/control-plane-component: controller
|
|
linkerd.io/control-plane-ns: linkerd-dev
|
|
annotations:
|
|
linkerd.io/created-by: linkerd/helm linkerd-version
|
|
data:
|
|
linkerd-crds-chart-version: linkerd-crds-1.0.0-edge
|
|
values: |
|
|
cliVersion: ""
|
|
clusterDomain: cluster.local
|
|
clusterNetworks: 10.0.0.0/8,100.64.0.0/10,172.16.0.0/12,192.168.0.0/16
|
|
cniEnabled: false
|
|
controlPlaneTracing: false
|
|
controlPlaneTracingNamespace: linkerd-jaeger
|
|
controllerImage: cr.l5d.io/linkerd/controller
|
|
controllerLogFormat: plain
|
|
controllerLogLevel: info
|
|
controllerReplicas: 1
|
|
controllerUID: 2103
|
|
debugContainer:
|
|
image:
|
|
name: cr.l5d.io/linkerd/debug
|
|
pullPolicy: ""
|
|
version: test-debug-version
|
|
deploymentStrategy:
|
|
rollingUpdate:
|
|
maxSurge: 25%
|
|
maxUnavailable: 25%
|
|
destinationProxyResources: null
|
|
destinationResources: null
|
|
disableHeartBeat: false
|
|
enableEndpointSlices: true
|
|
enableH2Upgrade: true
|
|
enablePodAntiAffinity: false
|
|
enablePodDisruptionBudget: false
|
|
heartbeatResources: null
|
|
heartbeatSchedule: 1 2 3 4 5
|
|
highAvailability: false
|
|
identity:
|
|
issuer:
|
|
clockSkewAllowance: 20s
|
|
externalCA: false
|
|
issuanceLifetime: 24h0m0s
|
|
scheme: linkerd.io/tls
|
|
tls:
|
|
crtPEM: test-crt-pem
|
|
serviceAccountTokenProjection: true
|
|
identityProxyResources: null
|
|
identityResources: null
|
|
identityTrustAnchorsPEM: test-trust-anchor
|
|
identityTrustDomain: test.trust.domain
|
|
imagePullPolicy: IfNotPresent
|
|
imagePullSecrets: []
|
|
linkerdVersion: linkerd-version
|
|
nodeAffinity: null
|
|
nodeSelector:
|
|
kubernetes.io/os: linux
|
|
podAnnotations: {}
|
|
podLabels: {}
|
|
policyController:
|
|
defaultAllowPolicy: all-unauthenticated
|
|
image:
|
|
name: cr.l5d.io/linkerd/policy-controller
|
|
pullPolicy: ""
|
|
version: ""
|
|
logLevel: linkerd=info,warn
|
|
resources:
|
|
cpu:
|
|
limit: ""
|
|
request: ""
|
|
ephemeral-storage:
|
|
limit: ""
|
|
request: ""
|
|
memory:
|
|
limit: ""
|
|
request: ""
|
|
policyValidator:
|
|
caBundle: test-profile-validator-ca-bundle
|
|
crtPEM: ""
|
|
externalSecret: true
|
|
injectCaFrom: ""
|
|
injectCaFromSecret: ""
|
|
namespaceSelector:
|
|
matchExpressions:
|
|
- key: config.linkerd.io/admission-webhooks
|
|
operator: NotIn
|
|
values:
|
|
- disabled
|
|
priorityClassName: ""
|
|
profileValidator:
|
|
caBundle: test-profile-validator-ca-bundle
|
|
crtPEM: ""
|
|
externalSecret: true
|
|
injectCaFrom: ""
|
|
injectCaFromSecret: ""
|
|
namespaceSelector:
|
|
matchExpressions:
|
|
- key: config.linkerd.io/admission-webhooks
|
|
operator: NotIn
|
|
values:
|
|
- disabled
|
|
prometheusUrl: ""
|
|
proxy:
|
|
accessLog: ""
|
|
await: true
|
|
capabilities: null
|
|
defaultInboundPolicy: ""
|
|
enableExternalProfiles: false
|
|
image:
|
|
name: cr.l5d.io/linkerd/proxy
|
|
pullPolicy: ""
|
|
version: test-proxy-version
|
|
inboundConnectTimeout: 100ms
|
|
isGateway: false
|
|
isIngress: false
|
|
logFormat: plain
|
|
logLevel: warn,linkerd=info
|
|
opaquePorts: 25,587,3306,4444,5432,6379,9300,11211
|
|
outboundConnectTimeout: 1000ms
|
|
podInboundPorts: ""
|
|
ports:
|
|
admin: 4191
|
|
control: 4190
|
|
inbound: 4143
|
|
outbound: 4140
|
|
requireIdentityOnInboundPorts: ""
|
|
resources:
|
|
cpu:
|
|
limit: ""
|
|
request: ""
|
|
ephemeral-storage:
|
|
limit: ""
|
|
request: ""
|
|
memory:
|
|
limit: ""
|
|
request: ""
|
|
saMountPath: null
|
|
uid: 2102
|
|
waitBeforeExitSeconds: 0
|
|
proxyContainerName: linkerd-proxy
|
|
proxyInit:
|
|
capabilities: null
|
|
closeWaitTimeoutSecs: 0
|
|
ignoreInboundPorts: "222"
|
|
ignoreOutboundPorts: "111"
|
|
image:
|
|
name: cr.l5d.io/linkerd/proxy-init
|
|
pullPolicy: ""
|
|
version: test-proxy-init-version
|
|
logFormat: ""
|
|
logLevel: ""
|
|
resources:
|
|
cpu:
|
|
limit: 100m
|
|
request: 100m
|
|
ephemeral-storage:
|
|
limit: ""
|
|
request: ""
|
|
memory:
|
|
limit: 20Mi
|
|
request: 20Mi
|
|
runAsRoot: false
|
|
saMountPath: null
|
|
skipSubnets: ""
|
|
xtMountPath:
|
|
mountPath: /run
|
|
name: linkerd-proxy-init-xtables-lock
|
|
readOnly: false
|
|
proxyInjector:
|
|
caBundle: test-proxy-injector-ca-bundle
|
|
crtPEM: ""
|
|
externalSecret: true
|
|
injectCaFrom: ""
|
|
injectCaFromSecret: ""
|
|
namespaceSelector:
|
|
matchExpressions:
|
|
- key: config.linkerd.io/admission-webhooks
|
|
operator: NotIn
|
|
values:
|
|
- disabled
|
|
- key: kubernetes.io/metadata.name
|
|
operator: NotIn
|
|
values:
|
|
- kube-system
|
|
- cert-manager
|
|
proxyInjectorProxyResources: null
|
|
proxyInjectorResources: null
|
|
tap:
|
|
caBundle: test-tap-ca-bundle
|
|
externalSecret: true
|
|
tolerations: null
|
|
webhookFailurePolicy: Ignore
|
|
---
|
|
# Source: linkerd-control-plane/templates/identity.yaml
|
|
---
|
|
###
|
|
### Identity Controller Service
|
|
###
|
|
---
|
|
kind: Secret
|
|
apiVersion: v1
|
|
metadata:
|
|
name: linkerd-identity-issuer
|
|
|
|
labels:
|
|
linkerd.io/control-plane-component: identity
|
|
linkerd.io/control-plane-ns: linkerd-dev
|
|
annotations:
|
|
linkerd.io/created-by: linkerd/helm linkerd-version
|
|
data:
|
|
crt.pem: dGVzdC1jcnQtcGVt
|
|
key.pem: dGVzdC1rZXktcGVt
|
|
---
|
|
kind: ConfigMap
|
|
apiVersion: v1
|
|
metadata:
|
|
name: linkerd-identity-trust-roots
|
|
|
|
labels:
|
|
linkerd.io/control-plane-component: identity
|
|
linkerd.io/control-plane-ns: linkerd-dev
|
|
annotations:
|
|
linkerd.io/created-by: linkerd/helm linkerd-version
|
|
data:
|
|
ca-bundle.crt: |
|
|
test-trust-anchor
|
|
---
|
|
kind: Service
|
|
apiVersion: v1
|
|
metadata:
|
|
name: linkerd-identity
|
|
|
|
labels:
|
|
linkerd.io/control-plane-component: identity
|
|
linkerd.io/control-plane-ns: linkerd-dev
|
|
annotations:
|
|
linkerd.io/created-by: linkerd/helm linkerd-version
|
|
spec:
|
|
type: ClusterIP
|
|
selector:
|
|
linkerd.io/control-plane-component: identity
|
|
ports:
|
|
- name: grpc
|
|
port: 8080
|
|
targetPort: 8080
|
|
---
|
|
kind: Service
|
|
apiVersion: v1
|
|
metadata:
|
|
name: linkerd-identity-headless
|
|
|
|
labels:
|
|
linkerd.io/control-plane-component: identity
|
|
linkerd.io/control-plane-ns: linkerd-dev
|
|
annotations:
|
|
linkerd.io/created-by: linkerd/helm linkerd-version
|
|
spec:
|
|
clusterIP: None
|
|
selector:
|
|
linkerd.io/control-plane-component: identity
|
|
ports:
|
|
- name: grpc
|
|
port: 8080
|
|
targetPort: 8080
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
annotations:
|
|
linkerd.io/created-by: linkerd/helm linkerd-version
|
|
labels:
|
|
app.kubernetes.io/name: identity
|
|
app.kubernetes.io/part-of: Linkerd
|
|
app.kubernetes.io/version: linkerd-version
|
|
linkerd.io/control-plane-component: identity
|
|
linkerd.io/control-plane-ns: linkerd-dev
|
|
name: linkerd-identity
|
|
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
linkerd.io/control-plane-component: identity
|
|
linkerd.io/control-plane-ns: linkerd-dev
|
|
linkerd.io/proxy-deployment: linkerd-identity
|
|
strategy:
|
|
rollingUpdate:
|
|
maxSurge: 25%
|
|
maxUnavailable: 25%
|
|
template:
|
|
metadata:
|
|
annotations:
|
|
linkerd.io/created-by: linkerd/helm linkerd-version
|
|
linkerd.io/proxy-version: test-proxy-version
|
|
cluster-autoscaler.kubernetes.io/safe-to-evict: "true"
|
|
config.linkerd.io/default-inbound-policy: "all-unauthenticated"
|
|
labels:
|
|
linkerd.io/control-plane-component: identity
|
|
linkerd.io/control-plane-ns: linkerd-dev
|
|
linkerd.io/workload-ns: linkerd-dev
|
|
linkerd.io/proxy-deployment: linkerd-identity
|
|
spec:
|
|
nodeSelector:
|
|
kubernetes.io/os: linux
|
|
|
|
containers:
|
|
- args:
|
|
- identity
|
|
- -log-level=info
|
|
- -log-format=plain
|
|
- -controller-namespace=linkerd-dev
|
|
- -identity-trust-domain=test.trust.domain
|
|
- -identity-issuance-lifetime=24h0m0s
|
|
- -identity-clock-skew-allowance=20s
|
|
- -identity-scheme=linkerd.io/tls
|
|
- -enable-pprof=false
|
|
env:
|
|
- name: LINKERD_DISABLED
|
|
value: "linkerd-await cannot block the identity controller"
|
|
image: cr.l5d.io/linkerd/controller:linkerd-version
|
|
imagePullPolicy: IfNotPresent
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /ping
|
|
port: 9990
|
|
initialDelaySeconds: 10
|
|
name: identity
|
|
ports:
|
|
- containerPort: 8080
|
|
name: grpc
|
|
- containerPort: 9990
|
|
name: admin-http
|
|
readinessProbe:
|
|
failureThreshold: 7
|
|
httpGet:
|
|
path: /ready
|
|
port: 9990
|
|
securityContext:
|
|
runAsUser: 2103
|
|
allowPrivilegeEscalation: false
|
|
volumeMounts:
|
|
- mountPath: /var/run/linkerd/identity/issuer
|
|
name: identity-issuer
|
|
- mountPath: /var/run/linkerd/identity/trust-roots/
|
|
name: trust-roots
|
|
- env:
|
|
- name: _pod_name
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: metadata.name
|
|
- name: _pod_ns
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: metadata.namespace
|
|
- name: _pod_nodeName
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: spec.nodeName
|
|
- name: LINKERD2_PROXY_INBOUND_PORTS_REQUIRE_TLS
|
|
value: "8080"
|
|
- name: LINKERD2_PROXY_LOG
|
|
value: "warn,linkerd=info"
|
|
- name: LINKERD2_PROXY_LOG_FORMAT
|
|
value: "plain"
|
|
- name: LINKERD2_PROXY_DESTINATION_SVC_ADDR
|
|
value: linkerd-dst-headless.linkerd-dev.svc.cluster.local.:8086
|
|
- name: LINKERD2_PROXY_DESTINATION_PROFILE_NETWORKS
|
|
value: "10.0.0.0/8,100.64.0.0/10,172.16.0.0/12,192.168.0.0/16"
|
|
- name: LINKERD2_PROXY_POLICY_SVC_ADDR
|
|
value: linkerd-policy.linkerd-dev.svc.cluster.local.:8090
|
|
- name: LINKERD2_PROXY_POLICY_WORKLOAD
|
|
value: "$(_pod_ns):$(_pod_name)"
|
|
- name: LINKERD2_PROXY_INBOUND_DEFAULT_POLICY
|
|
value: all-unauthenticated
|
|
- name: LINKERD2_PROXY_POLICY_CLUSTER_NETWORKS
|
|
value: "10.0.0.0/8,100.64.0.0/10,172.16.0.0/12,192.168.0.0/16"
|
|
- name: LINKERD2_PROXY_INBOUND_CONNECT_TIMEOUT
|
|
value: "100ms"
|
|
- name: LINKERD2_PROXY_OUTBOUND_CONNECT_TIMEOUT
|
|
value: "1000ms"
|
|
- name: LINKERD2_PROXY_CONTROL_LISTEN_ADDR
|
|
value: 0.0.0.0:4190
|
|
- name: LINKERD2_PROXY_ADMIN_LISTEN_ADDR
|
|
value: 0.0.0.0:4191
|
|
- name: LINKERD2_PROXY_OUTBOUND_LISTEN_ADDR
|
|
value: 127.0.0.1:4140
|
|
- name: LINKERD2_PROXY_INBOUND_LISTEN_ADDR
|
|
value: 0.0.0.0:4143
|
|
- name: LINKERD2_PROXY_INBOUND_IPS
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: status.podIPs
|
|
- name: LINKERD2_PROXY_INBOUND_PORTS
|
|
value: "8080,9990"
|
|
- name: LINKERD2_PROXY_DESTINATION_PROFILE_SUFFIXES
|
|
value: svc.cluster.local.
|
|
- name: LINKERD2_PROXY_INBOUND_ACCEPT_KEEPALIVE
|
|
value: 10000ms
|
|
- name: LINKERD2_PROXY_OUTBOUND_CONNECT_KEEPALIVE
|
|
value: 10000ms
|
|
- name: LINKERD2_PROXY_INBOUND_PORTS_DISABLE_PROTOCOL_DETECTION
|
|
value: "25,587,3306,4444,5432,6379,9300,11211"
|
|
- name: LINKERD2_PROXY_DESTINATION_CONTEXT
|
|
value: |
|
|
{"ns":"$(_pod_ns)", "nodeName":"$(_pod_nodeName)"}
|
|
- name: _pod_sa
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: spec.serviceAccountName
|
|
- name: LINKERD2_PROXY_IDENTITY_DIR
|
|
value: /var/run/linkerd/identity/end-entity
|
|
- name: LINKERD2_PROXY_IDENTITY_TRUST_ANCHORS
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: linkerd-identity-trust-roots
|
|
key: ca-bundle.crt
|
|
- name: LINKERD2_PROXY_IDENTITY_TOKEN_FILE
|
|
value: /var/run/secrets/tokens/linkerd-identity-token
|
|
- name: LINKERD2_PROXY_IDENTITY_SVC_ADDR
|
|
value: localhost.:8080
|
|
- name: LINKERD2_PROXY_IDENTITY_LOCAL_NAME
|
|
value: $(_pod_sa).$(_pod_ns).serviceaccount.identity.linkerd-dev.test.trust.domain
|
|
- name: LINKERD2_PROXY_IDENTITY_SVC_NAME
|
|
value: linkerd-identity.linkerd-dev.serviceaccount.identity.linkerd-dev.test.trust.domain
|
|
- name: LINKERD2_PROXY_DESTINATION_SVC_NAME
|
|
value: linkerd-destination.linkerd-dev.serviceaccount.identity.linkerd-dev.test.trust.domain
|
|
- name: LINKERD2_PROXY_POLICY_SVC_NAME
|
|
value: linkerd-destination.linkerd-dev.serviceaccount.identity.linkerd-dev.test.trust.domain
|
|
image: cr.l5d.io/linkerd/proxy:test-proxy-version
|
|
imagePullPolicy: IfNotPresent
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /live
|
|
port: 4191
|
|
initialDelaySeconds: 10
|
|
name: linkerd-proxy
|
|
ports:
|
|
- containerPort: 4143
|
|
name: linkerd-proxy
|
|
- containerPort: 4191
|
|
name: linkerd-admin
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /ready
|
|
port: 4191
|
|
initialDelaySeconds: 2
|
|
resources:
|
|
securityContext:
|
|
allowPrivilegeEscalation: false
|
|
readOnlyRootFilesystem: true
|
|
runAsUser: 2102
|
|
terminationMessagePolicy: FallbackToLogsOnError
|
|
volumeMounts:
|
|
- mountPath: /var/run/linkerd/identity/end-entity
|
|
name: linkerd-identity-end-entity
|
|
- mountPath: /var/run/secrets/tokens
|
|
name: linkerd-identity-token
|
|
initContainers:
|
|
- args:
|
|
- --incoming-proxy-port
|
|
- "4143"
|
|
- --outgoing-proxy-port
|
|
- "4140"
|
|
- --proxy-uid
|
|
- "2102"
|
|
- --inbound-ports-to-ignore
|
|
- "4190,4191,222"
|
|
- --outbound-ports-to-ignore
|
|
- "443"
|
|
image: cr.l5d.io/linkerd/proxy-init:test-proxy-init-version
|
|
imagePullPolicy: IfNotPresent
|
|
name: linkerd-init
|
|
resources:
|
|
limits:
|
|
cpu: "100m"
|
|
memory: "20Mi"
|
|
requests:
|
|
cpu: "100m"
|
|
memory: "20Mi"
|
|
securityContext:
|
|
allowPrivilegeEscalation: false
|
|
capabilities:
|
|
add:
|
|
- NET_ADMIN
|
|
- NET_RAW
|
|
privileged: false
|
|
runAsNonRoot: true
|
|
readOnlyRootFilesystem: true
|
|
terminationMessagePolicy: FallbackToLogsOnError
|
|
volumeMounts:
|
|
- mountPath: /run
|
|
name: linkerd-proxy-init-xtables-lock
|
|
serviceAccountName: linkerd-identity
|
|
volumes:
|
|
- name: identity-issuer
|
|
secret:
|
|
secretName: linkerd-identity-issuer
|
|
- configMap:
|
|
name: linkerd-identity-trust-roots
|
|
name: trust-roots
|
|
- emptyDir: {}
|
|
name: linkerd-proxy-init-xtables-lock
|
|
- name: linkerd-identity-token
|
|
projected:
|
|
sources:
|
|
- serviceAccountToken:
|
|
path: linkerd-identity-token
|
|
expirationSeconds: 86400
|
|
audience: identity.l5d.io
|
|
- emptyDir:
|
|
medium: Memory
|
|
name: linkerd-identity-end-entity
|
|
---
|
|
# Source: linkerd-control-plane/templates/destination.yaml
|
|
---
|
|
###
|
|
### Destination Controller Service
|
|
###
|
|
kind: Service
|
|
apiVersion: v1
|
|
metadata:
|
|
name: linkerd-dst
|
|
|
|
labels:
|
|
linkerd.io/control-plane-component: destination
|
|
linkerd.io/control-plane-ns: linkerd-dev
|
|
annotations:
|
|
linkerd.io/created-by: linkerd/helm linkerd-version
|
|
spec:
|
|
type: ClusterIP
|
|
selector:
|
|
linkerd.io/control-plane-component: destination
|
|
ports:
|
|
- name: grpc
|
|
port: 8086
|
|
targetPort: 8086
|
|
---
|
|
kind: Service
|
|
apiVersion: v1
|
|
metadata:
|
|
name: linkerd-dst-headless
|
|
|
|
labels:
|
|
linkerd.io/control-plane-component: destination
|
|
linkerd.io/control-plane-ns: linkerd-dev
|
|
annotations:
|
|
linkerd.io/created-by: linkerd/helm linkerd-version
|
|
spec:
|
|
clusterIP: None
|
|
selector:
|
|
linkerd.io/control-plane-component: destination
|
|
ports:
|
|
- name: grpc
|
|
port: 8086
|
|
targetPort: 8086
|
|
---
|
|
kind: Service
|
|
apiVersion: v1
|
|
metadata:
|
|
name: linkerd-sp-validator
|
|
|
|
labels:
|
|
linkerd.io/control-plane-component: destination
|
|
linkerd.io/control-plane-ns: linkerd-dev
|
|
annotations:
|
|
linkerd.io/created-by: linkerd/helm linkerd-version
|
|
spec:
|
|
type: ClusterIP
|
|
selector:
|
|
linkerd.io/control-plane-component: destination
|
|
ports:
|
|
- name: sp-validator
|
|
port: 443
|
|
targetPort: sp-validator
|
|
---
|
|
kind: Service
|
|
apiVersion: v1
|
|
metadata:
|
|
name: linkerd-policy
|
|
|
|
labels:
|
|
linkerd.io/control-plane-component: destination
|
|
linkerd.io/control-plane-ns: linkerd-dev
|
|
annotations:
|
|
linkerd.io/created-by: linkerd/helm linkerd-version
|
|
spec:
|
|
clusterIP: None
|
|
selector:
|
|
linkerd.io/control-plane-component: destination
|
|
ports:
|
|
- name: grpc
|
|
port: 8090
|
|
targetPort: 8090
|
|
---
|
|
kind: Service
|
|
apiVersion: v1
|
|
metadata:
|
|
name: linkerd-policy-validator
|
|
|
|
labels:
|
|
linkerd.io/control-plane-component: destination
|
|
linkerd.io/control-plane-ns: linkerd-dev
|
|
annotations:
|
|
linkerd.io/created-by: linkerd/helm linkerd-version
|
|
spec:
|
|
type: ClusterIP
|
|
selector:
|
|
linkerd.io/control-plane-component: destination
|
|
ports:
|
|
- name: policy-https
|
|
port: 443
|
|
targetPort: policy-https
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
annotations:
|
|
linkerd.io/created-by: linkerd/helm linkerd-version
|
|
labels:
|
|
app.kubernetes.io/name: destination
|
|
app.kubernetes.io/part-of: Linkerd
|
|
app.kubernetes.io/version: linkerd-version
|
|
linkerd.io/control-plane-component: destination
|
|
linkerd.io/control-plane-ns: linkerd-dev
|
|
name: linkerd-destination
|
|
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
linkerd.io/control-plane-component: destination
|
|
linkerd.io/control-plane-ns: linkerd-dev
|
|
linkerd.io/proxy-deployment: linkerd-destination
|
|
strategy:
|
|
rollingUpdate:
|
|
maxSurge: 25%
|
|
maxUnavailable: 25%
|
|
template:
|
|
metadata:
|
|
annotations:
|
|
linkerd.io/helm-release-version: "0"
|
|
linkerd.io/created-by: linkerd/helm linkerd-version
|
|
linkerd.io/proxy-version: test-proxy-version
|
|
cluster-autoscaler.kubernetes.io/safe-to-evict: "true"
|
|
config.linkerd.io/default-inbound-policy: "all-unauthenticated"
|
|
labels:
|
|
linkerd.io/control-plane-component: destination
|
|
linkerd.io/control-plane-ns: linkerd-dev
|
|
linkerd.io/workload-ns: linkerd-dev
|
|
linkerd.io/proxy-deployment: linkerd-destination
|
|
spec:
|
|
nodeSelector:
|
|
kubernetes.io/os: linux
|
|
|
|
containers:
|
|
- env:
|
|
- name: _pod_name
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: metadata.name
|
|
- name: _pod_ns
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: metadata.namespace
|
|
- name: _pod_nodeName
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: spec.nodeName
|
|
- name: LINKERD2_PROXY_LOG
|
|
value: "warn,linkerd=info"
|
|
- name: LINKERD2_PROXY_LOG_FORMAT
|
|
value: "plain"
|
|
- name: LINKERD2_PROXY_DESTINATION_SVC_ADDR
|
|
value: localhost.:8086
|
|
- name: LINKERD2_PROXY_DESTINATION_PROFILE_NETWORKS
|
|
value: "10.0.0.0/8,100.64.0.0/10,172.16.0.0/12,192.168.0.0/16"
|
|
- name: LINKERD2_PROXY_POLICY_SVC_ADDR
|
|
value: localhost.:8090
|
|
- name: LINKERD2_PROXY_POLICY_WORKLOAD
|
|
value: "$(_pod_ns):$(_pod_name)"
|
|
- name: LINKERD2_PROXY_INBOUND_DEFAULT_POLICY
|
|
value: all-unauthenticated
|
|
- name: LINKERD2_PROXY_POLICY_CLUSTER_NETWORKS
|
|
value: "10.0.0.0/8,100.64.0.0/10,172.16.0.0/12,192.168.0.0/16"
|
|
- name: LINKERD2_PROXY_INBOUND_CONNECT_TIMEOUT
|
|
value: "100ms"
|
|
- name: LINKERD2_PROXY_OUTBOUND_CONNECT_TIMEOUT
|
|
value: "1000ms"
|
|
- name: LINKERD2_PROXY_CONTROL_LISTEN_ADDR
|
|
value: 0.0.0.0:4190
|
|
- name: LINKERD2_PROXY_ADMIN_LISTEN_ADDR
|
|
value: 0.0.0.0:4191
|
|
- name: LINKERD2_PROXY_OUTBOUND_LISTEN_ADDR
|
|
value: 127.0.0.1:4140
|
|
- name: LINKERD2_PROXY_INBOUND_LISTEN_ADDR
|
|
value: 0.0.0.0:4143
|
|
- name: LINKERD2_PROXY_INBOUND_IPS
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: status.podIPs
|
|
- name: LINKERD2_PROXY_INBOUND_PORTS
|
|
value: "8086,8090,8443,9443,9990,9996,9997"
|
|
- name: LINKERD2_PROXY_DESTINATION_PROFILE_SUFFIXES
|
|
value: svc.cluster.local.
|
|
- name: LINKERD2_PROXY_INBOUND_ACCEPT_KEEPALIVE
|
|
value: 10000ms
|
|
- name: LINKERD2_PROXY_OUTBOUND_CONNECT_KEEPALIVE
|
|
value: 10000ms
|
|
- name: LINKERD2_PROXY_INBOUND_PORTS_DISABLE_PROTOCOL_DETECTION
|
|
value: "25,587,3306,4444,5432,6379,9300,11211"
|
|
- name: LINKERD2_PROXY_DESTINATION_CONTEXT
|
|
value: |
|
|
{"ns":"$(_pod_ns)", "nodeName":"$(_pod_nodeName)"}
|
|
- name: _pod_sa
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: spec.serviceAccountName
|
|
- name: LINKERD2_PROXY_IDENTITY_DIR
|
|
value: /var/run/linkerd/identity/end-entity
|
|
- name: LINKERD2_PROXY_IDENTITY_TRUST_ANCHORS
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: linkerd-identity-trust-roots
|
|
key: ca-bundle.crt
|
|
- name: LINKERD2_PROXY_IDENTITY_TOKEN_FILE
|
|
value: /var/run/secrets/tokens/linkerd-identity-token
|
|
- name: LINKERD2_PROXY_IDENTITY_SVC_ADDR
|
|
value: linkerd-identity-headless.linkerd-dev.svc.cluster.local.:8080
|
|
- name: LINKERD2_PROXY_IDENTITY_LOCAL_NAME
|
|
value: $(_pod_sa).$(_pod_ns).serviceaccount.identity.linkerd-dev.test.trust.domain
|
|
- name: LINKERD2_PROXY_IDENTITY_SVC_NAME
|
|
value: linkerd-identity.linkerd-dev.serviceaccount.identity.linkerd-dev.test.trust.domain
|
|
- name: LINKERD2_PROXY_DESTINATION_SVC_NAME
|
|
value: linkerd-destination.linkerd-dev.serviceaccount.identity.linkerd-dev.test.trust.domain
|
|
- name: LINKERD2_PROXY_POLICY_SVC_NAME
|
|
value: linkerd-destination.linkerd-dev.serviceaccount.identity.linkerd-dev.test.trust.domain
|
|
image: cr.l5d.io/linkerd/proxy:test-proxy-version
|
|
imagePullPolicy: IfNotPresent
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /live
|
|
port: 4191
|
|
initialDelaySeconds: 10
|
|
name: linkerd-proxy
|
|
ports:
|
|
- containerPort: 4143
|
|
name: linkerd-proxy
|
|
- containerPort: 4191
|
|
name: linkerd-admin
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /ready
|
|
port: 4191
|
|
initialDelaySeconds: 2
|
|
resources:
|
|
securityContext:
|
|
allowPrivilegeEscalation: false
|
|
readOnlyRootFilesystem: true
|
|
runAsUser: 2102
|
|
terminationMessagePolicy: FallbackToLogsOnError
|
|
lifecycle:
|
|
postStart:
|
|
exec:
|
|
command:
|
|
- /usr/lib/linkerd/linkerd-await
|
|
- --timeout=2m
|
|
volumeMounts:
|
|
- mountPath: /var/run/linkerd/identity/end-entity
|
|
name: linkerd-identity-end-entity
|
|
- mountPath: /var/run/secrets/tokens
|
|
name: linkerd-identity-token
|
|
- args:
|
|
- destination
|
|
- -addr=:8086
|
|
- -controller-namespace=linkerd-dev
|
|
- -enable-h2-upgrade=true
|
|
- -log-level=info
|
|
- -log-format=plain
|
|
- -enable-endpoint-slices=true
|
|
- -cluster-domain=cluster.local
|
|
- -identity-trust-domain=test.trust.domain
|
|
- -default-opaque-ports=25,587,3306,4444,5432,6379,9300,11211
|
|
- -enable-pprof=false
|
|
image: cr.l5d.io/linkerd/controller:linkerd-version
|
|
imagePullPolicy: IfNotPresent
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /ping
|
|
port: 9996
|
|
initialDelaySeconds: 10
|
|
name: destination
|
|
ports:
|
|
- containerPort: 8086
|
|
name: grpc
|
|
- containerPort: 9996
|
|
name: admin-http
|
|
readinessProbe:
|
|
failureThreshold: 7
|
|
httpGet:
|
|
path: /ready
|
|
port: 9996
|
|
securityContext:
|
|
runAsUser: 2103
|
|
allowPrivilegeEscalation: false
|
|
- args:
|
|
- sp-validator
|
|
- -log-level=info
|
|
- -log-format=plain
|
|
- -enable-pprof=false
|
|
image: cr.l5d.io/linkerd/controller:linkerd-version
|
|
imagePullPolicy: IfNotPresent
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /ping
|
|
port: 9997
|
|
initialDelaySeconds: 10
|
|
name: sp-validator
|
|
ports:
|
|
- containerPort: 8443
|
|
name: sp-validator
|
|
- containerPort: 9997
|
|
name: admin-http
|
|
readinessProbe:
|
|
failureThreshold: 7
|
|
httpGet:
|
|
path: /ready
|
|
port: 9997
|
|
securityContext:
|
|
runAsUser: 2103
|
|
allowPrivilegeEscalation: false
|
|
volumeMounts:
|
|
- mountPath: /var/run/linkerd/tls
|
|
name: sp-tls
|
|
readOnly: true
|
|
- args:
|
|
- --admin-addr=0.0.0.0:9990
|
|
- --control-plane-namespace=linkerd-dev
|
|
- --grpc-addr=0.0.0.0:8090
|
|
- --server-addr=0.0.0.0:9443
|
|
- --server-tls-key=/var/run/linkerd/tls/tls.key
|
|
- --server-tls-certs=/var/run/linkerd/tls/tls.crt
|
|
- --cluster-networks=10.0.0.0/8,100.64.0.0/10,172.16.0.0/12,192.168.0.0/16
|
|
- --identity-domain=test.trust.domain
|
|
- --default-policy=all-unauthenticated
|
|
- --log-level=linkerd=info,warn
|
|
- --log-format=plain
|
|
image: cr.l5d.io/linkerd/policy-controller:linkerd-version
|
|
imagePullPolicy: IfNotPresent
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /live
|
|
port: admin
|
|
name: policy
|
|
ports:
|
|
- containerPort: 8090
|
|
name: grpc
|
|
- containerPort: 9990
|
|
name: admin
|
|
- containerPort: 9443
|
|
name: policy-https
|
|
readinessProbe:
|
|
failureThreshold: 7
|
|
httpGet:
|
|
path: /ready
|
|
port: admin
|
|
initialDelaySeconds: 10
|
|
resources:
|
|
securityContext:
|
|
runAsUser: 2103
|
|
allowPrivilegeEscalation: false
|
|
volumeMounts:
|
|
- mountPath: /var/run/linkerd/tls
|
|
name: policy-tls
|
|
readOnly: true
|
|
initContainers:
|
|
- args:
|
|
- --incoming-proxy-port
|
|
- "4143"
|
|
- --outgoing-proxy-port
|
|
- "4140"
|
|
- --proxy-uid
|
|
- "2102"
|
|
- --inbound-ports-to-ignore
|
|
- "4190,4191,222"
|
|
- --outbound-ports-to-ignore
|
|
- "443"
|
|
image: cr.l5d.io/linkerd/proxy-init:test-proxy-init-version
|
|
imagePullPolicy: IfNotPresent
|
|
name: linkerd-init
|
|
resources:
|
|
limits:
|
|
cpu: "100m"
|
|
memory: "20Mi"
|
|
requests:
|
|
cpu: "100m"
|
|
memory: "20Mi"
|
|
securityContext:
|
|
allowPrivilegeEscalation: false
|
|
capabilities:
|
|
add:
|
|
- NET_ADMIN
|
|
- NET_RAW
|
|
privileged: false
|
|
runAsNonRoot: true
|
|
readOnlyRootFilesystem: true
|
|
terminationMessagePolicy: FallbackToLogsOnError
|
|
volumeMounts:
|
|
- mountPath: /run
|
|
name: linkerd-proxy-init-xtables-lock
|
|
serviceAccountName: linkerd-destination
|
|
volumes:
|
|
- name: sp-tls
|
|
secret:
|
|
secretName: linkerd-sp-validator-k8s-tls
|
|
- name: policy-tls
|
|
secret:
|
|
secretName: linkerd-policy-validator-k8s-tls
|
|
- emptyDir: {}
|
|
name: linkerd-proxy-init-xtables-lock
|
|
- name: linkerd-identity-token
|
|
projected:
|
|
sources:
|
|
- serviceAccountToken:
|
|
path: linkerd-identity-token
|
|
expirationSeconds: 86400
|
|
audience: identity.l5d.io
|
|
- emptyDir:
|
|
medium: Memory
|
|
name: linkerd-identity-end-entity
|
|
---
|
|
# Source: linkerd-control-plane/templates/heartbeat.yaml
|
|
---
|
|
###
|
|
### Heartbeat
|
|
###
|
|
apiVersion: batch/v1
|
|
kind: CronJob
|
|
metadata:
|
|
name: linkerd-heartbeat
|
|
|
|
labels:
|
|
app.kubernetes.io/name: heartbeat
|
|
app.kubernetes.io/part-of: Linkerd
|
|
app.kubernetes.io/version: linkerd-version
|
|
linkerd.io/control-plane-component: heartbeat
|
|
linkerd.io/control-plane-ns: linkerd-dev
|
|
annotations:
|
|
linkerd.io/created-by: linkerd/helm linkerd-version
|
|
spec:
|
|
concurrencyPolicy: Replace
|
|
schedule: "1 2 3 4 5"
|
|
successfulJobsHistoryLimit: 0
|
|
jobTemplate:
|
|
spec:
|
|
template:
|
|
metadata:
|
|
labels:
|
|
linkerd.io/control-plane-component: heartbeat
|
|
linkerd.io/workload-ns: linkerd-dev
|
|
annotations:
|
|
linkerd.io/created-by: linkerd/helm linkerd-version
|
|
spec:
|
|
nodeSelector:
|
|
kubernetes.io/os: linux
|
|
serviceAccountName: linkerd-heartbeat
|
|
restartPolicy: Never
|
|
containers:
|
|
- name: heartbeat
|
|
image: cr.l5d.io/linkerd/controller:linkerd-version
|
|
imagePullPolicy: IfNotPresent
|
|
env:
|
|
- name: LINKERD_DISABLED
|
|
value: "the heartbeat controller does not use the proxy"
|
|
args:
|
|
- "heartbeat"
|
|
- "-controller-namespace=linkerd-dev"
|
|
- "-log-level=info"
|
|
- "-log-format=plain"
|
|
- "-prometheus-url=http://prometheus.linkerd-viz.svc.cluster.local:9090"
|
|
securityContext:
|
|
runAsUser: 2103
|
|
allowPrivilegeEscalation: false
|
|
---
|
|
# Source: linkerd-control-plane/templates/proxy-injector.yaml
|
|
---
|
|
###
|
|
### Proxy Injector
|
|
###
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
annotations:
|
|
linkerd.io/created-by: linkerd/helm linkerd-version
|
|
labels:
|
|
app.kubernetes.io/name: proxy-injector
|
|
app.kubernetes.io/part-of: Linkerd
|
|
app.kubernetes.io/version: linkerd-version
|
|
linkerd.io/control-plane-component: proxy-injector
|
|
linkerd.io/control-plane-ns: linkerd-dev
|
|
name: linkerd-proxy-injector
|
|
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
linkerd.io/control-plane-component: proxy-injector
|
|
strategy:
|
|
rollingUpdate:
|
|
maxSurge: 25%
|
|
maxUnavailable: 25%
|
|
template:
|
|
metadata:
|
|
annotations:
|
|
linkerd.io/helm-release-version: "0"
|
|
linkerd.io/created-by: linkerd/helm linkerd-version
|
|
linkerd.io/proxy-version: test-proxy-version
|
|
cluster-autoscaler.kubernetes.io/safe-to-evict: "true"
|
|
config.linkerd.io/opaque-ports: "8443"
|
|
config.linkerd.io/default-inbound-policy: "all-unauthenticated"
|
|
labels:
|
|
linkerd.io/control-plane-component: proxy-injector
|
|
linkerd.io/control-plane-ns: linkerd-dev
|
|
linkerd.io/workload-ns: linkerd-dev
|
|
linkerd.io/proxy-deployment: linkerd-proxy-injector
|
|
spec:
|
|
nodeSelector:
|
|
kubernetes.io/os: linux
|
|
|
|
containers:
|
|
- env:
|
|
- name: _pod_name
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: metadata.name
|
|
- name: _pod_ns
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: metadata.namespace
|
|
- name: _pod_nodeName
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: spec.nodeName
|
|
- name: LINKERD2_PROXY_LOG
|
|
value: "warn,linkerd=info"
|
|
- name: LINKERD2_PROXY_LOG_FORMAT
|
|
value: "plain"
|
|
- name: LINKERD2_PROXY_DESTINATION_SVC_ADDR
|
|
value: linkerd-dst-headless.linkerd-dev.svc.cluster.local.:8086
|
|
- name: LINKERD2_PROXY_DESTINATION_PROFILE_NETWORKS
|
|
value: "10.0.0.0/8,100.64.0.0/10,172.16.0.0/12,192.168.0.0/16"
|
|
- name: LINKERD2_PROXY_POLICY_SVC_ADDR
|
|
value: linkerd-policy.linkerd-dev.svc.cluster.local.:8090
|
|
- name: LINKERD2_PROXY_POLICY_WORKLOAD
|
|
value: "$(_pod_ns):$(_pod_name)"
|
|
- name: LINKERD2_PROXY_INBOUND_DEFAULT_POLICY
|
|
value: all-unauthenticated
|
|
- name: LINKERD2_PROXY_POLICY_CLUSTER_NETWORKS
|
|
value: "10.0.0.0/8,100.64.0.0/10,172.16.0.0/12,192.168.0.0/16"
|
|
- name: LINKERD2_PROXY_INBOUND_CONNECT_TIMEOUT
|
|
value: "100ms"
|
|
- name: LINKERD2_PROXY_OUTBOUND_CONNECT_TIMEOUT
|
|
value: "1000ms"
|
|
- name: LINKERD2_PROXY_CONTROL_LISTEN_ADDR
|
|
value: 0.0.0.0:4190
|
|
- name: LINKERD2_PROXY_ADMIN_LISTEN_ADDR
|
|
value: 0.0.0.0:4191
|
|
- name: LINKERD2_PROXY_OUTBOUND_LISTEN_ADDR
|
|
value: 127.0.0.1:4140
|
|
- name: LINKERD2_PROXY_INBOUND_LISTEN_ADDR
|
|
value: 0.0.0.0:4143
|
|
- name: LINKERD2_PROXY_INBOUND_IPS
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: status.podIPs
|
|
- name: LINKERD2_PROXY_INBOUND_PORTS
|
|
value: "8443,9995"
|
|
- name: LINKERD2_PROXY_DESTINATION_PROFILE_SUFFIXES
|
|
value: svc.cluster.local.
|
|
- name: LINKERD2_PROXY_INBOUND_ACCEPT_KEEPALIVE
|
|
value: 10000ms
|
|
- name: LINKERD2_PROXY_OUTBOUND_CONNECT_KEEPALIVE
|
|
value: 10000ms
|
|
- name: LINKERD2_PROXY_INBOUND_PORTS_DISABLE_PROTOCOL_DETECTION
|
|
value: "25,587,3306,4444,5432,6379,9300,11211"
|
|
- name: LINKERD2_PROXY_DESTINATION_CONTEXT
|
|
value: |
|
|
{"ns":"$(_pod_ns)", "nodeName":"$(_pod_nodeName)"}
|
|
- name: _pod_sa
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: spec.serviceAccountName
|
|
- name: LINKERD2_PROXY_IDENTITY_DIR
|
|
value: /var/run/linkerd/identity/end-entity
|
|
- name: LINKERD2_PROXY_IDENTITY_TRUST_ANCHORS
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: linkerd-identity-trust-roots
|
|
key: ca-bundle.crt
|
|
- name: LINKERD2_PROXY_IDENTITY_TOKEN_FILE
|
|
value: /var/run/secrets/tokens/linkerd-identity-token
|
|
- name: LINKERD2_PROXY_IDENTITY_SVC_ADDR
|
|
value: linkerd-identity-headless.linkerd-dev.svc.cluster.local.:8080
|
|
- name: LINKERD2_PROXY_IDENTITY_LOCAL_NAME
|
|
value: $(_pod_sa).$(_pod_ns).serviceaccount.identity.linkerd-dev.test.trust.domain
|
|
- name: LINKERD2_PROXY_IDENTITY_SVC_NAME
|
|
value: linkerd-identity.linkerd-dev.serviceaccount.identity.linkerd-dev.test.trust.domain
|
|
- name: LINKERD2_PROXY_DESTINATION_SVC_NAME
|
|
value: linkerd-destination.linkerd-dev.serviceaccount.identity.linkerd-dev.test.trust.domain
|
|
- name: LINKERD2_PROXY_POLICY_SVC_NAME
|
|
value: linkerd-destination.linkerd-dev.serviceaccount.identity.linkerd-dev.test.trust.domain
|
|
image: cr.l5d.io/linkerd/proxy:test-proxy-version
|
|
imagePullPolicy: IfNotPresent
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /live
|
|
port: 4191
|
|
initialDelaySeconds: 10
|
|
name: linkerd-proxy
|
|
ports:
|
|
- containerPort: 4143
|
|
name: linkerd-proxy
|
|
- containerPort: 4191
|
|
name: linkerd-admin
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /ready
|
|
port: 4191
|
|
initialDelaySeconds: 2
|
|
resources:
|
|
securityContext:
|
|
allowPrivilegeEscalation: false
|
|
readOnlyRootFilesystem: true
|
|
runAsUser: 2102
|
|
terminationMessagePolicy: FallbackToLogsOnError
|
|
lifecycle:
|
|
postStart:
|
|
exec:
|
|
command:
|
|
- /usr/lib/linkerd/linkerd-await
|
|
- --timeout=2m
|
|
volumeMounts:
|
|
- mountPath: /var/run/linkerd/identity/end-entity
|
|
name: linkerd-identity-end-entity
|
|
- mountPath: /var/run/secrets/tokens
|
|
name: linkerd-identity-token
|
|
- args:
|
|
- proxy-injector
|
|
- -log-level=info
|
|
- -log-format=plain
|
|
- -linkerd-namespace=linkerd-dev
|
|
- -enable-pprof=false
|
|
image: cr.l5d.io/linkerd/controller:linkerd-version
|
|
imagePullPolicy: IfNotPresent
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /ping
|
|
port: 9995
|
|
initialDelaySeconds: 10
|
|
name: proxy-injector
|
|
ports:
|
|
- containerPort: 8443
|
|
name: proxy-injector
|
|
- containerPort: 9995
|
|
name: admin-http
|
|
readinessProbe:
|
|
failureThreshold: 7
|
|
httpGet:
|
|
path: /ready
|
|
port: 9995
|
|
securityContext:
|
|
runAsUser: 2103
|
|
allowPrivilegeEscalation: false
|
|
volumeMounts:
|
|
- mountPath: /var/run/linkerd/config
|
|
name: config
|
|
- mountPath: /var/run/linkerd/identity/trust-roots
|
|
name: trust-roots
|
|
- mountPath: /var/run/linkerd/tls
|
|
name: tls
|
|
readOnly: true
|
|
initContainers:
|
|
- args:
|
|
- --incoming-proxy-port
|
|
- "4143"
|
|
- --outgoing-proxy-port
|
|
- "4140"
|
|
- --proxy-uid
|
|
- "2102"
|
|
- --inbound-ports-to-ignore
|
|
- "4190,4191,222"
|
|
- --outbound-ports-to-ignore
|
|
- "111"
|
|
image: cr.l5d.io/linkerd/proxy-init:test-proxy-init-version
|
|
imagePullPolicy: IfNotPresent
|
|
name: linkerd-init
|
|
resources:
|
|
limits:
|
|
cpu: "100m"
|
|
memory: "20Mi"
|
|
requests:
|
|
cpu: "100m"
|
|
memory: "20Mi"
|
|
securityContext:
|
|
allowPrivilegeEscalation: false
|
|
capabilities:
|
|
add:
|
|
- NET_ADMIN
|
|
- NET_RAW
|
|
privileged: false
|
|
runAsNonRoot: true
|
|
readOnlyRootFilesystem: true
|
|
terminationMessagePolicy: FallbackToLogsOnError
|
|
volumeMounts:
|
|
- mountPath: /run
|
|
name: linkerd-proxy-init-xtables-lock
|
|
serviceAccountName: linkerd-proxy-injector
|
|
volumes:
|
|
- configMap:
|
|
name: linkerd-config
|
|
name: config
|
|
- configMap:
|
|
name: linkerd-identity-trust-roots
|
|
name: trust-roots
|
|
- name: tls
|
|
secret:
|
|
secretName: linkerd-proxy-injector-k8s-tls
|
|
- emptyDir: {}
|
|
name: linkerd-proxy-init-xtables-lock
|
|
- name: linkerd-identity-token
|
|
projected:
|
|
sources:
|
|
- serviceAccountToken:
|
|
path: linkerd-identity-token
|
|
expirationSeconds: 86400
|
|
audience: identity.l5d.io
|
|
- emptyDir:
|
|
medium: Memory
|
|
name: linkerd-identity-end-entity
|
|
---
|
|
kind: Service
|
|
apiVersion: v1
|
|
metadata:
|
|
name: linkerd-proxy-injector
|
|
|
|
labels:
|
|
linkerd.io/control-plane-component: proxy-injector
|
|
linkerd.io/control-plane-ns: linkerd-dev
|
|
annotations:
|
|
linkerd.io/created-by: linkerd/helm linkerd-version
|
|
config.linkerd.io/opaque-ports: "443"
|
|
spec:
|
|
type: ClusterIP
|
|
selector:
|
|
linkerd.io/control-plane-component: proxy-injector
|
|
ports:
|
|
- name: proxy-injector
|
|
port: 443
|
|
targetPort: proxy-injector
|