• 关于

    alibabacloud

    的搜索结果

问题

使用新版sdk,Class 'AlibabaCloud\Client\AlibabaCloud'

使用composer 安装短信的新版sdk,就改了参数,其他都没动,出现 Class 'AlibabaCloud\Client\AlibabaCloud' not found...
1332340897414354 2019-12-01 19:57:59 41 浏览量 回答数 1

问题

域名php sdk实现自动注册、批量注册

域名php sdk实现自动注册、批量注册 类似: <?phpuse AlibabaCloud\Client\AlibabaCloud; use AlibabaCloud\Client\Exception\Cli...
游客rnokt34n5czhg 2019-12-01 19:30:07 164 浏览量 回答数 1

回答

可以尝试手动卸载安骑士,参考:https://www.alibabacloud.com/help/zh/doc-detail/31777.htm 如果您觉得有帮助请点击采纳!谢谢; https://www.alibabacloud.com/help/zh/doc-detail/31777.htm https://www.alibabacloud.com/help/zh/doc-detail/31777.htm https://www.alibabacloud.com/help/zh/doc-detail/31777.htm
Wan 2019-12-02 01:15:13 0 浏览量 回答数 0

万券齐发助力企业上云,爆款产品低至2.2折起!

限量神券最高减1000,抢完即止!云服务器ECS新用户首购低至0.95折!

问题

alibabacloud.com是官方网站吗?

alibabacloud.com是官方网站吗? 今天打开阿里云网站时自动跳到alibabacloud.com了,但输入账号密码提示系统错误。...
1292105974840362 2021-01-30 16:57:52 9 浏览量 回答数 1

问题

Cloud toolkit发布到windows的ECS报错

[INFO] Deployment File is Uploading... [INFO] IDE Version:IntelliJ IDEA 2018.3.4 [INFO] Alibaba Cloud Toolkit Version:20...
天然教育 2019-12-01 19:48:25 19 浏览量 回答数 0

问题

OSS vs2013 上传文件测试通过,下载文件到本地或内存代码编译报错!急!急!

使用官方下载的aliyun-oss-cpp-sdk-master.zip cmake 后VS2013编译lib成功。 OSS vs2013 上传文件测试通过,下载文件到本地或内存代码,报发下错误 COssUp...
游客g7mqznbhun3so 2020-11-02 11:39:41 2 浏览量 回答数 0

问题

根据README配置sdk时,不明白怎么配置预处理器定义 ALIBABACLOUD_SHARED

本人通过cmake得到了alibabacloud-sdk.sln,我对文档中这一句存在问题 如下:您首先需要配置预处理器定义 ALIBABACLOUD_SHARED 以引用阿里云 C++ SDK 的共享库我的问题是如何配置预处理器定义?我...
qwq2143 2019-12-01 19:44:52 918 浏览量 回答数 1

回答

使用PHP调用API示例 本示例通过Alibaba Cloud SDK for PHP,完成添加解析记录(AddDomainRecord)的任务。 use AlibabaCloud\Client\AlibabaCloud; use AlibabaCloud\Client\Exception\ClientException; use AlibabaCloud\Client\Exception\ServerException; // Download:https://github.com/aliyun/openapi-sdk-php // Usage:https://github.com/aliyun/openapi-sdk-php/blob/master/README.md AlibabaCloud::accessKeyClient(' ', ' ') ->regionId('cn-hangzhou') // replace regionId as you need ->asDefaultClient(); try { $result = AlibabaCloud::rpc() ->product('Alidns') // ->scheme('https') // https | http ->version('2015-01-09') ->action('AddDomainRecord') ->method('POST') ->options([ 'query' => [ 'DomainName' => "dns-example.com", 'RR' => "apitest1", 'Type' => "A", 'Value' => "3.0.3.0", ], ]) ->request(); print_r($result->toArray()); } catch (ClientException $e) { echo $e->getErrorMessage() . PHP_EOL; } catch (ServerException $e) { echo $e->getErrorMessage() . PHP_EOL; }
剑曼红尘 2020-03-20 09:49:14 0 浏览量 回答数 0

回答

[0] ThrowableError in AliSMScontroller.php line 16 致命错误: Class 'Alibabacloud\Client\AlibabaCloud' not found 我也是
游客s4cpq56su4him 2020-10-22 10:23:49 0 浏览量 回答数 0

问题

使用OSS C++ SDK,下载到本地文件,报错

严重性 代码 说明 项目 文件 行 禁止显示状态 错误 C2664 “void AlibabaCloud::OSS::ServiceRequest::setResponseStreamFactory(const AlibabaCloud::...
游客t6ndyavcpuzjo 2021-03-11 10:11:58 1 浏览量 回答数 0

问题

使用openapi explorer的php SDK,只改了必须参数,报Fatal error: Class 'AlibabaCloud\Client\AlibabaCloud' not found错?

如题,使用openapi explorer的php SDK,只改了必须参数,报Fatal error: Class 'AlibabaCloudClientAlibabaCloud' not found错?...
游客z2xem4xohht64 2019-12-01 19:43:42 5702 浏览量 回答数 10

回答

用DescribeCategories查询平台类型。 调试 您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。 调试 请求头 该接口使用公共请求头,无特殊请求头。请参见公共请求参数文档。 请求语法 GET /pop/v1/wam/category HTTPS|HTTP 请求参数 返回数据 名称 类型 示例值 描述 Categories Array 平台类型查询结果 Code String OK 响应代码,若成功请求为OK Message String success 响应消息,若成功请求为success RequestId String 6E99F8E3-7493-4ADA-A27B-2DFF2C693555 请求ID 示例 请求示例 http://webplus.cn-hangzhou.aliyuncs.com/pop/v1/wam/category?ServiceCode=webx&<公共请求参数> 正常返回示例 XML 格式 success 2EF90744-064A-4841-B9E3-6B0D7AE6785A OK Tomcat wca-5c937c98a9c0296d0c4823912 Use Tomcat as an application container, support for WAR or ZIP type application deployment packages. https://github.com/aliyun/alibabacloud-webplus-tomcat-demo cn-shenzhen oss://webplus-prod-cn-shenzhen/quickstart/tomcat/first-step/webplus-tomcat-demo-0.1.1.war https://github.com/aliyun/alibabacloud-webplus-tomcat-demo cn-zhangjiakou oss://webplus-prod-cn-zhangjiakou/quickstart/tomcat/first-step/webplus-tomcat-demo-0.1.1.war https://github.com/aliyun/alibabacloud-webplus-tomcat-demo cn-beijing oss://webplus-prod-cn-beijing/quickstart/tomcat/first-step/webplus-tomcat-demo-0.1.1.war https://github.com/aliyun/alibabacloud-webplus-tomcat-demo cn-shanghai oss://webplus-prod-cn-shanghai/quickstart/tomcat/first-step/webplus-tomcat-demo-0.1.1.war https://github.com/aliyun/alibabacloud-webplus-tomcat-demo cn-hangzhou oss://webplus-prod-cn-hangzhou/quickstart/tomcat/first-step/webplus-tomcat-demo-0.1.1.war http://tomcat.apache.org/res/images/tomcat.png 1553218065000 1553218065000 Java wca-6c937c98a9c0296d0c4823912 Direct startup using Java commands, support for FatJAR or ZIP type application deployment packages. https://github.com/aliyun/alibabacloud-webplus-java-demo cn-shenzhen oss://webplus-prod-cn-shenzhen/quickstart/java/first-step/webplus-java-demo-0.1.1-exec.jar https://github.com/aliyun/alibabacloud-webplus-java-demo cn-zhangjiakou oss://webplus-prod-cn-zhangjiakou/quickstart/java/first-step/webplus-java-demo-0.1.1-exec.jar https://github.com/aliyun/alibabacloud-webplus-java-demo cn-beijing oss://webplus-prod-cn-beijing/quickstart/java/first-step/webplus-java-demo-0.1.1-exec.jar https://github.com/aliyun/alibabacloud-webplus-java-demo cn-shanghai oss://webplus-prod-cn-shanghai/quickstart/java/first-step/webplus-java-demo-0.1.1-exec.jar https://github.com/aliyun/alibabacloud-webplus-java-demo cn-hangzhou oss://webplus-prod-cn-hangzhou/quickstart/java/first-step/webplus-java-demo-0.1.1-exec.jar https://openjdk.java.net/images/duke-thinking.png 1553218065000 1553218065000 Node.js wca-7c937c98a9c0296d0c4823912 The Node.js application supports ZIP-type application deployment packages. https://github.com/aliyun/alibabacloud-webplus-node-demo cn-shenzhen oss://webplus-prod-cn-shenzhen/quickstart/node/first-step/webplus-node-demo-0.1.0.zip https://github.com/aliyun/alibabacloud-webplus-node-demo cn-zhangjiakou oss://webplus-prod-cn-zhangjiakou/quickstart/node/first-step/webplus-node-demo-0.1.0.zip https://github.com/aliyun/alibabacloud-webplus-node-demo cn-beijing oss://webplus-prod-cn-beijing/quickstart/node/first-step/webplus-node-demo-0.1.0.zip https://github.com/aliyun/alibabacloud-webplus-node-demo cn-shanghai oss://webplus-prod-cn-shanghai/quickstart/node/first-step/webplus-node-demo-0.1.0.zip https://github.com/aliyun/alibabacloud-webplus-node-demo cn-hangzhou oss://webplus-prod-cn-hangzhou/quickstart/node/first-step/webplus-node-demo-0.1.0.zip http://tomcat.apache.org/res/images/tomcat.png 1553218065000 1553218065000 JSON 格式 { "Message":"success", "RequestId":"20A72DF0-F63D-4763-BBCA-1999AAA9693D", "Categories":{ "Category":[ { "CategoryId":"wca-5c937c98a9c0296d0c4823912", "DemoProjects":{ "DemoProject":[ { "SourceUrl":"https://github.com/aliyun/alibabacloud-webplus-tomcat-demo", "PackageUrl":"oss://webplus-prod-cn-shenzhen/quickstart/tomcat/first-step/webplus-tomcat-demo-0.1.1.war", "RegionId":"cn-shenzhen" }, { "SourceUrl":"https://github.com/aliyun/alibabacloud-webplus-tomcat-demo", "PackageUrl":"oss://webplus-prod-cn-zhangjiakou/quickstart/tomcat/first-step/webplus-tomcat-demo-0.1.1.war", "RegionId":"cn-zhangjiakou" }, { "SourceUrl":"https://github.com/aliyun/alibabacloud-webplus-tomcat-demo", "PackageUrl":"oss://webplus-prod-cn-beijing/quickstart/tomcat/first-step/webplus-tomcat-demo-0.1.1.war", "RegionId":"cn-beijing" }, { "SourceUrl":"https://github.com/aliyun/alibabacloud-webplus-tomcat-demo", "PackageUrl":"oss://webplus-prod-cn-shanghai/quickstart/tomcat/first-step/webplus-tomcat-demo-0.1.1.war", "RegionId":"cn-shanghai" }, { "SourceUrl":"https://github.com/aliyun/alibabacloud-webplus-tomcat-demo", "PackageUrl":"oss://webplus-prod-cn-hangzhou/quickstart/tomcat/first-step/webplus-tomcat-demo-0.1.1.war", "RegionId":"cn-hangzhou" } ] }, "CategoryLogo":"http://tomcat.apache.org/res/images/tomcat.png", "CreateTime":1553218065000, "UpdateTime":1553218065000, "CategoryName":"Tomcat", "CategoryDescription":"Use Tomcat as an application container, support for WAR or ZIP type application deployment packages." }, { "CategoryId":"wca-6c937c98a9c0296d0c4823912", "DemoProjects":{ "DemoProject":[ { "SourceUrl":"https://github.com/aliyun/alibabacloud-webplus-java-demo", "PackageUrl":"oss://webplus-prod-cn-shenzhen/quickstart/java/first-step/webplus-java-demo-0.1.1-exec.jar", "RegionId":"cn-shenzhen" }, { "SourceUrl":"https://github.com/aliyun/alibabacloud-webplus-java-demo", "PackageUrl":"oss://webplus-prod-cn-zhangjiakou/quickstart/java/first-step/webplus-java-demo-0.1.1-exec.jar", "RegionId":"cn-zhangjiakou" }, { "SourceUrl":"https://github.com/aliyun/alibabacloud-webplus-java-demo", "PackageUrl":"oss://webplus-prod-cn-beijing/quickstart/java/first-step/webplus-java-demo-0.1.1-exec.jar", "RegionId":"cn-beijing" }, { "SourceUrl":"https://github.com/aliyun/alibabacloud-webplus-java-demo", "PackageUrl":"oss://webplus-prod-cn-shanghai/quickstart/java/first-step/webplus-java-demo-0.1.1-exec.jar", "RegionId":"cn-shanghai" }, { "SourceUrl":"https://github.com/aliyun/alibabacloud-webplus-java-demo", "PackageUrl":"oss://webplus-prod-cn-hangzhou/quickstart/java/first-step/webplus-java-demo-0.1.1-exec.jar", "RegionId":"cn-hangzhou" } ] }, "CategoryLogo":"https://openjdk.java.net/images/duke-thinking.png", "CreateTime":1553218065000, "UpdateTime":1553218065000, "CategoryName":"Java", "CategoryDescription":"Direct startup using Java commands, support for FatJAR or ZIP type application deployment packages." }, { "CategoryId":"wca-7c937c98a9c0296d0c4823912", "DemoProjects":{ "DemoProject":[ { "SourceUrl":"https://github.com/aliyun/alibabacloud-webplus-node-demo", "PackageUrl":"oss://webplus-prod-cn-shenzhen/quickstart/node/first-step/webplus-node-demo-0.1.0.zip", "RegionId":"cn-shenzhen" }, { "SourceUrl":"https://github.com/aliyun/alibabacloud-webplus-node-demo", "PackageUrl":"oss://webplus-prod-cn-zhangjiakou/quickstart/node/first-step/webplus-node-demo-0.1.0.zip", "RegionId":"cn-zhangjiakou" }, { "SourceUrl":"https://github.com/aliyun/alibabacloud-webplus-node-demo", "PackageUrl":"oss://webplus-prod-cn-beijing/quickstart/node/first-step/webplus-node-demo-0.1.0.zip", "RegionId":"cn-beijing" }, { "SourceUrl":"https://github.com/aliyun/alibabacloud-webplus-node-demo", "PackageUrl":"oss://webplus-prod-cn-shanghai/quickstart/node/first-step/webplus-node-demo-0.1.0.zip", "RegionId":"cn-shanghai" }, { "SourceUrl":"https://github.com/aliyun/alibabacloud-webplus-node-demo", "PackageUrl":"oss://webplus-prod-cn-hangzhou/quickstart/node/first-step/webplus-node-demo-0.1.0.zip", "RegionId":"cn-hangzhou" } ] }, "CategoryLogo":"http://tomcat.apache.org/res/images/tomcat.png", "CreateTime":1553218065000, "UpdateTime":1553218065000, "CategoryName":"Node.js", "CategoryDescription":"The Node.js application supports ZIP-type application deployment packages." } ] }, "Code":"OK" } 错误码 访问错误中心查看更多错误码。 调用DescribeStacks查询技术栈。 调试 您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。 调试 请求头 该接口使用公共请求头,无特殊请求头。请参见公共请求参数文档。 请求语法 GET /pop/v1/wam/stack HTTP/1.1 请求参数 名称 类型 是否必选 示例值 描述 CategoryName String 否 Java 技术栈类型名称 PageNumber Integer 否 1 查询页面数 PageSize Integer 否 10 查询页面大小 RecommendedOnly Boolean 否 true 仅查询推荐的技术栈 返回数据 名称 类型 示例值 描述 PageNumber Integer 1 查询页面数量 Message String success 响应消息,若成功请求为success Code String OK 响应代码,若成功请求为OK PageSize Integer 10 查询页面大小 RequestId String E95B3D91-ED61-4715-AAD1-7E496A*****6 请求ID Stacks 技术栈查询结果列表 TotalCount Integer 1 查询结果总数 示例 请求示例 http://webplus.cn-hangzhou.aliyuncs.com/pop/v1/wam/stack?ServiceCode=webx&Category=Java&PageSize=10&PageNumber=1&RecommendedOnly=true&<公共请求参数> 正常返回示例 XML 格式 1 1 success 10 2581EA69-00C2-44F8-85DD-1F1 44D7 true Java true ws-6c937c98a9c 0c4823984 1553218065000 10 1553218065000 Java 8 / Aliyun Linux 2.1903 OK JSON 格式 { "PageNumber":1, "TotalCount":1, "Message":"success", "PageSize":10, "RequestId":"1EC2BF9F-20BA-4877-B9DC-89CA*****589", "Stacks":{ "Stack":[ { "LatestStack":true, "CategoryName":"Java", "RecommendedStack":true, "StackId":"ws-6c937c98a9*****d0c4823984", "CreateTime":1553218065000, "VersionCode":10, "UpdateTime":1553218065000, "StackName":"Java 8 / Aliyun Linux 2.1903" } ] }, "Code":"OK"
1934890530796658 2020-03-23 14:59:25 0 浏览量 回答数 0

问题

如何解决:无法解析的外部符号

严重性 代码 说明 项目 文件 行 禁止显示状态 错误 LNK2019 无法解析的外部符号 "void __cdecl AlibabaCloud::OSS::InitializeSdk(void)" (?Initialize...
游客sumrfuvt3zfra 2020-07-27 17:45:08 17 浏览量 回答数 1

回答

背景 ECI容器组实例创建过程中,大部分时间消耗在镜像下载阶段,为加速ECI容器组创建速度,ECI提供镜像缓存功能,用户事先将需要用到的镜像作为云盘快照缓存,在创建ECI容器组实例时基于快照创建,避免或减少镜像层下载,从而提升ECI容器组实例创建速度。经实测,基于dockerhub的flink镜像(386.26MB)创建Pod,普通创建eci过程中,镜像准备阶段需要耗费50s,使用镜像快照后镜像准备阶段仅需5s。因此在创建eci过程中,镜像准备阶段节省时间45s。具体的提升速度跟Pod使用的镜像个数,镜像大小和镜像仓库网络因素决定。 为方便kubernetes用户也可以使用到ECI的镜像缓存功能,因此以CRD的方式将ECI镜像缓存功能暴露给kubernetes用户。重点强调:ImageCache CRD在kubernetes集群中为Cluster级别的资源,类似于PV,被集群内所有namespace共享。 准备工作 验证您的kubernetes集群是否支持ImageCache: $ kubectl get crd/imagecaches.eci.alibabacloud.com NAME CREATED AT imagecaches.eci.alibabacloud.com 2019-09-27T01:15:07Z 输出以上信息,证明您的kubernetes集群已经支持ImageCache。 kubectl get crd/imagecaches.eci.alibabacloud.com Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "imagecaches.eci.alibabacloud.com" not found 输出以上信息,证明您的kubernetes集群不支持ImageCache,需要升级virtual-kubelet实现支持ImageCache。 virtual-kubelet升级方式: 阿里云 serverless kubernetes集群:由管理员统一负责升级 阿里云 托管 kubernetes集群:用户更新 阿里云 专有 kubernetes集群:用户更新 阿里云 自建 kubernetes集群:用户更新 准备工作完成后,您可以在您的kubernetes集群中,创建ImageCache资源,并且可以使用ImageCache创建Pod。 注:如果您的集群的ImageCache CRD不是最新的,不支持ImageCache CRD新增的参数,建议升级完virtual-kubelet后,执行如下命令: kubectl apply -f imagecache-crd-sample.yaml imagecache-crd-sample.yaml: apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: name: imagecaches.eci.alibabacloud.com spec: group: eci.alibabacloud.com version: v1 names: kind: ImageCache plural: imagecaches shortNames: - ic categories: - all scope: Cluster subresources: status: {} validation: openAPIV3Schema: required: - spec properties: spec: type: object required: - images properties: imagePullSecrets: type: array items: type: string images: minItems: 1 type: array items: type: string imageCacheSize: type: integer retentionDays: type: integer additionalPrinterColumns: - name: Age type: date JSONPath: .metadata.creationTimestamp - name: CacheId type: string JSONPath: .status.imageCacheId - name: Phase type: string JSONPath: .status.phase - name: Progress type: string JSONPath: .status.progress ImageCache基本操作 创建 CustomResourceDefinition 对象后,您可以操作ImageCache资源。 ImageCache全参数YAML文件: apiVersion: eci.alibabacloud.com/v1 kind: ImageCache metadata: name: imagecache-sample spec: images: - centos:latest - busybox:latest imagePullSecrets: - default:secret1 - default:secret2 - kube-system:secret3 imageCacheSize: 25 retentionDays: 7 参数说明: 名称 类型 必选 描述 spec.images []string Y 镜像列表 spec.imagePullSecrets []string N 镜像仓库对应的Secret列表, 格式:。如果images列表中有用户私有仓库镜像,需要用户为私有镜像仓库创建secret,然后根据namespace:secretName格式,设置此参数。如若images中均是共有镜像,不需要设置此参数 spec.imageCacheSize int N 镜像缓存使用的快照盘大小,默认为20GB,取值范围为:[20, 32768],单位为GB spec.retentionDays int N 镜像缓存保留的时间,取值范围[1,65536],默认永不过期。 创建ImageCache 创建ImageCahce: kubectl create -f imagecache-secrets-test.yaml apiVersion: eci.alibabacloud.com/v1 kind: ImageCache metadata: name: imagecache-sample-liu spec: images: - centos:latest - busybox:latest imagePullSecrets: - default:secret1 - default:secret2 - kube-system:secret3 imageCacheSize: 25 retentionDays: 7 查看ImageCache状态: liumihustdeMacBook-Pro:vk-debug liumihust$ kubectl get imagecache imagecache-sample-liu NAME AGE CACHEID PHASE PROGRESS imagecache-sample-liu 20h imc-2zeditzeoemfhqor4rf8 Ready 100% 查询ImageCache 获取Cluster下全部ImageCache列表: kubectl get imagecache imagecache-sample-liu -o yaml 查看ImageCache详情(包括属性、状态以及事件): $ kubectl get imagecache/imagecache-secrets-test -o yaml apiVersion: eci.alibabacloud.com/v1 kind: ImageCache metadata: creationTimestamp: "2019-10-24T13:40:56Z" generation: 1 name: imagecache-sample-liu resourceVersion: "212484735" selfLink: /apis/eci.alibabacloud.com/v1/imagecaches/imagecache-sample-liu uid: e83a1c53-f663-11e9-a0d4-fa13fc175b32 spec: imageCacheSize: 25 images: - busybox:latest - nginx status: events: - count: 1 eventTime: null firstTimestamp: "2019-10-24T13:41:40Z" involvedObject: {} lastTimestamp: "2019-10-24T13:41:40Z" message: Success pull image busybox:latest metadata: creationTimestamp: null name: busybox:latest reportingComponent: "" reportingInstance: "" source: component: kubelet host: eci type: Normal - count: 1 eventTime: null firstTimestamp: "2019-10-24T13:42:04Z" involvedObject: {} lastTimestamp: "2019-10-24T13:42:04Z" message: Success pull image nginx metadata: creationTimestamp: null name: nginx reportingComponent: "" reportingInstance: "" source: component: kubelet host: eci type: Normal - count: 1 eventTime: null firstTimestamp: "2019-10-24T13:42:06Z" involvedObject: {} lastTimestamp: "2019-10-24T13:42:06Z" message: Success pull image registry-vpc.cn-beijing.aliyuncs.com/acs/pause-amd64:3.0 metadata: creationTimestamp: null name: registry-vpc.cn-beijing.aliyuncs.com/acs/pause-amd64:3.0 reportingComponent: "" reportingInstance: "" source: component: kubelet host: eci type: Normal imageCacheId: imc-2zeditzeoemfhqor4rf8 expireDateTime: "2019-10-25T13:40:54Z" lastUpdatedTime: "2019-10-24T13:44:17Z" phase: Ready progress: 100% startTime: "2019-10-24T13:40:58Z" ImageCache快速创建Pod ImageCache资源是Cluster级别的,所以在不同的namespace下创建Pod都可以使用ImageCache实现创建Pod。 使用ImageCache快速创建Pod有两种使用方式: 明确指定方式:在创建pod时,明确的指定使用哪个ImageCacheId创建Pod 自动匹配方式:在创建Pod时,根据匹配策略自动选择最优的ImageCache创建Pod 明确指定方式 这种使用方式,有一个前提条件就是ImageCache状态必须为Ready状态,其他状态的ImageCache会导致Pod创建失败。 Deployment使用方式: 在PodTemplate增加Annotation关联ImageCache: apiVersion: apps/v1 kind: Deployment metadata: name: nginx-deployment labels: app: nginx spec: replicas: 2 selector: matchLabels: app: nginx template: metadata: labels: app: nginx annotations: k8s.aliyun.com/eci-image-snapshot-id: imc-2ze5tm5gehgtiigaz5jh spec: nodeName: virtual-kubelet containers: - name: nginx image: nginx:1.7.9 imagePullPolicy: IfNotPresent Pod使用方式: 在Pod的Yaml文件中增加Annotation关联ImageCache: apiVersion: v1 kind: Pod metadata: annotations: k8s.aliyun.com/eci-image-snapshot-id: imc-2ze5tm5gehgtiigaz5jh name: nginx-imagecache-id spec: containers: - image: nginx:1.7.9 imagePullPolicy: IfNotPresent name: nginx resources: limits: cpu: 300m memory: 200Mi requests: cpu: 200m memory: 100Mi nodeName: virtual-kubelet 自动匹配方式 在创建Pod时,用户通过Annotation方式,声明使用自动匹配ImageCache方式快速创建Pod,ECI管控基于用户已有的ImageCache列表依据策略进行匹配,匹配出最优的ImageCache创建Pod。如果没有匹配到合适的ImageCache,执行正常下载镜像创建Pod流程。 目前匹配策略的优先级从高到底: 镜像匹配度 匹配的镜像大小 创建时间 Deployment使用方式: 在PodTemplate增加Annotation关联ImageCache,告知ECI管控在创建Pod时是否启用自动匹配ImageCache: apiVersion: apps/v1 kind: Deployment metadata: name: nginx-deployment labels: app: nginx spec: replicas: 2 selector: matchLabels: app: nginx template: metadata: labels: app: nginx annotations: k8s.aliyun.com/eci-image-cache: "true" spec: nodeName: virtual-kubelet containers: - name: nginx image: nginx:1.7.9 imagePullPolicy: IfNotPresent Pod使用方式: 基于Annotation方式,在Pod的Yaml文件中增加Annotation: apiVersion: v1 kind: Pod metadata: annotations: k8s.aliyun.com/eci-image-cache: "true" name: nginx-auto-match spec: containers: - image: nginx:1.7.9 imagePullPolicy: IfNotPresent name: nginx resources: limits: cpu: 300m memory: 200Mi requests: cpu: 200m memory: 100Mi nodeName: virtual-kubelet 使用建议 Pod中容器的image建议采用ImageCache中镜像,提高匹配度。 Pod中容器的ImagePullPolicy建议设置为IfNotPresent,避免镜像层重复下载。 Tip: 在创建Pod时,k8s.aliyun.com/eci-image-snapshot-id和k8s.aliyun.com/eci-image-cache同时设置时,明确指定方式优先级高于自动匹配方式 注:如果是deployment,使用cache的Annotation应该放在pod级别,而不是放在deployment级别,否则会设置失效。 删除ImageCache 删除ImageCache时,不影响基于ImageCache创建成功的Pod实例。 操作如下: $ kubectl get imagecache/imagecache-secrets-test NAME AGE CACHEID PHASE PROGRESS imagecache-secrets-test 14h imc-2ze5tm5gehgtjru0kfm8 Ready 100% $ kubectl delete imagecache/imagecache-secrets-test imagecache.eci.alibabacloud.com " imagecache-secrets-test" deleted $ kubectl get imagecache/ imagecache-secrets-test Error from server (NotFound): imagecaches.eci.alibabacloud.com " imagecache-secrets-test" not found kubernetes ImageCache API文档 Group Version Kind eci.alibabacloud.com v1 ImageCache ImageCache v1 eci.alibabacloud.com ImageCacheList: Field Type Description apiVersion string api版本: eci.alibabacloud.com/v1 kind string 资源类别: ImageCacheList metadata ListMeta Standard list metadata. Items []ImageCache 镜像缓存列表 ImageCache: Field Type Description apiVersion string api版本: eci.alibabacloud.com/v1 kind string 资源类别: ImageCache metadata ObjectMeta spec ImageCacheSpec 镜像缓存详细信息 status ImageCacheStatus 镜像缓存状态信息 ImageCacheSpec: Field Type Request Description images []string Y 镜像缓存的镜像列表 imagePullSecrets []string N 私有镜像仓库对应的Secret列表,格式:namespace:secretName imageCacheSize int N 镜像缓存的大小,默认为20GB,取值范围为:[20, 32768],单位为GB retentionDays int N 镜像缓存保留的时间,取值范围[1,65536],默认永不过期。 ImageCacheStatus: Field Type Description phase string 镜像缓存状态 progress string 标示制作过程中进度 imageCacheId string 镜像缓存ID,调用Provdier的Create操作返回,然后更新到ImageCache对象 startTime Time 镜像缓存对象创建时间 lastUpdatedTime Time 镜像缓存最后更新时间 events []Event 制作镜像cache过程中的事件信息 expireDateTime Time 镜像缓存的过期时间,有两种来源:1、用户设置了retentionDays;2、制作失败的镜像缓存自动在24小时后过期。 CreateImageCache 创建镜像缓存对象 Http Request POST /apis/eci.alibabacloud.com/v1/imagecaches curl request example curl -X POST -H 'Content-Type: application/yaml' --data ' apiVersion: eci.alibabacloud.com/v1 kind: ImageCache metadata: name: imagecache-secrets-test spec: images: - registry.cn-shanghai.aliyuncs.com/baz/nginx:1.0 imagePullSecrets: - default:acr-test ' http://127.0.0.1:8001/apis/eci.alibabacloud.com/v1/imagecaches curl response example { "apiVersion": "eci.alibabacloud.com/v1", "kind": "ImageCache", "metadata": { "creationTimestamp": "2019-10-10T03:50:47Z", "generation": 1, "name": "imagecache-secrets-test", "resourceVersion": "647052328", "selfLink": "/apis/eci.alibabacloud.com/v1/imagecaches/imagecache-secrets-test11", "uid": "2506ba37-eb11-11e9-9576-f2ef49bf1a08" }, "spec": { "imagePullSecrets": [ "default:acr-test" ], "images": [ "registry.cn-shanghai.aliyuncs.com/baz/nginx:1.0" ] } } ListImageCache 获取镜像缓存列表 Http Request GET /apis/eci.alibabacloud.com/v1/imagecaches curl request example curl -X GET 'http://127.0.0.1:8001/apis/eci.alibabacloud.com/v1/imagecaches' curl response example { "apiVersion": "eci.alibabacloud.com/v1", "items": [ { "apiVersion": "eci.alibabacloud.com/v1", "kind": "ImageCache", "metadata": { "annotations": { "kubectl.kubernetes.io/last-applied-configuration": "{"apiVersion":"eci.alibabacloud.com/v1","kind":"ImageCache","metadata":{"annotations":{},"name":"imagecache-secrets-test"},"spec":{"imagePullSecrets":["default:acr-test"],"images":["registry.cn-shanghai.aliyuncs.com/baz/nginx:1.0"]}}\n" }, "creationTimestamp": "2019-10-10T01:43:48Z", "generation": 1, "name": "imagecache-secrets-test", "resourceVersion": "646375979", "selfLink": "/apis/eci.alibabacloud.com/v1/imagecaches/imagecache-secrets-test", "uid": "67460461-eaff-11e9-9774-b2c06862f69a" }, "spec": { "imagePullSecrets": [ "default:acr-test" ], "images": [ "registry.cn-shanghai.aliyuncs.com/baz/nginx:1.0" ] }, "status": { "imageCacheId": "imc-2ze5xnx4yiply807zo0o", "lastUpdatedTime": "2019-10-10T01:47:14Z", "phase": "Ready", "progress": "100%", "startTime": "2019-10-10T01:43:49Z" } } ], "kind": "ImageCacheList", "metadata": { "continue": "", "resourceVersion": "647062964", "selfLink": "/apis/eci.alibabacloud.com/v1/imagecaches" } } GetImageCache 获取某一个镜像缓存的相信信息 Http Request GET /apis/eci.alibabacloud.com/v1/imagecaches/{name} curl request example curl -X GET 'http://127.0.0.1:8001/apis/eci.alibabacloud.com/v1/imagecaches/imagecache-secrets-test' curl response example { "apiVersion": "eci.alibabacloud.com/v1", "kind": "ImageCache", "metadata": { "annotations": { "kubectl.kubernetes.io/last-applied-configuration": "{"apiVersion":"eci.alibabacloud.com/v1","kind":"ImageCache","metadata":{"annotations":{},"name":"imagecache-secrets-test"},"spec":{"imagePullSecrets":["default:acr-test"],"images":["registry.cn-shanghai.aliyuncs.com/baz/nginx:1.0"]}}\n" }, "creationTimestamp": "2019-10-10T01:43:48Z", "generation": 1, "name": "imagecache-secrets-test", "resourceVersion": "646375979", "selfLink": "/apis/eci.alibabacloud.com/v1/imagecaches/imagecache-secrets-test", "uid": "67460461-eaff-11e9-9774-b2c06862f69a" }, "spec": { "imagePullSecrets": [ "default:acr-test" ], "images": [ "registry.cn-shanghai.aliyuncs.com/baz/nginx:1.0" ] }, "status": { "imageCacheId": "imc-2ze5xnx4yiply807zo0o", "lastUpdatedTime": "2019-10-10T01:47:14Z", "phase": "Ready", "progress": "100%", "startTime": "2019-10-10T01:43:49Z" } } DeleteImageCache 删除指定镜像缓存 Http Request DELETE /apis/eci.alibabacloud.com/v1/imagecaches/{name} curl request example curl -X DELETE -H 'Content-Type: application/yaml' 'http://127.0.0.1:8001/apis/eci.alibabacloud.com/v1/imagecaches/imagecache-secrets-test' curl response example "kind": "Status", "apiVersion": "v1", "metadata": {}, "status": "Success", "details": { "name": "imagecache-secrets-test", "group": "eci.alibabacloud.com", "kind": "imagecaches", "uid": "67460461-eaff-11e9-9774-b2c06862f69a" } }
1934890530796658 2020-03-20 20:49:21 0 浏览量 回答数 0

回答

可以参考导入镜像检测及导入镜像必读文档,应该可以帮你进一步排查问题镜像规范检测工具https://www.alibabacloud.com/help/zh/doc-detail/73848.htm?spm=a2c63.p38356.b99.137.3dd449f4FtRrsI导入镜像必读https://www.alibabacloud.com/help/zh/doc-detail/48226.htm?spm=a2c63.p38356.b99.138.65b6e85eDlk4ds
davidaks 2019-12-02 01:44:02 0 浏览量 回答数 0

问题

Mac 安装oss c++ sdk报错

Mac 安装oss c++ sdk报错, "_EVP_MD_CTX_free", referenced from: AlibabaCloud::OSS::ComputeContentMD5 安装命令&#x...
游客fxjczhuzerunw 2019-12-26 20:34:06 58 浏览量 回答数 1

回答

本文主要为您介绍如何部署联邦集群。 前提条件 您已经成功创建两个 Kubernetes 集群,参见创建 Kubernetes 集群。 您已了解如何通过kubectl连接Kubernetes集群。 您已经安装 kubefedctl 工具,且 kubefedctl 工具的版本与联邦服务版本相配套。 操作步骤 部署联邦服务 operator。 登录容器服务管理控制台。 在 Kubernetes 菜单下,选择市场 > 应用目录,在右侧单击 ack-kubefed-init。 在应用目录 -ack-kubefed-init 中,单击参数,使用默认参数值进行部署,如下所示。 修改参数 在右侧的创建区域,设置集群为 federation 主集群 ,本示例中为cluster1,同时可以看到命名空间已设定为 kube-federation-system,发布名称已设定为 kubefed-operator,然后单击创建。 几秒钟后,在弹出 Helm 发布列表 - ack-kubefed-init 页面,您可以看到在集群中创建的联邦服务。发布 部署联邦环境。 上述部署 ack-kubefed-init 之后,就可以通过 kubefed-operator 来管理联邦集群的部署了。 准备部署联邦环境所需要的资源。 apiVersion: kubefed.alibabacloud.com/v1beta1 kind: Kubefed metadata: finalizers: - kubefed-operator.finializer.alibabacloud.com labels: controller-tools.k8s.io: "1.0" name: kubefed-config namespace: kube-federation-system spec: hub: registry.cn-hangzhou.aliyuncs.com/aliacs-app-catalog imagePullPolicy: IfNotPresent kubefed: replicaCount: 2 logging: level: default:info scope: Cluster version: v0.1.0-rc6 说明 Scope: 控制平面操作范围。 Version:指定部署 kubefed 的版本。 创建部署联邦环境所需要的资源。 kubectl create -f kubefed-config.yaml 验证联邦环境所是否部署完成。 kubectl describe kubefeds kubefed-config -n kube-federation-system Name: kubefed-config Namespace: kube-federation-system Labels: controller-tools.k8s.io=1.0 Annotations: <none> API Version: kubefed.alibabacloud.com/v1beta1 Kind: Kubefed Metadata: Creation Timestamp: 2019-09-04T08:56:06Z Finalizers: kubefed-operator.finializer.alibabacloud.com Generation: 1 Resource Version: 48747611 Self Link: /apis/kubefed.alibabacloud.com/v1beta1/namespaces/kube-federation-system/kubefeds/kubefed-config UID: d4f26fff-cef1-11e9-b9f4-bec634a5**** Spec: Hub: registry.cn-hangzhou.aliyuncs.com/aliacs-app-catalog Image Pull Policy: IfNotPresent Kubefed: Replica Count: 2 Logging: Level: default:info Scope: Cluster Version: v0.1.0-rc6 Status: Error Message: Status: Available Events: <none> 当 Statue 状态为 Available 时,表示当前的联邦环境完成部署,此时您可以开始组建联邦集群。关于联邦环境更多的状态说明如下: Statue状态 说明 Create 初始化阶段 Reconciling 部署过程中 ReconcileFailed 部署失败标示 Available 部署完成标示
1934890530796658 2020-03-26 15:39:07 0 浏览量 回答数 0

回答

楼主您好, 从这两个页面的介绍来看,实例的性能与规格有关,如t5的突发规格,与CPU的积分有关: https://www.alibabacloud.com/help/zh/doc-detail/59977.htm 这里提到:“企业级实例具有性能稳定且资源独享的特点,在企业级实例中,每一个vCPU都对应一个Intel Xeon处理器核心的超线程。” vCPU应该指的是线程(逻辑核数?) 请参考: https://www.alibabacloud.com/help/zh/doc-detail/25378.htm
dongshan8 2019-12-02 00:16:13 0 浏览量 回答数 0

问题

将SDK安装到Nodejs项目所在目录,执行代码遇到错误

在windows命令行执行: npm install alibabacloud-iot-device-sdk --save 之后遇到错误停止进程了。 命令行错误截图 遇到的错误在日志之中显示: 95 v...
IT_TI 2020-03-28 00:07:54 66 浏览量 回答数 2

问题

刚搞了个新后缀

alibabacloud.space 阿里巴巴云空间   各位大佬给点意见...
财神卖米 2019-12-01 21:20:59 1934 浏览量 回答数 2

回答

https://www.alibabacloud.com/help/zh/doc-detail/128615.htm
悟道之客 2021-01-16 11:08:48 0 浏览量 回答数 0

回答

https://www.alibabacloud.com/help/zh/doc-detail/86458.htm
1812544960459284 2020-06-05 11:37:48 0 浏览量 回答数 0

回答

可以访问阿里云国际站https://www.alibabacloud.com/zh/why-alibaba-cloud
假如2018 2019-12-02 00:24:54 0 浏览量 回答数 0

回答

可以参考哦~ https://www.alibabacloud.com/help/tc/doc-detail/52895.htm
问问小秘 2020-06-24 20:42:13 0 浏览量 回答数 0

回答

建议参考: https://www.alibabacloud.com/help/zh/doc-detail/58932.htm
问问小秘 2019-12-02 03:00:07 0 浏览量 回答数 0

回答

请参考:https://www.alibabacloud.com/help/zh/doc-detail/25439.htm这里重置服务器密码。
helloworld0001 2019-12-02 01:51:43 0 浏览量 回答数 0

回答

建议直接询问官网的售前 传送门:https://www.alibabacloud.com/tc/product/apsaravideo-for-live
问问小秘 2020-04-30 13:27:25 0 浏览量 回答数 0

回答

参考文档,https://www.alibabacloud.com/help/zh/doc-detail/28861.htm
huc_逆天 2020-03-25 16:06:43 0 浏览量 回答数 0

回答

题主您好,可以参考这个文档操作:https://www.alibabacloud.com/help/zh/doc-detail/25436.htm
dongshan8 2019-12-02 00:15:33 0 浏览量 回答数 0

回答

题主您好,FileZilla Client 应该也有Mac OS版本:https://www.alibabacloud.com/help/zh/doc-detail/53995.htm
dongshan8 2019-12-02 00:30:25 0 浏览量 回答数 0

云产品推荐

上海奇点人才服务相关的云产品 小程序定制 上海微企信息技术相关的云产品 国内短信套餐包 ECS云服务器安全配置相关的云产品 开发者问答 阿里云建站 自然场景识别相关的云产品 万网 小程序开发制作 视频内容分析 视频集锦 代理记账服务 阿里云AIoT