반응형

https://www.etnews.com/20210910000126

 

[창간특집] 반도체 부족이 '집콕 라이프'도 방해한다

“TV 볼 일 많아졌다.” 코로나19 대유행 이후 대표적 집콕 활동 중 하나가 TV 보기다. 집에 있는 시간이 늘다보니 TV 시청 시간도 증가했다. 정보통신정책연구원(KISDI) 코로나, 미디어 지형을 바꾸

www.etnews.com

 

- 기사요약 :

DDI는 전력관리반도체(PMIC)·마이크로컨트롤러유닛(MCU)와 함께 8인치 웨이퍼로 만드는 대표 반도체다.

8인치 웨이퍼 기반 반도체 생산을 담당하는 파운드리 주문이 밀려 DDI 공급도 쉽지 않은 상황이다.

DDI가 없어서 TV를 못 만든다는 이야기까지 나오고 있다.

물량이 부족하니 DDI 가격이 오르고 이는 TV 가격 인상을 야기한다.

 

- 시사점

DDI 수요는 모바일/중대형으로 구분되는데,  21'Q 갤럭시/아이폰 신제품 출시 , 소비자들의 대형TV선호현상

재택근무/사회적거리두기로 집콕 현상이 증가-> TV/노트북 가전수요 증가로 이어질 것으로 정망한다.

 

 

 

※  DDI(Display Driver IC)

액정표시장치(LCD)와 OLED 등 디스플레이를 구성하는 많은 화소를 구동하는 반도체다.

DDI로 화소를 구성하는 빨강·녹색·파랑(RGB) 등 부화소를 켜고 끌 수 있다.

또 RGB 영상 신호 양을 조절하기도 한다. 이를 통해 색상 차이를 만든다.

 

 

 

반응형
반응형

출처: https://kubernetes.io/docs/tasks/administer-cluster/safely-drain-node/

 

Safely Drain a Node

This page shows how to safely drain a node, optionally respecting the PodDisruptionBudget you have defined. Before you begin Your Kubernetes server must be at or later than version 1.5. To check the version, enter kubectl version. This task also assumes th

kubernetes.io

 

클러스터 구성된 노드를 클러스터에서 안정적으로 제외 시키기 위해  node Drain 사용한다.

 

ㅁ 현재 노드구성

현재 구성노드

 

ㅁ 작업내용

1) Node01(drain 대상)에 Pod가  더이상 배포되지 않도록 Cordon 설정 

#kubectl cordon node01 

cordon 설정 
cordon 설정후 SchedulingDisabled(pod가 더이상 배포되지 않는다는 얘기다)

2) Node01 Drain 

#kubectl drain node01

(만약 cordon을 먼저 실행하지 않았다면, 발생한 에러)

#kubectl drain node01 --ignore-daemonset=true

 

※ drain 시에 node01에 생성되었던 pod들은 모두 다른노드들로 재생성되니 주의가 필요함

반응형

'클라우드 > K8S' 카테고리의 다른 글

helm 명령어  (0) 2023.01.02
[system log]failed to get system container stats  (0) 2022.12.19
[k8s] orphaned pod 조치  (0) 2022.12.16
kubectl cheet sheet, useful cheet  (0) 2022.12.15
kubectl custom column 사용  (0) 2021.07.01
반응형

ㅁ 삼성증권 (21'09.14)  리포트 요약

 

1) 글로벌 1위 탄산칼륨 생산업체 유니드

 

2) 탄소포집의 핵심소재 탄산칼륨의 성장세

 

 - 탄소포집(CCUS) 기술이 주목받고 있고, 향후 10년간 20배 정도 성장할것으로 전망함

    (‘20년 0.4억톤/년→‘30년 8억톤/년)

 

 - 탄산칼륨의 폭발적 수요 근거

   . 한국에너지기술연구원이 개발한 탄소포집 기술  "키어솔(KIERSOL)" SK그룹으로 기술이전 완료

   . 키어솔(KIERSOL)이 탄산칼륨을 주 물질로 하기 때문에, 국내 대표 기술로 채택된다면 

     유니드의 탄산칼륨 수요증가 예상

 

 

  

자료: 삼성증권

※ 용어 요약

- CCUS (CarBon Capture Utilization Storage) 

 이산화탄소를 포집 하여, 에너지 자원 으로 전환(Utilization), 저장(매립)하는 기술

 

 

반응형
반응형

<조회대상 샘플 yaml>

<deploy yaml>

apiVersion: apps/v1
kind: Deployment
metadata:
  name: nginx-deployment
  labels:
    app: test-nginx
    tier: frontend
spec:
  replicas: 3
  strategy:
    type: Recreate
  selector:
    matchLabels:
      app: test-nginx

 

 

<custom column 활용>

 . 조회방법 :   

1) -o custom-columns=컬럼명:경로

2) kubectl custom-columns조회시   mapping이 1번은  . 한개,   N번이라면 N번의 .을 추가하면 됨

 

 

 . ex)

1.Spec  조회 (map .한번) 

controlplane $ kubectl get deploy nginx-deployment -o custom-columns=spec:.spec

<결과>

spec
map[progressDeadlineSeconds:600 replicas:3 revisionHistoryLimit:10 selector:map[matchLabels:map[app:test-nginx]] 
<..중략>

 

 

2. replicas 조회 (map . 한번)

controlplane $ kubectl get deploy nginx-deployment -o custom-columns=replicas:.spec.replicas    #map  .  한번

<결과>

replicas
3

 

3. matchLabelsapp 조회 (map .. 두번)

< selector. 1>

controlplane $ kubectl get deploy nginx-deployment -o custom-columns=matchlabels:.spec.selector

 

matchlabels
map[matchLabels:map[app:test-nginx]]

< app는  map2, 그래서 . 2번 후 key(app)>

 

controlplane $ kubectl get deploy nginx-deployment -o custom-columns=matchlabels:.spec.selector..app

<결과>

matchlabels
test-nginx
반응형

'클라우드 > K8S' 카테고리의 다른 글

helm 명령어  (0) 2023.01.02
[system log]failed to get system container stats  (0) 2022.12.19
[k8s] orphaned pod 조치  (0) 2022.12.16
kubectl cheet sheet, useful cheet  (0) 2022.12.15
[k8s]Node Drain  (0) 2021.09.14
반응형
for x in *.xml; do    t=$(echo $x | sed 's/\.xml$/.txt/');    mv $x $t && echo "moved $x -> $t" done

- 출처 : https://superuser.com/questions/31464/looping-through-ls-results-in-bash-shell-script

반응형

'프로그래밍 > 쉘프로그래밍' 카테고리의 다른 글

cut 명령 예제  (0) 2018.11.26
일반변수$, $(), ${} 의 이해  (0) 2017.12.23
인자값이해, 인자값 쉘프로그램  (0) 2017.12.21
반응형

ㅁ when_dict

- name: dict example

  hosts: localhost

  vars:

    users:

      alice:

        name: Alice

        phone: 123-456

      bob:

        name: bob name

        phone: 678-910


 

  tasks:

    - name: user.key is value

      debug:

       msg: " {{ item.key }} is {{item.value.name}}  {{item.value.phone}} "

      with_dict: "{{ users }}"

 


- dictionary : key:value.형태의 자료

 users (dictionary) 라면,   

alice(key) :          name: Alice (value)  phone: 123-456(value) 

bob(key)  :          name: bob name(value) phone: 678-910(value)


- 실행결과

TASK [user.key is value] ***************************************************************************************************************************


MSG:


 bob is bob name  678-910 


MSG:


 alice is Alice  123-456 


반응형

'프로그래밍 > ansbie_YAML' 카테고리의 다른 글

ansible 조건문 (when)  (0) 2018.11.28
진자2(jinja2) 변수 확장  (0) 2018.11.28
register 예제  (0) 2018.11.27
반응형

(참조: - https://docs.ansible.com/ansible/latest/user_guide/playbooks_conditionals.html#the-when-statement)


ㅁWhen조건

 - 조건이 참(true) 일경우 task 실행, 거짓(false)일 경우 task 미실행


ㅁ when활용

- task요약 : 


- name: /etc/passwd | use cut command

 ▶ cut --delimiter=':' --fields=1 /etc/passwd 수행하고, register를 이용해 usernames_result 변수 선언



- name: command set_fact

▶ set_fact에  username_list == usernames_result.stdout_lines 선언

 

- name: result refered to username_list

▶ 조건문 when 실행,   'testuser1'이  username_list에 있는지 in 연산자를 사용해 확인


---

- name: command result 

  hosts: localhost

  tasks:


   - name: /etc/passwd | use cut command

     command: cut --delimiter=':' --fields=1 /etc/passwd

     register: usernames_result


   - name: username_result debug

     debug:

        var: usernames_result


   - name: command set_fact

     set_fact:

       username_list: "{{ usernames_result.stdout_lines }}"


   - name: result refered to username_list

     debug:

       msg: this server exists test1

     when: "'testuser1' in username_list"



- 결과 (when이  true일 경우)


[root@system1 yaml]# ansible-playbook get-users.yml


PLAY [command result] ************************************************************************************


TASK [Gathering Facts] ***********************************************************************************

ok: [localhost]


TASK [/etc/passwd | use cut command] *********************************************************************

changed: [localhost]


TASK [username_result debug] *****************************************************************************

-- 생략 


TASK [command set_fact] **********************************************************************************

ok: [localhost]


TASK [result refered to username_list] *******************************************************************

ok: [localhost] => {}


MSG:


this server exists test1


PLAY RECAP ***********************************************************************************************

localhost                  : ok=5    changed=1    unreachable=0    failed=0   




- 결과2 (when이 false, 즉 testuser1이 username_list 內 없을 경우)

 ▶ when이 있는 task는  skipping이 출력됨

  . skipping : when이 지정한 조건을 만족하지 않았을때 하는 동작 

 

[root@system1 yaml]# ansible-playbook get-users.yml


PLAY [command result] ************************************************************************************


TASK [Gathering Facts] ***********************************************************************************

ok: [localhost]


TASK [/etc/passwd | use cut command] *********************************************************************

changed: [localhost]


TASK [username_result debug] *****************************************************************************

-- 생략 

TASK [command set_fact] **********************************************************************************

ok: [localhost]


TASK [result refered to username_list] *******************************************************************

skipping: [localhost]


PLAY RECAP ***********************************************************************************************

localhost                  : ok=4    changed=1    unreachable=0    failed=0   



반응형

'프로그래밍 > ansbie_YAML' 카테고리의 다른 글

when-dict 예제  (0) 2018.12.04
진자2(jinja2) 변수 확장  (0) 2018.11.28
register 예제  (0) 2018.11.27
반응형

ㅁ 진자2(jinja2)?

  - 진자2 템플릿 엔진으로 앤서블의 변수 확장으로 주로 씀


ㅁ 진자2 변수 활용방법


 - 진자2는 반드시 {{,}}로 묶어서 사용하며,  변수를 활용할시에는 " "로 묶어서 사용해야함

 - playbook 예제


---

- name: vars_ jinja

  hosts: localhost

  vars:

    my_var: song

  tasks:

    - name: my_var debug

      debug:

        msg: " vars values is {{ my_var }}"


           ---> 진자2 라인은  "{{ 변수 }}"   로 묶었다




  


 - playbook result

[root@system1 yaml]# ansible-playbook debug-var.yml


PLAY [vars_ jinja] ***************************************************************************************


TASK [Gathering Facts] ***********************************************************************************

ok: [localhost]


TASK [my_var debug] **************************************************************************************

ok: [localhost] => {}


MSG:


 vars values is song



PLAY RECAP ***********************************************************************************************

localhost                  : ok=2    changed=0    unreachable=0    failed=0   



반응형

'프로그래밍 > ansbie_YAML' 카테고리의 다른 글

when-dict 예제  (0) 2018.12.04
ansible 조건문 (when)  (0) 2018.11.28
register 예제  (0) 2018.11.27
반응형

( 참조 : https://docs.ansible.com/ansible/latest/user_guide/playbooks_conditionals.html#register-variables)



- ansible register:  플레이북에서의 결과를 변수로 정하기 위해 사용되는 모듈




ㅁ Playbook 예제

- /home하위에 디렉토리 변수 저장

1) yaml

- name: registered variable usage as a loop list hosts: all tasks: - name: retrieve the list of home directories command: ls /home register: home_dirs - name: debug ls /home debug: var: home_dirs


2) 결과

stdout_lines를 확인가능


PLAY [registered variable usage as a loop list] ****************************************************************************************************************************************************************************************************


TASK [Gathering Facts] ***************************************************************************************************************************

ok: [localhost]


TASK [retrieve the list of home directories] ***************************************************************************************************************************

changed: [localhost]


TASK [debug  ls /home] ***************************************************************************************************************************

ok: [localhost] => {

    "home_dirs": {

        "changed": true, 

        "cmd": [

            "ls", 

            "/home"

        ], 

        "delta": "0:00:00.008900", 

        "end": "2018-11-26 23:07:41.673464", 

        "failed": false, 

        "rc": 0, 

        "start": "2018-11-26 23:07:41.664564", 

        "stderr": "", 

        "stderr_lines": [], 

        "stdout": "david\njohn\nlost+found\npeter\nsarah\ntestuser1\ntestuser2", 

        "stdout_lines": [

            "david", 

            "john", 

            "lost+found", 

            "peter", 

            "sarah", 

            "testuser1", 

            "testuser2"

        ]

    }

}



반응형

'프로그래밍 > ansbie_YAML' 카테고리의 다른 글

when-dict 예제  (0) 2018.12.04
ansible 조건문 (when)  (0) 2018.11.28
진자2(jinja2) 변수 확장  (0) 2018.11.28
반응형

ㅁ cut 명령예시

 

[root@system1 ~]# cut --delimiter=':' --fields=1 /etc/passwd| head -5

root

bin

daemon

adm

lp

 

- delimiter : 구분자

- fields : 출력할 필드

 
 

 

반응형

'프로그래밍 > 쉘프로그래밍' 카테고리의 다른 글

파일명 변환 쉘  (0) 2019.03.07
일반변수$, $(), ${} 의 이해  (0) 2017.12.23
인자값이해, 인자값 쉘프로그램  (0) 2017.12.21

+ Recent posts