File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -8,5 +8,5 @@ RUN apk --no-cache add ca-certificates
88WORKDIR /root/
99COPY --from=builder /go/src/k8s-workshop/k8s .
1010
11- EXPOSE 8080
11+ EXPOSE 9090
1212ENTRYPOINT ./k8s
Original file line number Diff line number Diff line change @@ -17,17 +17,17 @@ func getServerIP() string {
1717
1818func 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
2828func 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}
You can’t perform that action at this time.
0 commit comments