Add role kubernetes TODO: fix role
This commit is contained in:
36
kubernetes/files/containerd_config.toml
Normal file
36
kubernetes/files/containerd_config.toml
Normal file
@@ -0,0 +1,36 @@
|
||||
# Copyright 2018-2022 Docker Inc.
|
||||
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
disabled_plugins = []
|
||||
|
||||
#root = "/var/lib/containerd"
|
||||
#state = "/run/containerd"
|
||||
#subreaper = true
|
||||
#oom_score = 0
|
||||
|
||||
#[grpc]
|
||||
# address = "/run/containerd/containerd.sock"
|
||||
# uid = 0
|
||||
# gid = 0
|
||||
|
||||
#[debug]
|
||||
# address = "/run/containerd/debug.sock"
|
||||
# uid = 0
|
||||
# gid = 0
|
||||
# level = "info"
|
||||
|
||||
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc]
|
||||
|
||||
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options]
|
||||
SystemdCgroup = true
|
||||
15
kubernetes/files/k8s-dqlite/Dockerfile
Normal file
15
kubernetes/files/k8s-dqlite/Dockerfile
Normal file
@@ -0,0 +1,15 @@
|
||||
FROM golang:1-buster
|
||||
|
||||
# Add PPA
|
||||
RUN echo "deb http://ppa.launchpad.net/dqlite/dev/ubuntu bionic main" > /etc/apt/sources.list.d/ppa_dqlite_dev_bionic.list
|
||||
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 50FB3D04
|
||||
# Install dependencies
|
||||
RUN apt update -y && apt install -y build-essential git libraft-dev libsqlite3-dev libdqlite-dev
|
||||
|
||||
# Clone
|
||||
RUN git clone https://github.com/canonical/k8s-dqlite --branch v1.0.4 /k8s-dqlite
|
||||
WORKDIR /k8s-dqlite
|
||||
|
||||
# Compile
|
||||
ENV CGO_LDFLAGS_ALLOW="-Wl,-z,now"
|
||||
RUN go build -o k8s-dqlite -tags libsqlite3,dqlite k8s-dqlite.go
|
||||
BIN
kubernetes/files/k8s-dqlite/k8s-dqlite
Executable file
BIN
kubernetes/files/k8s-dqlite/k8s-dqlite
Executable file
Binary file not shown.
Reference in New Issue
Block a user