官术网_书友最值得收藏!

Activity: Running a Web Server with Synchronization

Scenario

You are assigned the task of making a Kubernetes installation for a web-based 2048 game. However, the game is still in development and developers push frequent changes throughout the day. In this installation, the game should be frequently
updated to include the recent changes.

Aim

With the successful deployment, there should be a pod running in Kubernetes with two containers. One of the containers should serve the game and the other container, namely the sidecar container, should continuously update the source code of the game. Using Kubernetes, you need to create a cloud-native solution where the server and synchronization tasks are working together, but not depending on each other.

Prerequisites

Use a git Docker image for continuous synchronization in the sidecar container and an open source code repository for the 2048 game.

Steps for Completion

  1. Create a pod definition.
  2. Include two containers:
    • httpd for game serving.
    • git for source code synchronization.
  1. Deploy the pod.
  2. Show the logs of the synchronization.
  3. Check whether the game has started.

All of the code files for the activities in this chapter are provided on GitHub in the Lesson-1 folder at https://goo.gl/gM8W3p.

You are expected to create a 2048 game, like the one shown in the following screenshot:

主站蜘蛛池模板: 萨迦县| 互助| 安丘市| 洞头县| 壤塘县| 曲阳县| 太康县| 麻阳| 蓬莱市| 余庆县| 阿巴嘎旗| 吉水县| 京山县| 永登县| 大城县| 哈尔滨市| 许昌县| 龙泉市| 阳新县| 西宁市| 海淀区| 若羌县| 新闻| 五家渠市| 疏附县| 修水县| 迭部县| 鲁山县| 饶阳县| 申扎县| 宣汉县| 乐安县| 和田市| 大渡口区| 连平县| 建昌县| 尚义县| 扶绥县| 滁州市| 八宿县| 柳河县|