Skip to content

Commit

Permalink
add healthprobes
Browse files Browse the repository at this point in the history
  • Loading branch information
nithyatsu committed Nov 16, 2023
1 parent ae5a1a5 commit ff56df4
Show file tree
Hide file tree
Showing 10 changed files with 57 additions and 0 deletions.
7 changes: 7 additions & 0 deletions samples/eshop/services/basket.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,13 @@ resource basket 'Applications.Core/containers@2023-10-01-preview' = {
port: 9103
}
}
livenessProbe:{
kind:'httpGet'
path:'/hc'
containerPort:80
}
}

connections: {
redis: {
source: redisBasket.id
Expand All @@ -72,6 +78,7 @@ resource basket 'Applications.Core/containers@2023-10-01-preview' = {
disableDefaultEnvVars: true
}
}

}
}

Expand Down
5 changes: 5 additions & 0 deletions samples/eshop/services/catalog.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ resource catalog 'Applications.Core/containers@2023-10-01-preview' = {
port: 9101
}
}
livenessProbe:{
kind:'httpGet'
path:'/hc'
containerPort:80
}
}
connections: {
sql: {
Expand Down
5 changes: 5 additions & 0 deletions samples/eshop/services/identity.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ resource identity 'Applications.Core/containers@2023-10-01-preview' = {
port: 5105
}
}
livenessProbe:{
kind:'httpGet'
path:'/hc'
containerPort:80
}
}
connections: {
redis: {
Expand Down
5 changes: 5 additions & 0 deletions samples/eshop/services/ordering.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,11 @@ resource orderingsignalrhub 'Applications.Core/containers@2023-10-01-preview' =
port: 5112
}
}
livenessProbe:{
kind:'httpGet'
path:'/hc'
containerPort:80
}
}
connections: {
redis: {
Expand Down
5 changes: 5 additions & 0 deletions samples/eshop/services/payment.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ resource payment 'Applications.Core/containers@2023-10-01-preview' = {
port: 5108
}
}
livenessProbe:{
kind:'httpGet'
path:'/hc'
containerPort:80
}
}
}
}
5 changes: 5 additions & 0 deletions samples/eshop/services/seq.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ resource seq 'Applications.Core/containers@2023-10-01-preview' = {
port: 5340
}
}
livenessProbe:{
kind:'httpGet'
path:'/hc'
containerPort:80
}
}
}
}
Expand Down
5 changes: 5 additions & 0 deletions samples/eshop/services/web.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ resource webspa 'Applications.Core/containers@2023-10-01-preview' = {
port: 5104
}
}
livenessProbe:{
kind:'httpGet'
path:'/hc'
containerPort:80
}
}
connections: {
redis: {
Expand Down
5 changes: 5 additions & 0 deletions samples/eshop/services/webhooks.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ resource webhooks 'Applications.Core/containers@2023-10-01-preview' = {
port: 5113
}
}
livenessProbe:{
kind:'httpGet'
path:'/hc'
containerPort:80
}
}
connections: {
sql: {
Expand Down
10 changes: 10 additions & 0 deletions samples/eshop/services/webshopping.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ resource webshoppingagg 'Applications.Core/containers@2023-10-01-preview' = {
port: 5121
}
}
livenessProbe:{
kind:'httpGet'
path:'/hc'
containerPort:80
}
}
connections: {
identity: {
Expand Down Expand Up @@ -87,6 +92,11 @@ resource webshoppingapigw 'Applications.Core/containers@2023-10-01-preview' = {
port: 15202
}
}
livenessProbe:{
kind:'httpGet'
path:'/hc'
containerPort:80
}
}
}
}
Expand Down
5 changes: 5 additions & 0 deletions samples/eshop/services/webstatus.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ resource webstatus 'Applications.Core/containers@2023-10-01-preview' = {
port: 8107
}
}
livenessProbe:{
kind:'httpGet'
path:'/hc'
containerPort:80
}
}
}
}

0 comments on commit ff56df4

Please sign in to comment.