forked from yamt/midonet-kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmidonet-kube-config.template.yaml
37 lines (37 loc) · 1.1 KB
/
midonet-kube-config.template.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
kind: ConfigMap
apiVersion: v1
metadata:
name: midonet-kube-config
namespace: kube-system
data:
# Edit the following to match with your deployment.
# kubernetes.endpoint.* should match with "kubectl get ep kubernetes".
# Note: [kubeadm] is kubeadm config equivalent. If you used kubeadm
# for your deployment, you can copy them from kube-system/kubeadm-config
# ConfigMap.
# [kubeadm] MasterConfiguration.networking.podSubnet
cluster.cidr: 10.1.0.0/16
# [kubeadm] MasterConfiguration.networking.serviceSubnet
service.cidr: 10.96.0.0/12
# [kubeadm] MasterConfiguration.api.advertiseAddress
kubernetes.endpoint.host: 10.0.0.9
# [kubeadm] MasterConfiguration.api.bindPort
kubernetes.endpoint.port: "6443"
midonet.api: http://10.0.0.9:8181/midonet-api
---
apiVersion: v1
kind: Secret
metadata:
name: midonet-kube-credential
namespace: kube-system
type: Opaque
data:
# Base64 encoded MidoNet API credential.
# e.g.
# % echo -n 'mypassword' | openssl base64
# bXlwYXNzd29yZA==
# %
midonet.username: bXluYW1l
midonet.password: bXlwYXNzd29yZA==
midonet.project: bXlwcm9qZWN0