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
| [fedora@k8scluster-sc7jximdohmh-master-0 ~]$ sudo iptables-save | |
| # Generated by iptables-save v1.6.1 on Wed Mar 7 11:37:22 2018 | |
| *raw | |
| :PREROUTING ACCEPT [10483777:3604394961] | |
| :OUTPUT ACCEPT [10334074:3606348870] | |
| :cali-OUTPUT - [0:0] | |
| :cali-PREROUTING - [0:0] | |
| :cali-failsafe-in - [0:0] | |
| :cali-failsafe-out - [0:0] | |
| :cali-from-host-endpoint - [0:0] |
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
| [fedora@k8scluster-sc7jximdohmh-master-0 kubernetes]$ kubectl get pods --all-namespaces -o wide | |
| NAMESPACE NAME READY STATUS RESTARTS AGE IP NODE | |
| default alpine-1-75b69bb5cc-8k9qs 1/1 Running 0 1h 192.168.160.139 k8scluster-sc7jximdohmh-minion-0 | |
| default alpine-2-8699dd9657-ffc7x 1/1 Running 0 1h 192.168.160.138 k8scluster-sc7jximdohmh-minion-0 | |
| default alpine-3-7d56d867df-vcj2v 1/1 Running 0 1h 192.168.160.137 k8scluster-sc7jximdohmh-minion-0 | |
| default alpine-4-5f97677c-4nh4q 1/1 Running 0 1h 192.168.160.136 k8scluster-sc7jximdohmh-minion-0 | |
| default alpine-56cb6f6969-2bssh 1/1 Running 0 8h 192.168.160.131 k8scluster-sc7jximdohmh-minion-0 | |
| kube-sys |
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. kubectl delete pods <pod> --grace-period=0 --force | |
| https://github.com/kubernetes/kubernetes/blob/master/examples/simple-nginx.md |
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
| FROM registry.fedoraproject.org/fedora:rawhide | |
| ENV NAME=kubernetes-master VERSION=0 RELEASE=0 ARCH=x86_64 | |
| LABEL bzcomponent="$NAME" \ | |
| name="$FGC/$NAME" \ | |
| version="$VERSION" \ | |
| release="$RELEASE.$DISTTAG" \ | |
| architecture="$ARCH" \ | |
| maintainer="Jason Brooks <[email protected]>" |
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
| [root@k8scluster-lgh6nudnxxft-master-0 scripts]# ps -ef | grep etcd | |
| chrony 6726 6697 8 03:37 ? 00:00:02 /usr/bin/kube-apiserver --logtostderr=true --v=0 --etcd-servers=http://127.0.0.1:2379 --bind-address=0.0.0.0 --secure-port=6443 --insecure-port=8080 --allow-privileged=true --service-cluster-ip-range=10.254.0.0/16 --admission-control=NamespaceLifecycle,LimitRanger,ServiceAccount,DefaultStorageClass,ResourceQuota --runtime-config=api/all=true --kubelet-preferred-address-types=InternalIP,Hostname,ExternalIP --tls-cert-file=/etc/kubernetes/certs/server.crt --tls-private-key-file=/etc/kubernetes/certs/server.key --client-ca-file=/etc/kubernetes/certs/ca.crt | |
| root 6802 1 4 03:37 ? 00:00:00 /usr/bin/flanneld -etcd-endpoints=http://127.0.0.1:2379 -etcd-prefix=/atomic.io/network -etcd-cafile /etc/kubernetes/certs/ca.crt -etcd-certfile /etc/kubernetes/certs/server.crt -etcd-keyfile /etc/kubernetes/certs/server.key | |
| etcd 6803 1 7 03:37 ? 00:00:00 /bin/bash -c GOMAXPROCS=$(n |
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
| #!/usr/bin/env python | |
| # | |
| # Copyright 2017 Catalyst IT Ltd | |
| # | |
| # 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 | |
| # |
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
| K8s check: | |
| curl http://127.0.0.1:8080/healthz | |
| etcd check: | |
| curl http://127.0.0.1:2379/health |
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/sh | |
| auth_json=$(cat << EOF | |
| { | |
| "auth": { | |
| "identity": { | |
| "methods": [ | |
| "password" | |
| ], | |
| "password": { |
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
| [ 0.000000] Linux version 4.11.11-300.fc26.x86_64 ([email protected]) (gcc version 7.1.1 20170622 (Red Hat 7.1.1-3) (GCC) ) #1 SMP Mon Jul 17 16:32:11 UTC 2017 | |
| [ 0.000000] Command line: BOOT_IMAGE=/ostree/fedora-atomic-fd847730e42578775b44cc22ea9f5f5a7b84e0bcb0f67bea9eb6807495907cd2/vmlinuz-4.11.11-300.fc26.x86_64 no_timer_check console=tty1 console=ttyS0,115200n8 net.ifnames=0 rd.lvm.lv=atomicos/root root=/dev/mapper/atomicos-root ostree=/ostree/boot.0/fedora-atomic/fd847730e42578775b44cc22ea9f5f5a7b84e0bcb0f67bea9eb6807495907cd2/0 | |
| [ 0.000000] x86/fpu: x87 FPU will use FXSAVE | |
| [ 0.000000] e820: BIOS-provided physical RAM map: | |
| [ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable | |
| [ 0.000000] BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved | |
| [ 0.000000] BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved | |
| [ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000003ffdbfff] usable | |
| [ 0.000000] BIOS-e820: [mem 0x00000000 |
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. install libs | |
| sudo apt-get install libffi-dev libssl-dev python-dev mysql-client-core-5.6 | |
| sudo pip install --upgrade urllib3 setuptools chardet | |
| sudo pip install python-openstackclient certifi idna requestsexceptions appdirs rfc3986 python-magnumclient enum netifaces jsonschema python-heatclient | |
| sudo pip install ctutlz |