commit
15eb4dd032
|
@ -155,7 +155,7 @@ kubectl get no −l name=hk8s−node−1 −−context=hk8s
|
||||||
|
|
||||||
该课程的课程大纲:
|
该课程的课程大纲:
|
||||||
|
|
||||||
```text
|
```
|
||||||
Welcome & Introduction
|
Welcome & Introduction
|
||||||
Container Orchestration
|
Container Orchestration
|
||||||
Kubernetes
|
Kubernetes
|
||||||
|
@ -179,7 +179,7 @@ ps: 个人觉得这个课程可以不用学, 直接看文档就行了 。
|
||||||
|
|
||||||
该课程的课程大纲:
|
该课程的课程大纲:
|
||||||
|
|
||||||
```text
|
```
|
||||||
Kubernetes Fundamentals
|
Kubernetes Fundamentals
|
||||||
Chapter 1. Course Introduction
|
Chapter 1. Course Introduction
|
||||||
Chapter 2. Basics of Kubernetes
|
Chapter 2. Basics of Kubernetes
|
||||||
|
|
|
@ -57,7 +57,7 @@
|
||||||
|
|
||||||
Hadoop YARN 的 Dockerfile 参考如下配置。
|
Hadoop YARN 的 Dockerfile 参考如下配置。
|
||||||
|
|
||||||
```dockerfile
|
```docker
|
||||||
FROM my-docker-repo/jdk:7u80
|
FROM my-docker-repo/jdk:7u80
|
||||||
|
|
||||||
# Add native libs
|
# Add native libs
|
||||||
|
|
|
@ -67,7 +67,7 @@ func main() {
|
||||||
|
|
||||||
**创建Dockerfile**
|
**创建Dockerfile**
|
||||||
|
|
||||||
```dockerfile
|
```docker
|
||||||
FROM alpine:3.5
|
FROM alpine:3.5
|
||||||
MAINTAINER Jimmy Song<rootsongjc@gmail.com>
|
MAINTAINER Jimmy Song<rootsongjc@gmail.com>
|
||||||
ADD hellov2 /
|
ADD hellov2 /
|
||||||
|
|
|
@ -92,7 +92,7 @@ networks:
|
||||||
|
|
||||||
其中 `front-envoy` 是前端(边缘)Envoy 服务,用来做反向代理,它使用的是 `Dockerfile-frontenvoy` 文件来构建镜像的,我们来看下该 `Dockerfile` 的内容。
|
其中 `front-envoy` 是前端(边缘)Envoy 服务,用来做反向代理,它使用的是 `Dockerfile-frontenvoy` 文件来构建镜像的,我们来看下该 `Dockerfile` 的内容。
|
||||||
|
|
||||||
```dockerfile
|
```docker
|
||||||
FROM envoyproxy/envoy:latest
|
FROM envoyproxy/envoy:latest
|
||||||
|
|
||||||
RUN apt-get update && apt-get -q install -y \
|
RUN apt-get update && apt-get -q install -y \
|
||||||
|
@ -188,7 +188,7 @@ example_front-envoy_1 /bin/sh -c /usr/local/bin/ ... Up 0.0.0.0:8000->80
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ curl -v localhost:8000/service/1
|
$ curl -v localhost:8000/service/1
|
||||||
*
|
*
|
||||||
Trying ::1...
|
Trying ::1...
|
||||||
* TCP_NODELAY set
|
* TCP_NODELAY set
|
||||||
* Connected to localhost (::1) port 8000 (#0)
|
* Connected to localhost (::1) port 8000 (#0)
|
||||||
|
|
Loading…
Reference in New Issue