モード間の切り替え

PEG を転送モードに変更し、その後、確認モードに戻します。

前提条件

デフォルトでは、PEG は最初に確認モードで起動します。

手順

  1. 転送モードに切り替えるには:
    1. ~/peg/text_pipeline/values-gpu.yaml ファイルを編集します。ファイルの末尾にある forward_to_fluentd 値を true に変更し、変更内容を保存します。
      forward_to_fluentd: "true"
    2. 任意のフォルダーから以下を実行して、PEG に変更をプッシュします。
      source ~/peg/scripts/vars.sh
      kubectl delete cronjob.batch/text-pipeline-masking-masking-cron -n text-pipeline
      kubectl get pods --output=jsonpath={.items..metadata.name} -n text-pipeline -o=name | grep cron | xargs -n1 kubectl delete --grace-period=0 --force -n text-pipeline
      helm upgrade text-pipeline ${text_pipeline_dir} -f ${values_file_t} --namespace text-pipeline --set ocr.name=st-fiq-$new_gen_uuid.$apex_domain --set masking.name=dlp-fiq-$new_gen_uuid.$apex_domain
  2. 確認モードに戻るには:
    1. ~/peg/text_pipeline/values-gpu.yaml ファイルを編集します。ファイルの末尾にある forward_to_fluentd 値を false に変更し、変更内容を保存します。
      forward_to_fluentd: "false"
    2. 任意のフォルダーから以下を実行して、PEG に変更をプッシュします。
      source ~/peg/scripts/vars.sh
      kubectl delete cronjob.batch/text-pipeline-masking-masking-cron -n text-pipeline
      kubectl get pods --output=jsonpath={.items..metadata.name} -n text-pipeline -o=name | grep cron | xargs -n1 kubectl delete --grace-period=0 --force -n text-pipeline
      helm upgrade text-pipeline ${text_pipeline_dir} -f ${values_file_t} --namespace text-pipeline --set ocr.name=st-fiq-$new_gen_uuid.$apex_domain --set masking.name=dlp-fiq-$new_gen_uuid.$apex_domain