Skip to content

Commit

Permalink
Merge pull request #217 from sergeykostov/skostov-fix-cndr-liveness
Browse files Browse the repository at this point in the history
Fix cndr liveness.
  • Loading branch information
BenRub authored Dec 24, 2023
2 parents db1b182 + fa04e1a commit 1009e2e
Show file tree
Hide file tree
Showing 5 changed files with 92 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/v1/cndr_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type CBContainersCndrSensorSpec struct {
Image CBContainersImageSpec `json:"image,omitempty"`
// +kubebuilder:default:={requests: {memory: "64Mi", cpu: "30m"}, limits: {memory: "1024Mi", cpu: "500m"}}
Resources coreV1.ResourceRequirements `json:"resources,omitempty"`
// +kubebuilder:default:={initialDelaySeconds: 45, timeoutSeconds: 5, periodSeconds: 30, successThreshold: 1, failureThreshold: 3, readinessPath: "/tmp/ready", livenessPath: "/tmp/alive" }
// +kubebuilder:default:={initialDelaySeconds: 240, timeoutSeconds: 1, periodSeconds: 30, successThreshold: 1, failureThreshold: 5, readinessPath: "/tmp/ready", livenessPath: "/tmp/alive" }
Probes CBContainersFileProbesSpec `json:"probes,omitempty"`
// +kubebuilder:default:={port: 7071}
Prometheus CBContainersPrometheusSpec `json:"prometheus,omitempty"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,5 +205,6 @@ components:
enabled: false
cndr:
enabled: true
probes: {}
# accessTokenSecretName is the name of the Kubernetes object of type Secret that holds the values of the Company Code
companyCodeSecretName: "my-company-code-secret-name"
Original file line number Diff line number Diff line change
Expand Up @@ -4837,6 +4837,36 @@ spec:
type: string
default: {}
type: object
probes:
default: {}
properties:
failureThreshold:
default: 5
format: int32
type: integer
initialDelaySeconds:
default: 240
format: int32
type: integer
livenessPath:
default: /tmp/alive
type: string
periodSeconds:
default: 30
format: int32
type: integer
readinessPath:
default: /tmp/ready
type: string
successThreshold:
default: 1
format: int32
type: integer
timeoutSeconds:
default: 1
format: int32
type: integer
type: object
prometheus:
default:
port: 7071
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4827,6 +4827,36 @@ spec:
type: string
default: {}
type: object
probes:
default: {}
properties:
failureThreshold:
default: 5
format: int32
type: integer
initialDelaySeconds:
default: 240
format: int32
type: integer
livenessPath:
default: /tmp/alive
type: string
periodSeconds:
default: 30
format: int32
type: integer
readinessPath:
default: /tmp/ready
type: string
successThreshold:
default: 1
format: int32
type: integer
timeoutSeconds:
default: 1
format: int32
type: integer
type: object
prometheus:
default:
port: 7071
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4472,6 +4472,36 @@ spec:
additionalProperties:
type: string
type: object
probes:
default: {}
properties:
failureThreshold:
default: 5
format: int32
type: integer
initialDelaySeconds:
default: 240
format: int32
type: integer
livenessPath:
default: /tmp/alive
type: string
periodSeconds:
default: 30
format: int32
type: integer
readinessPath:
default: /tmp/ready
type: string
successThreshold:
default: 1
format: int32
type: integer
timeoutSeconds:
default: 1
format: int32
type: integer
type: object
prometheus:
properties:
enabled:
Expand Down

0 comments on commit 1009e2e

Please sign in to comment.