1.3. 恢复您的受信任的工件签名程序数据


安装了 Red Hat Trusted Artifact Signer (RHTAS)和 OpenShift API Data Protection (OADP)运算符,以及 RHTAS 命名空间的备份资源,您可以将您的数据恢复到 OpenShift 集群。

先决条件

  • Red Hat OpenShift Container Platform 版本 4.13 或更高版本。
  • 使用 cluster-admin 角色访问 OpenShift Web 控制台。
  • 安装 RHTAS 运算符.
  • 安装 OADP operator
  • trusted-artifact-signer 命名空间结构的备份资源。
  • 安装了 oc 二进制文件的工作站。

流程

  1. 禁用 RHTAS 操作器:

    Example

    $ oc scale deploy rhtas-operator-controller-manager --replicas=0 -n openshift-operators

  2. 创建 Restore 资源:

    Example

    $ cat <<EOF | oc apply -f -
    apiVersion: velero.io/v1
    kind: Restore
    metadata:
      name: rhtas-restore
      namespace: openshift-adp
    spec:
      backupName: rhtas-backup
      includedResources: []
      restoreStatus:
        includedResources:
          - securesign.rhtas.redhat.com
          - trillian.rhtas.redhat.com
          - ctlog.rhtas.redhat.com
          - fulcio.rhtas.redhat.com
          - rekor.rhtas.redhat.com
          - tuf.rhtas.redhat.com
          - timestampauthority.rhtas.redhat.com
      excludedResources:
      - pod
      - deployment
      - nodes
      - route
      - service
      - replicaset
      - events
      - cronjob
      - events.events.k8s.io
      - backups.velero.io
      - restores.velero.io
      - resticrepositories.velero.io
      - pods
      - deployments
      restorePVs: true
      existingResourcePolicy: update
    EOF

  3. 启用 RHTAS 操作器:

    Example

    $ oc scale deploy rhtas-operator-controller-manager --replicas=1 -n openshift-operators

Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.