Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3909787
D2312.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D2312.diff
View Options
diff --git a/roles/paas-kubernetes/kubernetes/cluster.sls b/roles/paas-kubernetes/kubernetes/cluster.sls
new file mode 100644
--- /dev/null
+++ b/roles/paas-kubernetes/kubernetes/cluster.sls
@@ -0,0 +1,15 @@
+# -------------------------------------------------------------
+# Salt — Kubernetes
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+# -------------------------------------------------------------
+# Provide kubeadm configuration
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+/etc/kubernetes/nasqueron-k8s-prod-kubeadm.yaml:
+ file.managed:
+ - source: salt://roles/paas-kubernetes/kubernetes/files/kubeadm.yaml
+ - makedirs: True
diff --git a/roles/paas-kubernetes/kubernetes/files/kubeadm.yaml b/roles/paas-kubernetes/kubernetes/files/kubeadm.yaml
new file mode 100644
--- /dev/null
+++ b/roles/paas-kubernetes/kubernetes/files/kubeadm.yaml
@@ -0,0 +1,49 @@
+# -------------------------------------------------------------
+# Kubernetes configuration - kubeadm
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: Trivial work, not eligible to copyright
+# Source file: roles/paas-kubernetes/kubernetes/files/kubeadm.yaml
+# -------------------------------------------------------------
+#
+# <auto-generated>
+# This file is managed by our rOPS SaltStack repository.
+#
+# Changes to this file may cause incorrect behavior
+# and will be lost if the state is redeployed.
+# </auto-generated>
+
+apiVersion: kubeadm.k8s.io/v1beta2
+kind: InitConfiguration
+
+localAPIEndpoint:
+ advertiseAddress: 172.27.27.28
+ bindPort: 6443
+
+nodeRegistration:
+ criSocket: /var/run/crio/crio.sock
+
+---
+
+apiVersion: kubeadm.k8s.io/v1beta2
+kind: ClusterConfiguration
+
+networking:
+ dnsDomain: k8s.prod.nasqueron.local
+ serviceSubnet: 10.92.0.0/16
+ podSubnet: 10.192.0.0/16
+
+controlPlaneEndpoint: k8s.prod.nasqueron.drake
+
+apiServer:
+ extraArgs:
+ advertise-address: 172.27.27.28
+
+clusterName: nasqueron-k8s-prod
+
+---
+
+apiVersion: kubelet.config.k8s.io/v1beta1
+kind: KubeletConfiguration
+
+cgroupDriver: systemd
diff --git a/roles/paas-kubernetes/kubernetes/init.sls b/roles/paas-kubernetes/kubernetes/init.sls
--- a/roles/paas-kubernetes/kubernetes/init.sls
+++ b/roles/paas-kubernetes/kubernetes/init.sls
@@ -10,3 +10,4 @@
- .swap
- .container-runtime
- .software
+ - .cluster
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 19, 21:42 (20 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2306895
Default Alt Text
D2312.diff (2 KB)
Attached To
Mode
D2312: [WIP] Initialize nasqueron-k8s-prod cluster
Attached
Detach File
Event Timeline
Log In to Comment