[1]+  Stopped                 ./prometheus --web.listen-address="0.0.0.0:9090" --web.enable-lifecycle

root@workstation:/home/edu3/prometheus-2.3.2.linux-amd64# bg

[1]+ ./prometheus --web.listen-address="0.0.0.0:9093" --web.enable-lifecycle &

root@workstation:/home/edu3/prometheus-2.3.2.linux-amd64# curl -X POST http://localhost:9093/-/reload

level=info ts=2018-07-13T05:25:49.600841981Z caller=main.go:603 msg="Loading configuration file" filename=prometheus.yml

level=info ts=2018-07-13T05:25:49.601703886Z caller=main.go:629 msg="Completed loading of configuration file" filename=prometheus.yml



'나는 노동자 > ECO SW' 카테고리의 다른 글

docker-prometheus install  (0) 2018.08.10
Grafana - anonymous login (without pw)  (0) 2018.04.13
NEXUS 3.7.X SSL 설정  (0) 2018.03.29
NEXUS 3.X 암호 초기화 하기  (0) 2018.03.28

위치 :

/etc/systemd/system/kubelet.service.d/10-kubeadm.conf

 

root@nevido home]# more 10-kubeadm.conf
# Note: This dropin only works with kubeadm and kubelet v1.11+
[Service]
Environment="KUBELET_KUBECONFIG_ARGS=--bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --kubeconfig=/etc/kubernetes/kubelet.conf"
Environment="KUBELET_CONFIG_ARGS=--config=/var/lib/kubelet/config.yaml"
Environment="KUBELET_CGROUP_ARGS=--cgroup-driver=cgroupfs"
# This is a file that "kubeadm init" and "kubeadm join" generates at runtime, populating the KUBELET_KUBEADM_ARGS variable dynamically
EnvironmentFile=-/var/lib/kubelet/kubeadm-flags.env
# This is a file that the user can use for overrides of the kubelet args as a last resort. Preferably, the user should use
# the .NodeRegistration.KubeletExtraArgs object in the configuration files instead. KUBELET_EXTRA_ARGS should be sourced from this file.
EnvironmentFile=-/etc/sysconfig/kubelet
ExecStart=
ExecStart=/usr/bin/kubelet $KUBELET_KUBECONFIG_ARGS $KUBELET_CONFIG_ARGS $KUBELET_KUBEADM_ARGS $KUBELET_EXTRA_ARGS $KUBELET_CGROUP_ARGS

 

systemctl daemon-reload
systemctl restart kubele

Runtime directory and storage driver

You may want to control the disk space used for Docker images, containers, and volumes by moving it to a separate partition.

To accomplish this, set the following flags in the daemon.json file:

{
    "data-root": "/mnt/docker-data",
    "storage-driver": "overlay"
}

'나는 노동자 > DOCKER' 카테고리의 다른 글

openssl centos Dockerfile  (0) 2019.11.01
컨테이너 파일 사이즈  (0) 2019.01.16
cgroup-driver 변경하기  (0) 2018.07.11
systemctl start docker error시  (0) 2018.03.23
docker info - iptables_warring.txt  (0) 2018.03.19

/etc/systemd/system/multi-user.target.wants/

 

cp docker.service /home

vi dockefr.service

 

systemd -> cgroupfs 로 바꾸로 싶따면

 

--exec-opt native.cgroupdriver=systemd  해당 부분에서 systtemd를 cgroupfs로 변경하면 됨

 

 

systemctl daemon-reload

systemctl restart docker

 

 

 

'나는 노동자 > DOCKER' 카테고리의 다른 글

컨테이너 파일 사이즈  (0) 2019.01.16
Runtime directory and storage driver  (0) 2018.07.11
systemctl start docker error시  (0) 2018.03.23
docker info - iptables_warring.txt  (0) 2018.03.19
HANADB DOCKER CONTAINER  (0) 2018.02.07

R>


> library(tensorflow)

> install_tensorflow()
실행시

 여러 에러가 나면서


Command /root/.virtualenvs/r-tensorflow/bin/python - setuptools pkg_resources pip wheel failed


요런 에러가 나면




pip install --upgrade virtualenv

sudo virtualenv .env   <= 요건 안해도 되던데...


R> 



> library(tensorflow)

> install_tensorflow()

아마도 정상 동작 할것임



해당 부분은 ip 등록 부분이 빠져서 생긴 문제임

 

sudo apt update
sudo apt install python3-pip
sudo pip3 install -vU setuptools
sudo pip3 install jupyter
jupyter notebook --ip=0.0.0.0 --port=8888 --allow-root

 

[ERROR Swap]: running with swap on is not supported. Please disable swap
[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`

 

swapoff -a && sed -i '/swap/d' /etc/fstab

KUBELET_POD_INFRA_CONTAINER="--pod-infra-containerimage=registry.access.redhat.com/rhel7/pod-infrastructure:latest"

in /etc/kubernetes/kubelet


이렇게 하던가 아니면 해당 이미지를 pull로 받아서 각 node에 docker load < 해주면 된다

[root@kiwitest01 kubernetes]# kubectl apply -f weave-daemonset.yaml
serviceaccount "weave-net" configured
The DaemonSet "weave-net" is invalid:
* spec.template.spec.containers[0].securityContext.privileged: Forbidden: disallowed by policy
* spec.template.spec.containers[1].securityContext.privileged: Forbidden: disallowed by policy

 

MASTER

/etc/kubernetes/config

 

 

KUBE_ALLOW_PRIV="--allow-privileged=false" 해당 부분을 true로 바꾼다

 

데몬 재시작

 

for SERVICES in etcd kube-apiserver kube-controller-manager kube-scheduler kube-proxy docker flanneld; do

systemctl restart $SERVICES;

done

 

SLAVE

 

/etc/kubernetes/config

 

 

KUBE_ALLOW_PRIV="--allow-privileged=false" 해당 부분을 true로 바꾼다

 

for SERVICES in kube-proxy kubelet flanneld docker; do

systemctl restart $SERVICES;

done

 

 

[root@kiwitest01 run]# systemctl start docker

Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.

[root@kiwitest01 run]# systemctl status docker

● docker.service - Docker Application Container Engine

   Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)

  Drop-In: /usr/lib/systemd/system/docker.service.d

           └─flannel.conf

   Active: failed (Result: exit-code) since Fri 2018-05-25 12:32:54 KST; 7s ago

     Docs: http://docs.docker.com

  Process: 9813 ExecStart=/usr/bin/dockerd-current --add-runtime docker-runc=/usr/libexec/docker/docker-runc-current --default-runtime=docker-runc --authorization-plugin=rhel-push-plugin --exec-opt native.cgroupdriver=systemd --userland-proxy-path=/usr/libexec/docker/docker-proxy-current $OPTIONS $DOCKER_STORAGE_OPTIONS $DOCKER_NETWORK_OPTIONS $ADD_REGISTRY $BLOCK_REGISTRY $INSECURE_REGISTRY $REGISTRIES (code=exited, status=1/FAILURE)

 Main PID: 9813 (code=exited, status=1/FAILURE)

   Memory: 8.0K

   CGroup: /system.slice/docker.service




해당 문제는 /var/lib/docker를 rename하거나 삭제후 docker를 재설치하거나 재실행해보면 된다 


+ Recent posts