'일상다반사 > 이런저런 생각들' 카테고리의 다른 글

핵심을 잡으려면  (0) 2018.09.05
업무 지시와 전달은 정확하게  (0) 2018.09.05
좋은 삶을 만날려면  (0) 2018.09.05
과거는 아플수 있어 근데 너는  (0) 2018.09.05
행복한 사람들은 ...  (0) 2018.03.14

'일상다반사 > 이런저런 생각들' 카테고리의 다른 글

꿈을 밀고 가는 힘  (0) 2018.09.05
좋은 삶을 만날려면  (0) 2018.09.05
행복한 사람들은 ...  (0) 2018.03.14
삶은 경험하는 것이다  (0) 2018.01.16
그래. 이젠 좀 쉬자. 몸도 마음도  (0) 2017.12.29

(돼지등뼈 1키로/ 감자 3개/ 깻잎,/생강/대파/묵은지)
1- 돼지등뼈는 냄비에 물 넣고 맛술 종이컵 반개 넣고 한번 데친다 -10분끓여준다(처음부터 뼈넣고)
( 피제거하고 잡내 제거)
2-야채준비-감자통으로 한개 또는 반개 사이즈
( 푹 익힐거라 너무 작으면 다 으개져요)
깻잎, 대파
생강은 넣었다가 뺄수 있게 사이즈 크게
묵은지 깨끗하게 씻어 준비
( 안씻으면 김치찌개 맛이 나요!)
3-양념준비
고추가루3 / 고추장1 /된장1 / 다진마늘1
국간장 1/2컵 / 액젖3
들깨가루 /생각 한쪽
물 12컵(종이컵)

4- 한번데친 등뼈에 야채 양념 떼리 넣고 끓이면끝~!
참 쉽죠잉~@!


'일상다반사 > 요리해보자' 카테고리의 다른 글

라면밥 만들기  (0) 2019.03.21
밤까기  (0) 2018.10.17
계란국  (0) 2018.08.04
감자탕   (0) 2018.07.10
배달 막국수 ? 양념  (0) 2018.06.23

docker run -it -d --name prometheus -p 9090:9090  -v /home/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml -v /home/prometheus:/prometheus dockertest2.io:12000/prometheus:latest --config.file=/etc/prometheus/prometheus.yml --web.listen-address="0.0.0.0:9090" --web.enable-lifecycle




docker run -it -d --name prometheus -p 9090:9090  -v /home/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml -v /home/prometheus:/prometheus --link cadvisor:cadvisor dockertest2.io:12000/prometheus:latest --config.file=/etc/prometheus/prometheus.yml --web.listen-address="0.0.0.0:9090" --web.enable-lifecycle




---------- prometheus reload ----------------

t@workstation:/home/edu3/prometheus-2.3.2.linux-amd64# curl -X POST http://localhost:9090/-/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

--------------------------------------------------------------

prometheus.yml

# my global config
global:
  scrape_interval:     15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
  evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
  # scrape_timeout is set to the global default (10s).

  # Attach these labels to any time series or alerts when communicating with
  # external systems (federation, remote storage, Alertmanager).
  external_labels:
      monitor: 'codelab-monitor'

# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
rule_files:
  # - "first.rules"
  # - "second.rules"

# A scrape configuration containing exactly one endpoint to scrape:
# Here it's Prometheus itself.
scrape_configs:
  # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
  - job_name: 'prometheus'

    # metrics_path defaults to '/metrics'
    # scheme defaults to 'http'.

    static_configs:
      - targets: ['localhost:9090']

  - job_name: 'docker'
         # metrics_path defaults to '/metrics'
         # scheme defaults to 'http'.

    static_configs:
      - targets: ['localhost:9323']


[참고용]

docker run -d -p 42047:9090 --name=prometheus -v /home/test/prometheus.yml:/etc/prometheus/prometheus.yml --link cadvisor:cadvisor prom/prometheus -config.file=/etc/prometheus/prometheus.yml -log.level=debug -storage.local.path=/prometheus -storage.local.memory-chunks=10000

우선 1인분 기준으로
계란1~2개, 다진마늘 1작은술, 채썬양파 1/4개, 대파 조금 어슷썰어 준비해 주시구요,

냄비에 물500ml와 다시마1조각과 멸치 2~3마리 넣고 끓이다가
팔팔 끓으면 불을 줄여 10분 정도 우려낸 뒤 건더기는 체로 건져냅니다.

그리고 미리 준비해둔 채썬 양파와 다진마늘을 넣고,

소금과 국간장으로 간을 해 주세요.
이때 국간장은 1큰술만 넣고 간을 본 후 나머지는 소금으로 조절 하는게 좋아요!
( 간장을 많이 넣으면 국물이 탁해지고 맛이 텁텁해지니 꼭! 한 큰술만 넣어 주세요~)

그리고 대충 풀어둔 계란물 투하~
바로 젓지 말고 10초 정도 후에 젓가락으로 2~3번만 저은 뒤
그대로 가만히 끓여 주세요!

마지막으로 어슷썬 대파와 후추 넣고 한소끔 끓여내면 끝!

'일상다반사 > 요리해보자' 카테고리의 다른 글

밤까기  (0) 2018.10.17
감자탕  (0) 2018.09.01
감자탕   (0) 2018.07.10
배달 막국수 ? 양념  (0) 2018.06.23
비밀 막국수(비빔)  (0) 2018.06.23




[root@hadoopm KUBE]# more deployment-definition2.yml

apiVersion: apps/v1beta1

kind: Deployment

metadata:

  name: myapp-deployment

  labels:

    app: myapp

    type: front-end

spec:

  template:

    metadata:

      name: myapp-pod

      labels:

        app: myapp


    spec:

      containers:

        - name: nginx-container

          image: dockertest2.io:12000/nginx:latest


  replicas: 3

  selector:

    matchLabels:

      app: myapp




Algorithm: Random

SessionAffinity: Yes


minikube일 경우 minikube ip를 통해 ip를 알아내고 

해당 ip:30008로 통신한다


연결이 안되면 service-definition.yml에서  type: front-end를 삭제해보자... pod쪽에서 찾지를 못해  조건에 맞는 pod를 못찾아서 생긴 문제







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

cluster upgrade process  (0) 2019.05.22
OS Upgrade drain cordon uncordon  (0) 2019.05.22
configmap,secret in pod  (0) 2019.05.21
kubernetes add nodes  (0) 2019.04.22
minikube 간단 설치  (0) 2018.04.26

Deployment create or apply -f 파일이름 실행시 아래와 같이 에러 메세지 출력 (참고 apiVersion: apps/v1)



[root@hadoopm KUBE]# kubectl apply -f deployment-definition.yml

Error from server (BadRequest): error when creating "deployment-definition.yml": Deployment in version "v1" cannot be handled as a Deployment: no kind "Deployment" is registered for version "apps/v1"



이럴때 우선 k8s 버젼확인

root@hadoopm KUBE]# kubectl  version

Client Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.0", GitCommit:"d3ada0119e776222f11ec7945e6d


뭐 이렇게 하는게 맞는진 모르지만


암튼..


K8S가 1.9 밑에 버젼 1.8 이나 1.7 버젼이면 apiVersion: apps/v1beta1   <=요렇게 변경해준다 1.9이상이면 에러가 안나겠죵(apps/v1)


그럼 된다..


-----------------deployment-definition.yml ------------------------------

apiVersion: apps/v1
kind: Deployment
metadata:
name: myapp-deployment
labels:
app: myapp
type: front-end
spec:
template:
metadata:
name: myapp-pod
labels:
app: myapp
type: front-end
spec:
containers:
- name: nginx-container
image: dockertest2.io:12000/nginx:latest
replicas: 3
selector:
matchLabels:
type: front-end

[root@hadoopm KUBE]# kubectl get deployments

NAME               DESIRED   CURRENT   UP-TO-DATE   AVAILABLE   AGE

myapp-deployment   3         3         3            3           6m

nginx              1         1         1            1           5d


[root@hadoopm KUBE]# kubectl get replicaset

NAME                          DESIRED   CURRENT   READY     AGE

myapp-deployment-3571195553   3         3         3         6m

nginx-2496978322              1         1         1         5d


[root@hadoopm KUBE]# kubectl get pods

NAME                                READY     STATUS    RESTARTS   AGE

myapp-deployment-3571195553-27hgj   1/1       Running   0          7m

myapp-deployment-3571195553-7hzvr   1/1       Running   0          7m

myapp-deployment-3571195553-gw4xn   1/1       Running   0          7m



[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

+ Recent posts