6.2. File Integrity Operator ์ค์น
6.2.1. ์น ์ฝ์์ ์ฌ์ฉํ์ฌ File Integrity Operator ์ค์น
์ฌ์ ์๊ตฌ ์ฌํญ
-
admin
๊ถํ์ด ์์ด์ผ ํฉ๋๋ค.
ํ๋ก์ธ์ค
-
OpenShift Container Platform ์น ์ฝ์์์ Operator
OperatorHub๋ก ์ด๋ํฉ๋๋ค. - File Integrity Operator ๋ฅผ ๊ฒ์ํ ๋ค์ ์ค์น๋ฅผ ํด๋ฆญํฉ๋๋ค.
-
๊ธฐ๋ณธ ์ค์น ๋ชจ๋ ๋ฐ ๋ค์์คํ์ด์ค๋ฅผ ๊ณ์ ์ ํํ์ฌ Operator๊ฐ
openshift-file-integrity
๋ค์์คํ์ด์ค์ ์ค์น๋๋๋ก ํฉ๋๋ค. - ์ค์น๋ฅผ ํด๋ฆญํฉ๋๋ค.
๊ฒ์ฆ
์ค์น์ ์ฑ๊ณตํ๋์ง ํ์ธํ๋ ค๋ฉด ๋ค์์ ์ํํ์ญ์์ค.
-
Operator
์ค์น๋ Operator ํ์ด์ง๋ก ์ด๋ํฉ๋๋ค. -
Operator๊ฐ
openshift-file-integrity
๋ค์์คํ์ด์ค์ ์ค์น๋์ด ์๊ณ ํด๋น ์ํ๋Succeeded
์ธ์ง ํ์ธํฉ๋๋ค.
Operator๊ฐ ์ฑ๊ณต์ ์ผ๋ก ์ค์น๋์ง ์์ ๊ฒฝ์ฐ ๋ค์์ ์ํํ์ญ์์ค.
-
Operator
์ค์น๋ Operator ํ์ด์ง๋ก ์ด๋ํ์ฌ Status
์ด์ ์ค๋ฅ ๋๋ ์คํจ๊ฐ ์๋์ง ์ ๊ฒํฉ๋๋ค. -
์ํฌ๋ก๋
Pod ํ์ด์ง๋ก ์ ํํ๊ณ openshift-file-integrity
ํ๋ก์ ํธ์์ ๋ฌธ์ ๋ฅผ ๋ณด๊ณ ํ๋ Pod์ ๋ก๊ทธ๋ฅผ ํ์ธํฉ๋๋ค.
6.2.2. CLI๋ฅผ ์ฌ์ฉํ์ฌ File Integrity Operator ์ค์น
์ฌ์ ์๊ตฌ ์ฌํญ
-
admin
๊ถํ์ด ์์ด์ผ ํฉ๋๋ค.
ํ๋ก์ธ์ค
๋ค์์ ์คํํ์ฌ
Namespace
์ค๋ธ์ ํธ YAML ํ์ผ์ ์์ฑํฉ๋๋ค.$ oc create -f <file-name>.yaml
์ถ๋ ฅ ์
apiVersion: v1 kind: Namespace metadata: labels: openshift.io/cluster-monitoring: "true" name: openshift-file-integrity
OperatorGroup
์ค๋ธ์ ํธ YAML ํ์ผ์ ์์ฑํฉ๋๋ค.$ oc create -f <file-name>.yaml
์ถ๋ ฅ ์
apiVersion: operators.coreos.com/v1 kind: OperatorGroup metadata: name: file-integrity-operator namespace: openshift-file-integrity spec: targetNamespaces: - openshift-file-integrity
Subscription
์ค๋ธ์ ํธ YAML ํ์ผ์ ์์ฑํฉ๋๋ค.$ oc create -f <file-name>.yaml
์ถ๋ ฅ ์
apiVersion: operators.coreos.com/v1alpha1 kind: Subscription metadata: name: file-integrity-operator namespace: openshift-file-integrity spec: channel: "release-0.1" installPlanApproval: Automatic name: file-integrity-operator source: redhat-operators sourceNamespace: openshift-marketplace
๊ฒ์ฆ
CSV ํ์ผ์ ๊ฒ์ฌํ์ฌ ์ค์น์ ์ฑ๊ณตํ๋์ง ํ์ธํฉ๋๋ค.
$ oc get csv -n openshift-file-integrity
File Integrity Operator๊ฐ ์คํ ์ค์ธ์ง ํ์ธํฉ๋๋ค.
$ oc get deploy -n openshift-file-integrity
6.2.3. ์ถ๊ฐ ๋ฆฌ์์ค
- File Integrity Operator๋ ์ ํ๋ ๋คํธ์ํฌ ํ๊ฒฝ์์ ์ง์๋ฉ๋๋ค. ์์ธํ ๋ด์ฉ์ ์ ํ๋ ๋คํธ์ํฌ์์ Operator Lifecycle Manager ์ฌ์ฉ์ ์ฐธ์กฐํ์ญ์์ค.