TimesTenオペレータの削除

TimesTenオペレータはネームスペースから削除できます。

TimesTenオペレータを削除するオプションがあります。operator.yamlservice_account.yamlおよびservice_account_cluster.yaml YAMLマニフェスト・ファイルが開発ホストに存在する場合は、これらのファイルを使用してTimesTenオペレータとそのサービス・アカウントを削除できます。そうでない場合は、timesten-operatorデプロイメントとtimesten-operator role bindingroleおよびservice accountオブジェクトを削除できます。

次に例を示します:

  1. オプション: TimesTenオペレータが実行中であることを確認します。
    kubectl get pods
    出力は、次のようになります。
    NAME                                 READY   STATUS    RESTARTS   AGE
    timesten-operator-545d5f7fdb-xbdfw   1/1     Running   0          18h
  2. TimesTenオペレータの削除2つの選択肢があります。いずれかを選択します。
    • operator.yamlファイルを使用するには、YAMLマニフェスト・ファイルの場所に変更します。次に、TimesTenオペレータを削除します。

      cd kube_files/deploy
      kubectl delete -f operator.yaml
      出力は次のようになります。
      deployment.apps "timesten-operator" deleted
    • TimesTenオペレータ・デプロイメントを削除するには、次を実行します:
      kubectl delete deployment timesten-operator
      出力は次のようになります。
      deployment.apps "timesten-operator" deleted
  3. TimesTenオペレータのサービス・アカウント、ロールおよびロール・バインディングを削除します。
    1. service_account_cluster.yamlファイルを削除します。
      cd kube_files/deploy
      kubectl delete -f service_account_cluster.yaml
      出力は、次のようになります。
      clusterrole.rbac.authorization.k8s.io "timesten-operator" deleted
      clusterrolebinding.rbac.authorization.k8s.io "timesten-operator" deleted
      
    2. service_account.yamlファイルを削除します。
      kubectl delete -f service_account.yaml
      出力は、次のようになります。
      serviceaccount "timesten-operator" deleted
      rolebinding.rbac.authorization.k8s.io "timesten-operator" deleted
おめでとうございます。TimesTenオペレータとサービス・アカウント、ロールおよびロール・バインディングが正常に削除されました。