Page MenuHomeDevCentral

D2312.diff
No OneTemporary

D2312.diff

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

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)

Event Timeline