Skip to content

Commit

Permalink
Merge pull request #109 from davidzuluagae/hotfix/105_hello-kenzan-tag
Browse files Browse the repository at this point in the history
hotfix: hello-kenzan image tag
  • Loading branch information
davidzuluagae authored Dec 3, 2018
2 parents edae9fc + 5ef2540 commit 4992ec9
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ The proxy’s work is done, so you can go ahead and stop it.

With the image in our cluster registry, the last thing to do is apply the manifest to create and deploy the hello-kenzan pod based on the image.

`kubectl apply -f applications/hello-kenzan/k8s/deployment.yaml`
`kubectl apply -f applications/hello-kenzan/k8s/manual-deployment.yaml`

#### Step18

Expand Down
2 changes: 1 addition & 1 deletion applications/hello-kenzan/k8s/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spec:
tier: hello-kenzan
spec:
containers:
- image: 127.0.0.1:30400/hello-kenzan:latest
- image: 127.0.0.1:30400/hello-kenzan:$BUILD_TAG
name: hello-kenzan
ports:
- containerPort: 80
Expand Down
37 changes: 37 additions & 0 deletions applications/hello-kenzan/k8s/manual-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
apiVersion: v1
kind: Service
metadata:
name: hello-kenzan
labels:
app: hello-kenzan
spec:
ports:
- port: 80
targetPort: 80
selector:
app: hello-kenzan
tier: hello-kenzan
type: NodePort

---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: hello-kenzan
labels:
app: hello-kenzan
spec:
strategy:
type: Recreate
template:
metadata:
labels:
app: hello-kenzan
tier: hello-kenzan
spec:
containers:
- image: 127.0.0.1:30400/hello-kenzan:latest
name: hello-kenzan
ports:
- containerPort: 80
name: hello-kenzan
2 changes: 1 addition & 1 deletion part1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ parts:
com: docker stop socat-registry;

- cap: With the image in our cluster registry, the last thing to do is apply the manifest to create and deploy the hello-kenzan pod based on the image.
com: kubectl apply -f applications/hello-kenzan/k8s/deployment.yaml
com: kubectl apply -f applications/hello-kenzan/k8s/manual-deployment.yaml

- cap: Launch a web browser and view the service.
com: minikube service hello-kenzan
Expand Down

0 comments on commit 4992ec9

Please sign in to comment.