No. command target
1 sar 시스템 활동
2 iostat 디스크 및 CPU의 입출력
3 vmstat 전반적인 성능
4 top 프로세스의 리소스 사용량
5 htop top의 업그레이드
6 free 메모리 사용량
7 df 디스크 사용량
8 du 디렉토리의 디스크 사용량
9 uptime 시스템 부팅
0 pidstat 프로세스별 리소스 사용
11 mpstat 각 cpu코어의 사용률
12 ifstat 네트워크 인터페이스의 트래픽 통계
13 tcpdump 네트워크 패킷 분석
14 strace 프로세스의 시스템 호출 추적

 

 

 

vi my-scc.yaml

 

apiVersion: security.openshift.io/v1
kind: SecurityContextConstraints
metadata:
  annotations:
    kubernetes.io/description: my-scc is a close replica of anyuid scc. pipelines-scc has fsGroup - RunAsAny.
  name: my-scc
allowHostDirVolumePlugin: false
allowHostIPC: false
allowHostNetwork: false
allowHostPID: false
allowHostPorts: false
allowPrivilegeEscalation: true
allowPrivilegedContainer: false
allowedCapabilities: null
defaultAddCapabilities: null
fsGroup:
  type: RunAsAny
groups:
- system:cluster-admins
priority: 10
readOnlyRootFilesystem: false
requiredDropCapabilities:
- MKNOD
runAsUser:
  type: RunAsAny
seLinuxContext:
  type: MustRunAs
supplementalGroups:
  type: RunAsAny
volumes:
- configMap
- downwardAPI
- emptyDir
- persistentVolumeClaim
- projected
- secret

 

 

oc create -f my-scc.yaml

 

 

oc adm policy add-scc-to-user my-scc -z default -n backend

테라폼은 디렉토리 단위이다

테라폼 파일이 들어있는 디렉토리에서 "terraform init"라는 명령어를 실행한 뒤

terraform apply라는 명령어를 이용하여 테라폼 파일을 실행한다.

 

terraform {
  required_providers {
    aws = {
      source  = "hashicorp/aws"
      version = "~> 5.0"
    }
  }
}

# Configure the AWS Provider
provider "aws" {
  region = ap-northeast-2
}

 

 

apt-get update

실행시

Temporary failure resolving ~

문제 발생 

 

vi /etc/resolv.conf

 

아래에 추가

 

-> nameserver 8.8.8.8

 

루트 계정이 아니면 sudo 명령어를 이용한다.

 

'Linux' 카테고리의 다른 글

2 Too Many authentication failure  (1) 2024.12.02
session 접속 제한 Too many authentication failures  (1) 2024.08.26
Linux) alias - 약어  (0) 2023.03.14
Linux) 기본명령어  (0) 2023.03.13
Linux) Tar, 압축  (0) 2023.03.13

+ Recent posts