Compare commits
5 Commits
e0f46beaab
...
b0f9564c21
Author | SHA1 | Date | |
---|---|---|---|
b0f9564c21 | |||
4950895bce | |||
|
fa2b71d357 | ||
|
0d86b57569 | ||
|
b1c879defd |
7
KOMPOSE.md
Normal file
7
KOMPOSE.md
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# Enables Docker Compose on Kubernetes
|
||||||
|
|
||||||
|
```shell
|
||||||
|
curl -L https://github.com/kubernetes/kompose/releases/download/v1.15.0/kompose-linux-amd64 -o kompose
|
||||||
|
chmod +x kompose
|
||||||
|
sudo mv ./kompose /usr/local/bin/kompose
|
||||||
|
```
|
@ -187,6 +187,10 @@ sudo kubeadm join ip-api-server:6443 --token $TOKEN --discovery-token-ca-cert-ha
|
|||||||
kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml
|
kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml
|
||||||
kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/k8s-manifests/kube-flannel-rbac.yml
|
kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/k8s-manifests/kube-flannel-rbac.yml
|
||||||
```
|
```
|
||||||
|
For Kube 1.17+
|
||||||
|
```shell
|
||||||
|
kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml
|
||||||
|
```
|
||||||
|
|
||||||
#### Cluster Network with Calico
|
#### Cluster Network with Calico
|
||||||
```shell
|
```shell
|
||||||
|
16
metallb/bgpconfig.yaml
Normal file
16
metallb/bgpconfig.yaml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
namespace: metallb-system
|
||||||
|
name: config
|
||||||
|
data:
|
||||||
|
config: |
|
||||||
|
peers:
|
||||||
|
- peer-address: 192.168.0.225
|
||||||
|
peer-asn: 65432
|
||||||
|
my-asn: 65433
|
||||||
|
address-pools:
|
||||||
|
- name: default
|
||||||
|
protocol: bgp
|
||||||
|
addresses:
|
||||||
|
- 10.25.0.10-10.25.3.250
|
42
metallb/nginx-test.yaml
Normal file
42
metallb/nginx-test.yaml
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: test-nginx
|
||||||
|
namespace: default
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
run: test-nginx
|
||||||
|
replicas: 3
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
run: test-nginx
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: test-nginx
|
||||||
|
image: nginx
|
||||||
|
ports:
|
||||||
|
- containerPort: 80
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 100Mi
|
||||||
|
limits:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 100Mi
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: test-nginx
|
||||||
|
namespace: default
|
||||||
|
labels:
|
||||||
|
run: test-nginx
|
||||||
|
spec:
|
||||||
|
type: LoadBalancer
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
protocol: TCP
|
||||||
|
selector:
|
||||||
|
run: test-nginx
|
Loading…
Reference in New Issue
Block a user