mirror of https://github.com/dapr/docs.git
				
				
				
			
		
			
				
	
	
	
		
			5.9 KiB
		
	
	
	
	
	
			
		
		
	
	
			5.9 KiB
		
	
	
	
	
	
| type | title | linkTitle | weight | description | 
|---|---|---|---|---|
| docs | Dapr Kubernetes pod annotations spec | Kubernetes annotations | 50000 | The available annotations available when configuring Dapr in your Kubernetes environment | 
The following table shows all the supported pod Spec annotations supported by Dapr.
| Annotation | Description | 
|---|---|
| dapr.io/enabled | Setting this paramater to trueinjects the Dapr sidecar into the pod | 
| dapr.io/app-port | This parameter tells Dapr which port your application is listening on | 
| dapr.io/app-id | The unique ID of the application. Used for service discovery, state encapsulation and the pub/sub consumer ID | 
| dapr.io/log-level | Sets the log level for the Dapr sidecar. Allowed values are debug,info,warn,error. Default isinfo | 
| dapr.io/config | Tells Dapr which Configuration CRD to use | 
| dapr.io/log-as-json | Setting this parameter to trueoutputs logs in JSON format. Default isfalse | 
| dapr.io/enable-profiling | Setting this paramater to truestarts the Dapr profiling server on port7777. Default isfalse | 
| dapr.io/api-token-secret | Tells Dapr which Kubernetes secret to use for token based API authentication. By default this is not set. | 
| dapr.io/app-protocol | Tells Dapr which protocol your application is using. Valid options are httpandgrpc. Default ishttp | 
| dapr.io/app-max-concurrency | Limit the concurrency of your application. A valid value is any number larger than 0 | 
| dapr.io/app-ssl | Tells Dapr to invoke the app over an insecure SSL connection. Applies to both HTTP and gRPC. Traffic between your app and the Dapr sidecar is encrypted with a certificate issued by a non-trusted certificate authority, which is considered insecure. Default is false. | 
| dapr.io/metrics-port | Sets the port for the sidecar metrics server. Default is 9090 | 
| dapr.io/sidecar-cpu-limit | Maximum amount of CPU that the Dapr sidecar can use. See valid values here. By default this is not set | 
| dapr.io/sidecar-memory-limit | Maximum amount of Memory that the Dapr sidecar can use. See valid values here. By default this is not set | 
| dapr.io/sidecar-cpu-request | Amount of CPU that the Dapr sidecar requests. See valid values here. By default this is not set | 
| dapr.io/sidecar-memory-request | Amount of Memory that the Dapr sidecar requests .See valid values here. By default this is not set | 
| dapr.io/sidecar-liveness-probe-delay-seconds | Number of seconds after the sidecar container has started before liveness probe is initiated. Read more here. Default is 3 | 
| dapr.io/sidecar-liveness-probe-timeout-seconds | Number of seconds after which the sidecar liveness probe times out. Read more here. Default is 3 | 
| dapr.io/sidecar-liveness-probe-period-seconds | How often (in seconds) to perform the sidecar liveness probe. Read more here. Default is 6 | 
| dapr.io/sidecar-liveness-probe-threshold | When the sidecar liveness probe fails, Kubernetes will try N times before giving up. In  this case, the Pod will be marked Unhealthy. Read more about failureThresholdhere. Default is3 | 
| dapr.io/sidecar-readiness-probe-delay-seconds | Number of seconds after the sidecar container has started before readiness probe is initiated. Read more here. Default is 3 | 
| dapr.io/sidecar-readiness-probe-timeout-seconds | Number of seconds after which the sidecar readiness probe times out. Read more here. Default is 3 | 
| dapr.io/sidecar-readiness-probe-period-seconds | How often (in seconds) to perform the sidecar readiness probe. Read more here. Default is 6 | 
| dapr.io/sidecar-readiness-probe-threshold | When the sidecar readiness probe fails, Kubernetes will try N times before giving up. In  this case, the Pod will be marked Unready. Read more about failureThresholdhere. Default is3 | 
| dapr.io/http-max-request-size | Increasing max size of request body http and grpc servers parameter in MB to handle uploading of big files. Default is 4MB | 
| dapr.io/env | List of environment variable to be injected into the sidecar. Strings consisting of key=value pairs separated by a comma. |