0

通过 将 Spinnaker 部署到 EKS 时hal deploy apply,Spinnaker Clouddriver pod 会出现CrashLoopBackOff以下错误,

工厂方法“awsProvider”抛出异常;嵌套异常是 java.lang.NullPointerException: Cannot get property 'name' on null object

我的 Halyard 配置如下,

currentDeployment: default
deploymentConfigurations:
- name: default
  version: 1.17.6
  providers:
    appengine:
      enabled: false
      accounts: []
    aws:
      enabled: true
      accounts:
      - name: my-account
        requiredGroupMembership: []
        providerVersion: V1
        permissions: {}
        accountId: '010101010101' # my account id here
        regions: []
        assumeRole: Spinnaker-Clouddriver-Role
        lifecycleHooks: []
      primaryAccount: my-account
      bakeryDefaults:
        baseImages: []
      defaultKeyPairTemplate: '{{name}}-keypair'
      defaultRegions:
      - name: us-east-1
      defaults:
        iamRole: BaseIAMRole

我的Spinnaker-Clouddriver-RoleIAM 角色目前拥有完全权限。我怎样才能解决这个问题?


这是完整的日志https://gist.github.com/agentmilindu/cfbebffe46b93458df8158f9355e4041

4

1 回答 1

2

这或多或少是一个猜测,因为您没有包含有关您的大三角帆设置的一丁点版本信息,但是......

根据at com.netflix.spinnaker.clouddriver.aws.provider.agent.ReservationReportCachingAgent$_determineVpcOnlyAccounts_closure2.doCall(ReservationReportCachingAgent.groovy:117) ~[clouddriver-aws.jar:na]您的要点,对应getAmazonEC2(credentials, credentials.regions[0].name)于版本 6.5.2

看来他们不能regions: []像你一样容忍空虚;因此:

aws:
  enabled: true
  accounts:
  - name: my-account
    # ... snip ...
    # vvv-- update this list
    regions:
    - name: us-east-1
于 2020-02-24T05:45:08.320 回答