Replying to Avatar ₿en Wehrman

https://nostpic.com/media/0018b7ee33fb253843639c62e292fec700a69a93b08ee374c5bda971c9b39564/add6078a5dde7d9431e072455b86be39796ffd65e2d7bbbd5a1b2f480612eb7c.webp

In order to find cancer in the body, oncologists literally inject glucose into their patient's veins and run a PET scan to see where the cancer cells light up like a christmas tree. Like throwing chum into shark-infested waters, cancer cells go CRAZY for sugar, because they need it to survive!

Let me say that again: CANCER'S PRIMARY FUEL IS SUGAR. WHEN YOU STOP CONSUMING IT, AND EVERYTHING THAT BREAKS DOWN INTO IT (CARBS), THE CANCER CELLS STARVE OUT.

Repeat that as many times as it takes to realize that this "battle against cancer" we've watched explode across the media for decades is really just the predictable outcome of humans eating the wrong food, and their bodies deteriorating because of it.

Eating meat and eliminating carbohydrates is the REAL cure to cancer. Always has been 🌎👨‍🚀🔫👨‍🚀

nostr:npub1508rk9udkqcvt0wdm5d20jdfzflvk9l3da764awcy95xpd6c357qkrtwu3 #carnivore #carnivorediet #meatstr

## 1. 概述

- 在此示例中,我们使用了[kubernetes](https://github.com/Kubernetes)的[基本部署](https://github.com/Kubernetes/samples/blob/master/deployments/basic/)和[基本服务](https://github.com/Kubernetes/samples/blob/master/services/basic/)示例来演示如何使用kubectl命令行工具部署一个简单的web应用程序。

- 在此示例中,我们使用[nginx](https://github.com/nginx/nginx)作为服务器运行的web应用程序。

- 通过执行kubectl命令来部署和管理应用程序。

- 通过使用kubectl exec命令运行容器中的命令行工具,可以查看和修改应用程序。

## 2. 环境搭建

- 安装kubernetes:参考[下文](https://github.com/Kubernetes/samples/blob/master/README.md#installing-the-tools)。

- 从源代码安装nginx:

```css

sudo apt-get update

sudo apt-get install build-essential libssl-dev zlib1g-dev

cd /usr/src/nginx && ./configure --with-http_ssl_module --add=https://github.com/arut/nginx-ssl-conf.git && make

sudo rm -rf /etc/nginx/ && sudo cp -i /usr/src/nginx/conf/default /etc/nginx/default

sudo systemctl enable nginx && sudo systemctl start nginx

```

- 从源代码安装kubernetes:

```csharp

git clone https://github.com/kubernetes-samples/node-deployments.git

cd node-deployments

kubectl create cluster mycluster --config minion --minion-ip 192.168.100.50

kubectl config use-cluster mycluster

kubectl apply -f deployments/replicaSet.yaml

```

## 3. 部署

- 创建一个文件夹,保存下面的代码:

```makefile

apiVersion: apps/v1

kind: ReplicaSet

metadata:

name: nginx

spec:

replicas: 2

selector:

matchLabels:

app: nginx

template:

metadata:

labels:

app: nginx

spec:

containers:

- name: nginx

image: nginx:latest

ports:

- containerPort: 80

```

- 创建一个文件夹,保存下面的代码:

```makefile

apiVersion: v1

kind: Service

metadata:

name: nginx

spec:

selector:

app: nginx

ports:

- protocol: TCP

port: 80

targetPort: 80

type: ClusterIP

```

- 创建一个文件夹,保存下面的代码:

```makefile

apiVersion: v1

kind: Ingress

metadata:

name: nginx-ingress

spec:

rules:

- host: ingress.example.com

http:

paths:

- path: /

backend:

service:

name: nginx

port:

name: http

```

- 创建一个文件夹,保存下面的代码:

```makefile

apiVersion: apps/v1

kind: Deployment

metadata:

name: nginx

spec:

replicas: 2

selector:

matchLabels:

app: nginx

template:

metadata:

labels:

app: nginx

spec:

containers:

- name: nginx

image: nginx:latest

ports:

- containerPort: 80

```

- 创建一个文件夹,保存下面的代码:

```makefile

apiVersion: v1

kind: Service

metadata:

name: nginx

spec:

selector:

app: nginx

ports:

- protocol: TCP

port: 80

targetPort: 80

type: ClusterIP

```

- 创建一个文件夹,保存下面的代码:

```makefile

apiVersion: v1

kind: Ingress

metadata:

name: nginx-ingress

spec:

rules:

- host: ingress.example.com

http:

paths:

- path: /

backend:

service:

name: nginx

port:

name: http

```

- 创建一个文件夹,保存下面的代码:

```makefile

apiVersion: v1

kind: Deployment

metadata:

name: nginx

spec:

replicas: 2

selector:

matchLabels:

app: nginx

template:

metadata:

labels:

app: nginx

spec:

containers:

- name: nginx

image: nginx:latest

ports:

- containerPort: 80

```

- 创建一个文件夹,保存下面的代码:

```makefile

apiVersion: v1

kind: Service

metadata:

name: nginx

spec:

selector:

app: nginx

ports:

- protocol: TCP

port: 80

targetPort: 80

type: ClusterIP

```

- 创建一个文件夹,保存下面的代码:

```makefile

apiVersion: v1

kind: Ingress

metadata:

name: nginx-ingress

spec:

rules:

- host: ingress.example.com

http:

paths:

- path: /

backend:

service:

name: nginx

port:

name: http

```

- 创建一个文件夹,保存下面的代码:

```makefile

apiVersion: apps/v1

kind: Deployment

metadata:

name: nginx

spec:

replicas: 2

selector:

matchLabels:

app: nginx

template:

metadata:

labels:

app: nginx

spec:

containers:

- name: nginx

image: nginx:latest

ports:

- containerPort: 80

```

- 创建一个文件夹,保存下面的代码:

```makefile

apiVersion: v1

kind: Service

metadata:

name: nginx

spec:

selector:

app: nginx

ports:

- protocol: TCP

port: 80

targetPort: 80

type: ClusterIP

```

- 创建一个文件夹,保存下面的代码:

```makefile

apiVersion: v1

kind: Ingress

metadata:

name: nginx-ingress

spec:

rules:

- host: ingress.example.com

http:

paths:

- path: /

backend:

service:

name: nginx

port:

name: http

```

- 创建一个文件夹,保存下面的代码:

```makefile

apiVersion: apps/v1

kind: Deployment

metadata:

name: nginx

spec:

replicas: 2

selector:

matchLabels:

app: nginx

template:

metadata:

labels:

app: nginx

spec:

containers:

- name: nginx

image: nginx:latest

ports:

- containerPort: 80

```

- 创建一个文件夹,保存下面的代码:

```makefile

apiVersion: v1

kind: Service

metadata:

name: nginx

spec:

selector:

app: nginx

ports:

- protocol: TCP

port: 80

targetPort: 80

type: ClusterIP

```

- 创建一个文件夹,保存下面的代码:

```makefile

apiVersion: v1

kind: Ingress

metadata:

name: nginx-ingress

spec:

rules:

- host: ingress.example.com

http:

paths:

- path: /

backend:

service:

name: nginx

port:

name: http

```

- 创建一个文件夹,保存下面的代码:

```makefile

apiVersion: apps/v1

kind: Deployment

metadata:

name: nginx

spec:

replicas: 2

selector:

matchLabels:

app: nginx

template:

metadata:

labels:

app: nginx

spec:

containers:

- name: nginx

image: nginx:latest

ports:

- containerPort: 80

```

- 创建一个文件夹,保存下面的代码:

```makefile

apiVersion: v1

kind: Service

metadata:

name: nginx

spec:

selector:

app: nginx

ports:

- protocol: TCP

port: 80

targetPort: 80

type: ClusterIP

```

- 创建一个文件夹,保存下面的代码:

```makefile

apiVersion: v1

kind: Ingress

metadata:

name: nginx-ingress

spec:

rules:

- host: ingress.example.com

http:

paths:

- path: /

backend:

service:

name: nginx

port:

name: http

```

Reply to this note

Please Login to reply.

Discussion

No replies yet.