@@ -270,31 +270,31 @@ However, only the `drone` and `large` cluster types were selected by the schedul
270
270
271
271
# ## Understand deployment target assignment manifests
272
272
273
- Before you continue, take a closer look at the generated assignment manifests for the ` functional-test` deployment target. There are ` namespace.yaml` , ` config.yaml` and ` reconciler.yaml` manifest files.
273
+ Before you continue, take a closer look at the generated assignment manifests for the ` functional-test` deployment target. There are ` namespace.yaml` , ` platform- config.yaml` and ` reconciler.yaml` manifest files.
274
274
275
275
` namespace.yaml` defines a namespace that will be created on any ` drone` cluster where the ` hello-world` application runs.
276
276
277
277
` ` ` yaml
278
278
apiVersion: v1
279
279
kind: Namespace
280
280
metadata:
281
+ name: " dev-drone-hello-world-app-functional-test"
281
282
labels:
282
- deploymentTarget: hello-world-app-functional-test
283
- environment: dev
283
+ environment: " dev"
284
+ workspace: " kaizen-app-team"
285
+ workload: " hello-world-app"
286
+ deploymentTarget: " hello-world-app-functional-test"
284
287
someLabel: some-value
285
- workload: hello-world-app
286
- workspace: kaizen-app-team
287
- name: dev-kaizen-app-team-hello-world-app-functional-test
288
288
` ` `
289
289
290
- ` config.yaml` contains all platform configuration values available on any ` drone` cluster that the application can use in the ` Dev` environment.
290
+ ` platform- config.yaml` contains all platform configuration values available on any ` drone` cluster that the application can use in the ` Dev` environment.
291
291
292
292
` ` ` yaml
293
293
apiVersion: v1
294
294
kind: ConfigMap
295
295
metadata:
296
296
name: platform-config
297
- namespace: dev-kaizen-app-team -hello-world-app-functional-test
297
+ namespace: dev-drone -hello-world-app-functional-test
298
298
data:
299
299
CLUSTER_NAME: Drone
300
300
DATABASE_URL: mysql://restricted-host:3306/mysqlrty123
@@ -309,29 +309,29 @@ data:
309
309
apiVersion: source.toolkit.fluxcd.io/v1beta2
310
310
kind: GitRepository
311
311
metadata:
312
- name: hello-world-app-functional-test
312
+ name: " hello-world-app-functional-test"
313
313
namespace: flux-system
314
314
spec:
315
- interval: 30s
315
+ interval: 15s
316
+ url: " https://github.com/eedorenko/kalypso-tut-test-app-gitops"
316
317
ref:
317
- branch: dev
318
+ branch: " dev"
318
319
secretRef:
319
- name: repo-secret
320
- url: https://github.com/< GitHub org> /< prefix> -app-gitops
320
+ name: repo-secret
321
321
---
322
322
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
323
323
kind: Kustomization
324
324
metadata:
325
- name: hello-world-app-functional-test
325
+ name: " hello-world-app-functional-test"
326
326
namespace: flux-system
327
327
spec:
328
328
interval: 30s
329
- path: ./functional-test
330
- prune: true
329
+ targetNamespace: " dev-drone-hello-world-app-functional-test"
331
330
sourceRef:
332
331
kind: GitRepository
333
- name: hello-world-app-functional-test
334
- targetNamespace: dev-kaizen-app-team-hello-world-app-functional-test
332
+ name: " hello-world-app-functional-test"
333
+ path: " ./functional-test"
334
+ prune: true
335
335
` ` `
336
336
337
337
> [! NOTE]
@@ -419,7 +419,7 @@ The generated manifests are added to a pull request to the `stage` branch waitin
419
419
To test the application manually on the ` Dev` environment before approving the PR to the ` Stage` environment, first verify how the ` functional-test` application instance works on the ` drone` cluster:
420
420
421
421
` ` ` bash
422
- kubectl port-forward svc/hello-world-service -n dev-kaizen-app-team -hello-world-app-functional-test 9090:9090 --context=drone
422
+ kubectl port-forward svc/hello-world-service -n dev-drone -hello-world-app-functional-test 9090:9090 --context=drone
423
423
424
424
# output:
425
425
# Forwarding from 127.0.0.1:9090 -> 9090
@@ -434,7 +434,7 @@ While this command is running, open `localhost:9090` in your browser. You'll see
434
434
The next step is to check how the `performance-test` instance works on the `large` cluster:
435
435
436
436
```bash
437
- kubectl port-forward svc/hello-world-service -n dev-kaizen-app-team -hello-world-app-performance-test 8080:8080 --context=large
437
+ kubectl port-forward svc/hello-world-service -n dev-large -hello-world-app-performance-test 8080:8080 --context=large
438
438
439
439
# output:
440
440
# Forwarding from 127.0.0.1:8080 -> 8080
@@ -449,13 +449,13 @@ Once you're satisfied with the `Dev` environment, approve and merge the PR to th
449
449
Run the following command for the `drone` cluster and open `localhost:8001` in your browser:
450
450
451
451
` ` ` bash
452
- kubectl port-forward svc/hello-world-service -n stage-kaizen-app-team -hello-world-app-uat-test 8001:8000 --context=drone
452
+ kubectl port-forward svc/hello-world-service -n stage-drone -hello-world-app-uat-test 8001:8000 --context=drone
453
453
` ` `
454
454
455
455
Run the following command for the `large` cluster and open `localhost:8002` in your browser:
456
456
457
457
` ` ` bash
458
- kubectl port-forward svc/hello-world-service -n stage-kaizen-app-team -hello-world-app-uat-test 8002:8000 --context=large
458
+ kubectl port-forward svc/hello-world-service -n stage-large -hello-world-app-uat-test 8002:8000 --context=large
459
459
` ` `
460
460
461
461
The application instance on the ` large` cluster shows the following greeting page:
@@ -503,8 +503,8 @@ Once the new configuration has arrived to the `large` cluster, check the `uat-te
503
503
running the following commands:
504
504
505
505
```bash
506
- kubectl rollout restart deployment hello-world-deployment -n stage-kaizen-app-team -hello-world-app-uat-test --context=large
507
- kubectl port-forward svc/hello-world-service -n stage-kaizen-app-team -hello-world-app-uat-test 8002:8000 --context=large
506
+ kubectl rollout restart deployment hello-world-deployment -n stage-large -hello-world-app-uat-test --context=large
507
+ kubectl port-forward svc/hello-world-service -n stage-large -hello-world-app-uat-test 8002:8000 --context=large
508
508
```
509
509
510
510
You' ll see the updated database url:
@@ -532,6 +532,7 @@ metadata:
532
532
spec:
533
533
reconciler: arc-flux
534
534
namespaceService: default
535
+ configType: configmap
535
536
EOF
536
537
537
538
git add .
0 commit comments