Skip to content
Commits on Source (3)
...@@ -20,7 +20,6 @@ type Provisioner struct { ...@@ -20,7 +20,6 @@ type Provisioner struct {
DryRun bool DryRun bool
} }
// content holds our static web server content.
//go:embed templates/*/* //go:embed templates/*/*
var tplFS embed.FS var tplFS embed.FS
...@@ -68,7 +67,7 @@ func (p Provisioner) CheckRequirements() error { ...@@ -68,7 +67,7 @@ func (p Provisioner) CheckRequirements() error {
Command: "k0sctl", Command: "k0sctl",
Args: []string{"version"}, Args: []string{"version"},
Regex: `version: (.*)`, Regex: `version: (.*)`,
Constraint: "0.10.2", Constraint: "0.13.x",
}, },
{ {
Command: "terraform", Command: "terraform",
......
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
name: "{{ cluster.name }}-{{ item.key }}" name: "{{ cluster.name }}-{{ item.key }}"
spec: spec:
node: "{{ cluster.name }}-{{ item.key }}" node: "{{ cluster.name }}-{{ item.key }}"
interfaceName: "*" interfaceName: ""
expectedIPs: ["{{ item.value.publicIp }}","{{ item.value.privateIp }}"] expectedIPs: ["{{ item.value.publicIp }}", "{{ item.value.privateIp }}"]
loop: "{{ cluster.nodes | dict2items }}" loop: "{{ cluster.nodes | dict2items }}"
loop_control: loop_control:
label: "{{ item.key }}" label: "{{ item.key }}"
...@@ -29,37 +29,38 @@ ...@@ -29,37 +29,38 @@
name: default.host-firewall name: default.host-firewall
spec: spec:
egress: egress:
- action: Allow - action: Allow
destination: {} destination: {}
source: {} source: {}
ingress: ingress:
- action: Allow - action: Allow
destination: destination:
nets: nets:
- 127.0.0.0/8 - 127.0.0.0/8
source: {} source: {}
- action: Allow - action: Allow
destination: {} destination: {}
protocol: ICMP protocol: ICMP
source: {} source: {}
- action: Allow - action: Allow
destination: destination:
ports: ports:
- 22 - 22
protocol: TCP protocol: TCP
source: {} source: {}
- action: Allow - action: Allow
destination: destination:
ports: ports:
- 10250 - 10250 # Kubelet
protocol: TCP - 10249 # Kube proxy metrics
source: protocol: TCP
nets: source:
- "{{ cluster.network.cidr }}" nets:
- action: Log - "{{ cluster.network.cidr }}"
destination: {} - action: Log
source: {} destination: {}
source: {}
selector: has(kubernetes.io/hostname) selector: has(kubernetes.io/hostname)
types: types:
- Ingress - Ingress
- Egress - Egress
...@@ -12,7 +12,7 @@ spec: ...@@ -12,7 +12,7 @@ spec:
privateAddress: {{ .PrivateIP }} privateAddress: {{ .PrivateIP }}
{{ end }} {{ end }}
k0s: k0s:
version: v1.23.9+k0s.0 version: 1.23.9+k0s.0
config: config:
apiVersion: k0s.k0sproject.io/v1beta1 apiVersion: k0s.k0sproject.io/v1beta1
kind: Cluster kind: Cluster
......