This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# updated 10/11/18 | |
# oc get is origin-v4.0 -n openshift -o yaml | grep tag: | cut -f6 -d' ' | |
ansible | |
artifacts | |
aws-machine-controllers | |
base | |
catalog | |
cli | |
cluster-autoscaler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Place your settings in this file to overwrite the default settings | |
{ | |
"go.buildOnSave": true, | |
"go.lintOnSave": true, | |
"go.vetOnSave": true, | |
"go.buildTags": "", | |
"go.buildFlags": [], | |
"go.lintFlags": [], | |
"go.vetFlags": [], | |
"go.coverOnSave": false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
instances start with rhcos image + ignition configs (per role) generated by "tectonic init" | |
for aws: user_data | |
for libvirt: qemu_fw_cfg | |
== master === | |
kubelet.service starts | |
runs bootstrap control plane runs as static pods on the bootstrap master | |
bootkube.service starts | |
runs kube-core-renderer container | |
https://github.com/coreos-inc/tectonic-operators/blob/master/renderer/Documentation/README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
platform: libvirt | |
libvirt: | |
uri: qemu:///system | |
network: | |
name: tectonic | |
ifName: tt0 | |
dnsServer: 10.42.10.1 | |
ipRange: 192.168.124.0/24 | |
imagePath: /home/sjennings/Downloads/rhcos-qemu.qcow2 | |
containerLinux: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"os" | |
"time" | |
"k8s.io/api/core/v1" | |
"k8s.io/apimachinery/pkg/fields" | |
"k8s.io/apimachinery/pkg/types" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= start an openshift test cluster = | |
= download dep == | |
cd $GOPATH/bin | |
wget https://github.com/golang/dep/releases/download/v0.5.0/dep-linux-amd64 | |
mv dep-linux-amd64 dep | |
chmod +x dep | |
= build operator-sdk = | |
go get github.com/operator-framework/operator-sdk | |
cd $GOPATH/src/github.com/operator-framework/operator-sdk | |
make dep |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -euo pipefail | |
#set -x | |
# tree can be the name of a branch (master, release-3.8, etc) or a release tag (v3.9.0-alpha.4) | |
TREE="$1" | |
REPOURL=$(curl -s "https://storage.googleapis.com/origin-ci-test/releases/openshift/origin/$TREE/.latest-rpms") | |
echo "copy to following lines into your openshift-ansible inventory file" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# edit /etc/sysconfig/docker-storage | |
DOCKER_STORAGE_OPTIONS=--storage-driver=overlay2 | |
# edit /etc/sysconfig/docker | |
OPTIONS=' --selinux-enabled --log-driver=journald --graph=/var/lib/containers/storage/docker' | |
# edit /etc/systemd/system/atomic-openshift-node.service | |
WorkingDirectory=/var/lib/containers/storage/origin/ | |
# atomic-openshift-node.service has PreExec commands that expect the WorkingDirectory to exist already |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module kubedns 1.0; | |
require { | |
type container_var_run_t; | |
type container_t; | |
class file { open read ioctl }; | |
} | |
#============= container_t ============== | |
allow container_t container_var_run_t:file read; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for i in $(crioctl pod list | grep ^ID: | cut -f2 -d' ') | |
do | |
crioctl pod stop --id $i | |
crioctl pod remove --id $i | |
done |