Skip to content

Commit fecf87b

Browse files
committed
Adding QA version, deploy at port 9090
1 parent 6897ae1 commit fecf87b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

k8s/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ RUN apk --no-cache add ca-certificates
88
WORKDIR /root/
99
COPY --from=builder /go/src/k8s-workshop/k8s .
1010

11-
EXPOSE 8080
11+
EXPOSE 9090
1212
ENTRYPOINT ./k8s

k8s/k8s.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ func getServerIP() string {
1717

1818
func playHome(w http.ResponseWriter, r *http.Request) {
1919
html := `<!DOCTYPE html><html><body><center>
20-
<img src="https://raw.githubusercontent.com/twogg-git/k8s-workshop/master/src/1.2.png">
21-
<h1 style="color:green">Playing with Kubernetes</h1>
22-
<h2 style="color:blue">Your server IP:` + getServerIP() + `</h2>
23-
<h3 style="color:blue">Version: twogghub/k8s-workshop:1.2-yaml</h3>
20+
<img src="https://raw.githubusercontent.com/twogg-git/k8s-workshop/master/src/1.2.1.png">
21+
<h1 style="color:red">Playing with Kubernetes</h1>
22+
<h2 style="color:red">Your server IP ` + getServerIP() + ` :9090</h2>
23+
<h3 style="color:red">Version twogghub/k8s-workshop:1.2-qaonly</h3>
2424
</center></body></html>`
2525
fmt.Fprintf(w, html)
2626
}
2727

2828
func main() {
2929
http.HandleFunc("/", playHome)
30-
if err := http.ListenAndServe(":8080", nil); err != nil {
30+
if err := http.ListenAndServe(":9090", nil); err != nil {
3131
panic(err)
3232
}
3333
}

src/1.2.1.png

153 KB
Loading

0 commit comments

Comments
 (0)