This repository was archived by the owner on Jan 19, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +65
-4
lines changed
readiness-and-liveness-probes Expand file tree Collapse file tree 7 files changed +65
-4
lines changed Original file line number Diff line number Diff line change 23
23
exit 1
24
24
fi
25
25
26
+ mgw_ready_count=" $( kubectl get pod -l app=microgateway | grep 1/1 | wc -l) "
27
+
28
+ if [[ $mgw_ready_count -eq 1 ]]; then
29
+ echo " OK: Microgateway is ready"
30
+ else
31
+ echo " NOK: Microgateway is not running - number of pods ready: $mgw_ready_count "
32
+ exit 1
33
+ fi
34
+
26
35
if [[ -f " ${TUTORIAL_DIR} /../.scripts/verify.sh" ]]; then
27
36
${TUTORIAL_DIR} /../.scripts/verify.sh
28
37
fi
Original file line number Diff line number Diff line change 22
22
- name : dockerregcred
23
23
initContainers :
24
24
- name : configbuilder
25
- image : docker.io/ergon/airlock-microgateway-configbuilder:3.0.0
25
+ image : docker.io/ergon/airlock-microgateway-configbuilder:3.0.1
26
26
imagePullPolicy : IfNotPresent
27
27
volumeMounts :
28
28
- name : config
44
44
value : " Europe/Zurich"
45
45
containers :
46
46
- name : microgateway
47
- image : docker.io/ergon/airlock-microgateway:3.0.0
47
+ image : docker.io/ergon/airlock-microgateway:3.0.1
48
48
imagePullPolicy : IfNotPresent
49
49
volumeMounts :
50
50
- name : config-files
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ wp plugin install /var/tmp/plugins/simple-jwt-login/simple-jwt-login.zip --activ
3
3
wp option update simple_jwt_login_settings "
4
4
{
5
5
\" route_namespace\" :\" simple-jwt-login\/v1\/\" ,
6
- \" decryption_key\" :\" ${JWT_DECRYPTION_KEY2 :- c3VwZXJsb25ndGV4dHRoYXRpc3VzZWRmb3Jqd3R0b2tlbgo=} \" ,
6
+ \" decryption_key\" :\" ${JWT_DECRYPTION_KEY :- c3VwZXJsb25ndGV4dHRoYXRpc3VzZWRmb3Jqd3R0b2tlbgo=} \" ,
7
7
\" jwt_algorithm\" :\" HS512\" ,
8
8
\" jwt_login_by\" :0,
9
9
\" jwt_login_by_parameter\" :\" email\" ,
@@ -19,7 +19,7 @@ wp option update simple_jwt_login_settings "
19
19
\" require_register_auth\" :true,
20
20
\" auth_codes\" :[
21
21
{
22
- \" code\" :\" ${JWT_AUTH_CODE2 :- superlongtextthatisusedforjwttoken} \" ,
22
+ \" code\" :\" ${JWT_AUTH_CODE :- superlongtextthatisusedforjwttoken} \" ,
23
23
\" role\" :\"\" ,
24
24
\" expiration_date\" :\"\"
25
25
}
Original file line number Diff line number Diff line change
1
+ ---
2
+ apiVersion : kustomize.config.k8s.io/v1beta1
3
+ kind : Kustomization
4
+
5
+ bases :
6
+ - ../solution
7
+
8
+ patchesStrategicMerge :
9
+ - patch-probes.yaml
Original file line number Diff line number Diff line change
1
+ ---
2
+ apiVersion : apps/v1
3
+ kind : Deployment
4
+ metadata :
5
+ name : microgateway
6
+ spec :
7
+ template :
8
+ spec :
9
+ containers :
10
+ - name : microgateway
11
+ readinessProbe :
12
+ httpGet :
13
+ port : 443
14
+ livenessProbe :
15
+ httpGet :
16
+ port : 443
Original file line number Diff line number Diff line change
1
+ ---
2
+ apps :
3
+ - virtual_host :
4
+ name : echoserver
5
+ hostname : echoserver.virtinc.local
6
+ mappings :
7
+ - name : echoserver
8
+ backend :
9
+ name : echoserver
10
+ hosts :
11
+ - name : echoserver
12
+ protocol : http
13
+ port : 8080
Original file line number Diff line number Diff line change
1
+ ---
2
+ apiVersion : kustomize.config.k8s.io/v1beta1
3
+ kind : Kustomization
4
+
5
+ bases :
6
+ - ../../.templates/ingress
7
+ - ../../.templates/microgateway
8
+ - ../../.templates/echoserver
9
+
10
+ configMapGenerator :
11
+ - name : microgateway-config
12
+ behavior : replace
13
+ files :
14
+ - config/config.yaml
You can’t perform that action at this time.
0 commit comments