Skip to content

Commit 6dc3fa4

Browse files
updated yaml files
1 parent 624dc47 commit 6dc3fa4

File tree

3 files changed

+5
-20
lines changed

3 files changed

+5
-20
lines changed

Kubernetes - Scenario/ResilientMicroservices.Sample/k8sDeploy/deploy.ps1

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
$namespace = "packt"
22
$dockerRegistry = "localhost:5000"
3-
$dockerusername = ""
4-
$dockerpassword = ""
5-
$pullSecret = ""
63
$fluentdConfigFile= '.\k8s\efk\fluentd.conf'
7-
$releaseVersion = "0.0.3"
4+
$releaseVersion = "0.0.1"
85
$ErrorActionPreference = "Stop"
96

107
Write-Host "Building docker images" -ForegroundColor Yellow
@@ -34,21 +31,9 @@ if ($LASTEXITCODE -ne 0) {
3431
Write-Host "Successfully created namespace $namespace" -ForegroundColor Green
3532
}
3633

37-
# Write-Host "Setup k8s requirements" -ForegroundColor Yellow
34+
Write-Host "Setup k8s requirements" -ForegroundColor Yellow
3835
& kubectl config set-context $(& kubectl config current-context) --namespace=$namespace
39-
# & kubectl create secret docker-registry $pullSecret `
40-
# --docker-server=$dockerRegistry `
41-
# --docker-username=$dockerusername `
42-
# --docker-password=$dockerpassword `
43-
# --docker-email="example@gmail.com" `
44-
# --namespace=$namespace
45-
# & kubectl create configmap fluentd-config --from-file=fluent.conf=$fluentdConfigFile -n $namespace
46-
# & kubectl get secret $pullSecret -n $namespace
47-
# If ($LASTEXITCODE -ne 0) {
48-
# throw "$pullSecret cannot be created in namespace '$namespace'."
49-
# } else {
50-
# Write-Host "Successfully created secret $pullSecret" -ForegroundColor Green
51-
# }
36+
& kubectl create configmap fluentd-config --from-file=fluent.conf=$fluentdConfigFile -n $namespace
5237

5338
Write-Host "Starting k8s deployment" -ForegroundColor Yellow
5439
& kubectl apply -f "$PSScriptRoot\k8s\efk"

Kubernetes - Scenario/ResilientMicroservices.Sample/k8sDeploy/k8s/customerservice.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ spec:
2525
spec:
2626
containers:
2727
- name: customerservice
28-
image: localhost:5000/customerservice:0.0.3
28+
image: localhost:5000/customerservice:0.0.1
2929
imagePullPolicy: Always
3030
ports:
3131
- containerPort: 80

Kubernetes - Scenario/ResilientMicroservices.Sample/k8sDeploy/k8s/orderservice.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ spec:
2525
spec:
2626
containers:
2727
- name: orderservice
28-
image: localhost:5000/orderservice:0.0.3
28+
image: localhost:5000/orderservice:0.0.1
2929
imagePullPolicy: Always
3030
ports:
3131
- containerPort: 80

0 commit comments

Comments
 (0)