crossplane/stack-gcpCrossplane GCP Stack是基于Crossplane的扩展组件,提供对Google Cloud Platform (GCP)资源的声明式管理能力。通过Kubernetes API定义和管理GCP服务(如Compute Engine、Cloud SQL、GKE等),实现基础设施即代码(IaC)与云原生工作流的无缝集成。
拉取镜像
bashdocker pull crossplane/provider-gcp:v0.37.0 # 替换为目标版本
配置GCP凭证 将GCP服务账号密钥创建为Kubernetes Secret:
bashkubectl create secret generic gcp-creds -n crossplane-system \ --from-file=creds=./gcp-service-account-key.json
部署ProviderConfig
创建ProviderConfig资源以关联凭证:
yamlapiVersion: gcp.crossplane.io/v1beta1 kind: ProviderConfig metadata: name: default spec: credentials: source: Secret secretRef: namespace: crossplane-system name: gcp-creds key: creds
部署GCP资源示例 创建Compute Engine实例:
yamlapiVersion: compute.gcp.crossplane.io/v1beta1 kind: Instance metadata: name: example-vm spec: forProvider: machineType: n1-standard-1 zone: us-central1-a disks: - boot: true initializeParams: sourceImage: projects/debian-cloud/global/images/debian-11-bullseye-v20230509 networkInterfaces: - network: default accessConfig: - name: External NAT providerConfigRef: name: default
compute.instances.admin等)。



manifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务