This file contains hidden or 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" | |
"github.com/gophercloud/gophercloud" | |
"github.com/gophercloud/gophercloud/openstack" | |
"github.com/gophercloud/gophercloud/openstack/containerinfra/v1/clusters" | |
"github.com/gophercloud/gophercloud/pagination" | |
) |
This file contains hidden or 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
(10:09:09) flwang: schaney: are you talking about this https://review.openstack.org/639053 ? | |
(10:09:37) strigazi: schaney: flwang bare with me for the explanation, also this change needs more comments in the commit message ^^ | |
(10:10:02) strigazi: in heat a resource group creates a stack with depth two | |
(10:10:33) strigazi: the first nested stack kube_minions has a ref_map output | |
(10:10:39) strigazi: which goes like this: | |
(10:10:45) strigazi: 0: <smth> | |
(10:10:51) strigazi: 1: <smth> | |
(10:10:52) strigazi: and so on | |
(10:11:29) strigazi: These indices are the minion-INDEX numbers | |
(10:11:48) strigazi: and the indices in the ResourceGroup |
This file contains hidden or 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 -x | |
IP="192.168.200.44" | |
CLUSTER="19367987-9cf9-49e6-9d47-84311313e545" | |
CT="38a32229-f642-4e9b-801a-42ee6e54b610" | |
# resize curl | |
example_req=$(cat << EOF | |
{ | |
"node_count": 1, | |
"nodegroup": "master", |
This file contains hidden or 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
[strigazi@lxplus086 heat-playground]$ openstack stack list | grep strigazi-stack-25 | |
| 3177f188-c4cb-4ab9-acf1-c2ed3bb40277 | strigazi-stack-25 | CREATE_COMPLETE | 2019-02-25T10:11:56Z | None | | |
[strigazi@lxplus086 heat-playground]$ openstack stack list --nested | grep strigazi-stack-25 | |
| 80e0873c-5665-40f2-a8ac-ba90a36d3507 | strigazi-stack-25-kube_minions-xujejyw7urp6-2-dxbtgtnvv4ws | CREATE_COMPLETE | 2019-02-25T10:12:01Z | None | 9a3ff9e4-b1fd-4cd0-be35-d6308ca0603f | | |
| aedf1342-6dc6-4a1a-9db8-cc87d664a714 | strigazi-stack-25-kube_minions-xujejyw7urp6-1-2wkjcd46tmlo | CREATE_COMPLETE | 2019-02-25T10:11:59Z | None | 9a3ff9e4-b1fd-4cd0-be35-d6308ca0603f | | |
| ab3dcc32-9b4d-4066-a397-32b79cdbf7c5 | strigazi-stack-25-kube_minions-xujejyw7urp6-0-xj4vlxidy4sa | CREATE_COMPLETE | 2019-02-25T10:11:59Z | None | 9a3ff9e4-b1fd-4cd0-be35-d6308ca0603f | | |
| 9a3ff9e4-b1fd-4cd0-be35-d6308ca0603f | striga |
This file contains hidden or 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
export BUILD_TAGS=magnum | |
go build ./ | |
make make-image | |
docker tag staging-k8s.gcr.io/cluster-autoscaler-openstack:dev flwang/cluster-autoscaler-openstack:dev-7 | |
docker image push flwang/cluster-autoscaler-openstack:dev-7 |
This file contains hidden or 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
1. Update branch | |
git push catalystcloud origin/stable/rocky:stable/rocky | |
2. Download pull request | |
git fetch ca pull/1690/head:pr-1690 |
This file contains hidden or 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 -x | |
KUBE_TAG=v1.11.2-1 | |
ETCD_TAG=v3.2.7 | |
FLANNEL_TAG=v0.9.0 | |
#IMAGE_PREFIX=gitlab-registry.cern.ch/cloud/atomic-system-containers/ | |
IMAGE_PREFIX=docker.io/openstackmagnum/ | |
KUBE_CONTAINERS="kubernetes-apiserver kubernetes-scheduler kubernetes-controller-manager kubernetes-kubelet kubernetes-proxy" | |
CONTAINERS="${KUBE_CONTAINERS} etcd flannel" | |
#docker build --rm --pull -t kubernetes-node:rawhide kubernetes-node/ |
This file contains hidden or 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 -x | |
KUBE_TAG=v1.11.2-1 | |
ETCD_TAG=v3.2.7 | |
FLANNEL_TAG=v0.9.0 | |
#IMAGE_PREFIX=gitlab-registry.cern.ch/cloud/atomic-system-containers/ | |
IMAGE_PREFIX=docker.io/openstackmagnum/ | |
KUBE_CONTAINERS="kubernetes-apiserver kubernetes-scheduler kubernetes-controller-manager kubernetes-kubelet kubernetes-proxy" | |
CONTAINERS="${KUBE_CONTAINERS} etcd flannel" | |
#docker build --rm --pull -t kubernetes-node:rawhide kubernetes-node/ |
This file contains hidden or 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
[{'api_version': None, | |
'kind': None, | |
'metadata': {'annotations': {u'node.alpha.kubernetes.io/ttl': '0', | |
u'volumes.kubernetes.io/controller-managed-attach-detach': 'true'}, | |
'cluster_name': None, | |
'creation_timestamp': datetime.datetime(2018, 8, 15, 22, 39, 15, tzinfo=tzutc()), | |
'deletion_grace_period_seconds': None, | |
'deletion_timestamp': None, | |
'finalizers': None, | |
'generate_name': None, |
This file contains hidden or 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
ifconfig br-ex 172.24.4.1/24 | |
iptables -t nat -I POSTROUTING -s 172.24.4.0/24 -j MASQUERADE | |
iptables -I FORWARD -s 172.24.4.0/24 -j ACCEPT | |
iptables -I FORWARD -d 172.24.4.0/24 -j ACCEPT |