Skip to content

Instantly share code, notes, and snippets.

View jasonbrooks's full-sized avatar

Jason Brooks jasonbrooks

View GitHub Profile

As of the December CentOS Atomic Host release, the kubernetes-master package has been removed from the base image. Following an upgrade, kubernetes master components should be run in containers.

# cat <<EOT >> /etc/systemd/system/kube-apiserver.service
[Unit]
Description=Kubernetes API Server
Documentation=https://github.com/GoogleCloudPlatform/kubernetes
After=docker.service
Requires=docker.service
$ fedpkg co -a docker/cockpit
$ cd cockpit/
$ fedpkg pull
$ fedpkg sources

$ ls
sources

$ cat sources 
@jasonbrooks
jasonbrooks / gist:3161fe31d0428ee1c4d74b4c830e814e
Created December 9, 2016 20:01
atomic install pkgs ansible
- name: Install packages
shell: rpm-ostree install kubernetes-client
register: command_result
ignore_errors: true
- name: restart hosts
shell: sleep 3 && shutdown -r now
async: 1
poll: 0
when: "'systemctl reboot' in command_result.stdout"
@jasonbrooks
jasonbrooks / fedora-atomic-host.md
Last active August 23, 2018 12:32
running kubernetes on fedora atomic host

kubernetes all in one

grab an atomic host

$ vagrant init fedora/25-atomic-host
$ vagrant up
$ vagrant ssh

I'm trying to use this kubeadm howto with centos atomic host continuous and pkg-add:

# cat <<EOF > /etc/yum.repos.d/kubernetes.repo
[kubernetes]
name=Kubernetes
baseurl=http://yum.kubernetes.io/repos/kubernetes-el7-x86_64
enabled=1
gpgcheck=1
{
"created_on": "Fri, 09 Sep 2016 15:46:07 GMT",
"id": 48030,
"name": "fah-autocloud",
"oneshot": false,
"rules": [
{
"arguments": {},
"cache_key": "70bd86298e1d85519c3b3dcadd96a3ee470280156de6c85c1036261f7a19f8a2",
"code_path": "fmn.rules:autocloud_image_test_failed",
{
created_on: "Fri, 09 Sep 2016 15:46:07 GMT",
id: 48030,
name: "fah-autocloud",
oneshot: false,
rules: [
{
arguments: { },
cache_key: "70bd86298e1d85519c3b3dcadd96a3ee470280156de6c85c1036261f7a19f8a2",
code_path: "fmn.rules:autocloud_image_test_failed",
Oct 14 14:07:01 <walters> mkdir mnt; env LIBGUESTFS_BACKEND=direct guestmount -m /dev/atomicos/root -a Fedora-Atomic-25-20161014.n.0.x86_64.qcow2 tmp
Oct 14 14:07:29 <walters> vi mnt/.../sysconfig.py
Oct 14 14:07:31 <walters> fusermount -u mnt
Oct 14 14:08:35 <walters> s/ tmp/ mnt/
@jasonbrooks
jasonbrooks / kubeadm-cah.md
Last active May 29, 2021 00:18
trying out kubeadm on centos atomic host or fedora atomic host
@jasonbrooks
jasonbrooks / hyperkubeish-patch
Created September 12, 2016 15:49
this didn't work
diff --git a/cluster/images/hyperkube/Dockerfile b/cluster/images/hyperkube/Dockerfile
index 7ed1e14..d54b046 100644
--- a/cluster/images/hyperkube/Dockerfile
+++ b/cluster/images/hyperkube/Dockerfile
@@ -12,10 +12,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-FROM BASEIMAGE
+FROM centos:centos7