Page tree
Skip to end of metadata
Go to start of metadata

Quickstart

https://github.com/k0sproject/k0s/blob/main/docs/create-cluster.md

K0S on Redhat 8.3

wget https://github.com/k0sproject/k0s/releases/download/v0.8.1/k0s-v0.8.1-amd64vi config.yaml
apiVersion: k0s.k0sproject.io/v1beta1
kind: Cluster
metadata:
  name: k0s
spec:
  api:
    address: 192.168.58.142
    sans:
    - k0scontrol.domain.com
  network:
    podCIDR: 10.244.0.0/16
    serviceCIDR: 10.96.0.0/12
extensions:
  helm:
    repositories:
    - name: prometheus-community
       url: https://prometheus-community.github.io/helm-charts
    charts:
    - name: prometheus-stack
      chartname: prometheus-community/prometheus
      version: "11.16.8"
      namespace: default

chmod 777 k0s-v0.8.1-amd64 
mv k0s-v0.8.1-amd64 k0s
sudo mv ./k0s /usr/local/bin/k0s
sudo su -
cp /home/o*/config.yaml .
k0s server -c config.yaml
[root@localhost ~]# k0s server -c config.yaml 
INFO[2020-12-22 10:45:27] using public address: 192.168.58.142 
INFO[2020-12-22 10:45:27] using sans: [k0scontrol.domain.com] 
INFO[2020-12-22 10:45:27] DNS address: 10.96.0.10 
INFO[2020-12-22 10:45:27] Using storage backend etcd 
INFO[2020-12-22 10:45:27] initializing Certificates 
2020-12-22 10:45:27.057762 I | [INFO] generate received request
2020-12-22 10:45:27.057766 I | [INFO] received CSR
2020-12-22 10:45:27.057771 I | [INFO] generating key: rsa-2048
2020-12-22 10:45:27.437639 I | [INFO] encoded CSR
2020-12-22 10:45:27.439108 I | [INFO] signed certificate with serial number 638469691314901076634837848668055557608003966411
2020-12-22 10:45:27.439469 I | [INFO] generate received requestINFO[2020-12-22 10:47:25] I1222 10:47:25.003066 7503 event.go:291] "Event occurred" object="default/prometheus-1608662748-alertmanager" kind="PersistentVolumeClaim" apiVersion="v1" type="Normal" reason="FailedBinding" message="no persistent volumes available for this claim and no storage class is set" component=kube-controller-manager
  • No labels