File tree Expand file tree Collapse file tree 5 files changed +31
-20
lines changed
Expand file tree Collapse file tree 5 files changed +31
-20
lines changed Original file line number Diff line number Diff line change 1212{
1313 var builder = WebApplication . CreateBuilder ( args ) ;
1414 builder . Logging . ClearProviders ( ) ;
15+
16+ builder . Configuration . AddEnvironmentVariables ( "ES_" ) ;
17+
1518 builder . Ignite ( ) ;
1619 builder . IgniteSerilog ( ) ;
1720 builder . IgniteSeqOpenTelemetryExporter ( ) ;
1821 builder . Services . AddMediatR ( config =>
1922 config . RegisterServicesFromAssembly ( typeof ( Program ) . Assembly ) ) ;
2023
21- builder . Services . Configure < ReflectorOptions > ( builder . Configuration . GetSection ( " Reflector" ) ) ;
24+ builder . Services . Configure < ReflectorOptions > ( builder . Configuration . GetSection ( nameof ( ES . Kubernetes . Reflector ) ) ) ;
2225
2326 builder . Services . AddTransient ( s =>
2427 {
4548
4649 var app = builder . Build ( ) ;
4750 app . Ignite ( ) ;
48-
4951 await app . RunAsync ( ) ;
5052 return 0 ;
5153} ) ;
Original file line number Diff line number Diff line change 44 "commandName" : " Project" ,
55 "launchBrowser" : false ,
66 "environmentVariables" : {
7- "ES_ENVIRONMENT " : " Development"
7+ "ASPNETCORE_ENVIRONMENT " : " Development"
88 },
99 "applicationUrl" : " http://0.0.0.0:8080" ,
1010 "dotnetRunMessages" : false
Original file line number Diff line number Diff line change 6868 value : {{ .Values.configuration.logging.minimumLevel | quote }}
6969 - name : ES_Reflector__Watcher__Timeout
7070 value : {{ .Values.configuration.watcher.timeout | quote }}
71+ - name : ES_Reflector__Kubernetes__SkipTlsVerify
72+ value : {{ .Values.configuration.kubernetes.skipTlsVerify | quote }}
73+ {{- with .Values.extraEnv }}
74+ {{- toYaml . | nindent 12 }}
75+ {{- end }}
7176 resources :
7277 {{- toYaml .Values.resources | nindent 16 }}
7378{{- end }}
Original file line number Diff line number Diff line change @@ -57,21 +57,15 @@ spec:
5757
5858 ports :
5959 - name : http
60- containerPort : 25080
60+ containerPort : 8080
6161 protocol : TCP
6262 livenessProbe :
63- {{- toYaml .Values.healthcheck | nindent 12 }}
64- initialDelaySeconds : {{ .Values.livenessProbe.initialDelaySeconds }}
65- periodSeconds : {{ .Values.livenessProbe.periodSeconds }}
63+ {{- toYaml .Values.livenessProbe | nindent 12 }}
6664 readinessProbe :
67- {{- toYaml .Values.healthcheck | nindent 12 }}
68- initialDelaySeconds : {{ .Values.readinessProbe.initialDelaySeconds }}
69- periodSeconds : {{ .Values.readinessProbe.periodSeconds }}
65+ {{- toYaml .Values.readinessProbe | nindent 12 }}
7066 {{- if semverCompare ">= 1.18-0" .Capabilities.KubeVersion.Version }}
7167 startupProbe :
72- {{- toYaml .Values.healthcheck | nindent 12 }}
73- failureThreshold : {{ .Values.startupProbe.failureThreshold }}
74- periodSeconds : {{ .Values.startupProbe.periodSeconds }}
68+ {{- toYaml .Values.startupProbe | nindent 12 }}
7569 {{- end }}
7670 resources :
7771 {{- toYaml .Values.resources | nindent 12 }}
Original file line number Diff line number Diff line change @@ -61,21 +61,31 @@ securityContext:
6161 runAsNonRoot : true
6262 runAsUser : 1000
6363
64- healthcheck :
64+ livenessProbe :
6565 httpGet :
66- path : /healthz
66+ path : /health/live
6767 port : http
68-
69- livenessProbe :
68+ timeoutSeconds : 10
7069 initialDelaySeconds : 5
7170 periodSeconds : 10
71+ failureThreshold : 5
7272readinessProbe :
73+ httpGet :
74+ path : /health/ready
75+ port : http
76+ timeoutSeconds : 10
7377 initialDelaySeconds : 5
7478 periodSeconds : 10
79+ failureThreshold : 5
7580startupProbe :
76- # The application will have a maximum of 50s (10 * 5 = 50s) to finish its startup.
77- failureThreshold : 10
78- periodSeconds : 5
81+ httpGet :
82+ path : /health/ready
83+ port : http
84+ timeoutSeconds : 10
85+ initialDelaySeconds : 5
86+ periodSeconds : 10
87+ failureThreshold : 5
88+
7989
8090resources :
8191 {}
You can’t perform that action at this time.
0 commit comments