apiVersion: v1 kind: ServiceAccount metadata: name: ingress-migrator --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: ingress-migrator rules: - apiGroups: ["networking.k8s.io"] resources: ["ingresses"] verbs: ["get", "list", "update", "patch"] --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: ingress-migrator roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: ingress-migrator subjects: - kind: ServiceAccount name: ingress-migrator namespace: testapp