Skip to content

Instantly share code, notes, and snippets.

View jasonbrooks's full-sized avatar

Jason Brooks jasonbrooks

View GitHub Profile
# curl -O https://kojipkgs.fedoraproject.org//packages/kubernetes/1.7.3/1.fc26/x86_64/kubernetes-1.7.3-1.fc26.x86_64.rpm && curl -O https://kojipkgs.fedoraproject.org//packages/kubernetes/1.7.3/1.fc26/x86_64/kubernetes-client-1.7.3-1.fc26.x86_64.rpm && curl -O https://kojipkgs.fedoraproject.org//packages/kubernetes/1.7.3/1.fc26/x86_64/kubernetes-master-1.7.3-1.fc26.x86_64.rpm && curl -O https://kojipkgs.fedoraproject.org//packages/kubernetes/1.7.3/1.fc26/x86_64/kubernetes-node-1.7.3-1.fc26.x86_64.rpm

# rpm-ostree ex override replace kubernetes-* -r

Follow the rest of the steps at https://fedoraproject.org/wiki/User:Jasonbrooks/QA/AtomicTests/Install_Kubeadm

Starting with CentOS 7 VM

Install ovirt-engine:

yum install -y http://resources.ovirt.org/pub/yum-repo/ovirt-release41.rpm
yum install ovirt-engine -y

Start postgres container:

---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: flannel
rules:
- apiGroups:
- ""
resources:
- pods

A test of this: https://pagure.io/atomic-wg/issue/228#comment-430323

Compose an f25 and an f26 repo on a server, use symlinks to replace the 25 and 26 with "stable", create a symlink to change the repo location to "stable", rebase from the regular f25 repo to the new f25 repo at it's "stable" location. Then, change the top "stable" symlink to point at the f26 repo, and do a regular rpm-ostree upgrade on the client. Presto, you're upgraded from 25 to 26.

# atomic host status
State: idle
Deployments:
● stable:fedora-atomic/stable/x86_64/docker-host
                Version: 26 (2017-06-02 18:30:27)
curl -O https://storage.googleapis.com/kubernetes-helm/helm-v2.4.2-linux-amd64.tar.gz
tar -zxvf helm-v2.4.2-linux-amd64.tar.gz
cd linux-amd64/
./helm init
./helm repo add incubator http://storage.googleapis.com/kubernetes-charts-incubator
./helm install --name my-release incubator/mongodb-replicaset --set persistentVolume.enabled=false
kubectl get pods --watch
@jasonbrooks
jasonbrooks / guestbookgo.yaml
Last active July 6, 2017 02:24
guestbook go test app for kubernetes
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
annotations:
kompose.service.type: NodePort
creationTimestamp: null
name: guestbook
spec:
replicas: 2
diff --git a/ansible/inventory/group_vars/all.yml b/ansible/inventory/group_vars/all.yml
index d8baa0f..c7b7baf 100644
--- a/ansible/inventory/group_vars/all.yml
+++ b/ansible/inventory/group_vars/all.yml
@@ -111,12 +111,13 @@ dns_replicas: 1
# See kube documentation for apiserver runtime config options. Example below enables HPA, deployments features.
# apiserver_extra_args: "--runtime-config=extensions/v1beta1/deployments=true"
-container_registry: candidate-registry.fedoraproject.org
-container_namespace: f25
# git diff
diff --git a/config.json.template b/config.json.template
index 457dfd6..0d31da8 100644
--- a/config.json.template
+++ b/config.json.template
@@ -171,7 +171,17 @@
"rbind",
"rprivate"
]
- }
# cd into your fork of https://github.com/projectatomic/atomic-site
$ cd atomic-site
# a bit of setup to make sure you're synced w/ the upstream source
$ git remote add upstream https://github.com/projectatomic/atomic-site
$ git fetch upstream
# this will reset your fork's master to match the upstream master
$ git reset --hard upstream/master
@jasonbrooks
jasonbrooks / docker-compose.yml
Last active March 30, 2017 01:07
guestbook-go in compose, for use w/ kompose
version: "2"
services:
redis-master:
image: redis:2.8.23
ports:
- "6379"
volumes:
- /data
redis-slave: