检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
基本概念 账号 用户注册时的账号,账号对其所拥有的资源及云服务具有完全的访问权限,可以重置用户密码、分配用户权限等。由于账号是付费主体,为了确保账号安全,建议您不要直接使用账号进行日常管理工作,而是创建用户并使用用户进行日常管理工作。 用户 由账号在IAM中创建的用户,是云服务的
gmap-example这个配置项中configmap_key的值configmap_value导入为环境变量key1的值,导入后容器中将会存在一个名为key1的环境变量,其值为configmap_value。 密钥导入:将密钥中所有键值都导入为环境变量。 密钥键值导入:将密钥中
REPLICAS AGE hpa-example Deployment/hpa-example 24%/50% 1 10 1 17m hpa-example Deployment/hpa-example 100%/50%
获取账号ID 在调用接口的时候,部分URL中需要填入账号ID(domain-id),所以需要先在管理控制台上获取到账号ID。账号ID获取步骤如下: 注册并登录管理控制台。 单击用户名,在下拉列表中单击“我的凭证”。 在“API凭证”页面的项目列表中查看账号ID。 图1 获取账号ID 父主题:
设置容器生命周期 操作场景 CCE提供了回调函数,在容器的生命周期的特定阶段执行调用,比如容器在停止前希望执行某项操作,就可以注册相应的钩子函数。 目前提供的生命周期回调函数如下所示: 启动命令:容器将会以该启动命令启动,请参见启动命令。 启动后处理:容器启动后触发,请参见启动后处理。
"image" : { "magento_image" : "example.com/demo/magento:latest", "mysql_image" : "example.com/demo/mysql:5.7.14" } } } SDK代码示例
并行文件系统为例。 新建一个pv的yaml文件,如pv-example.yaml。 apiVersion: v1 kind: PersistentVolume metadata: name: pv-obs-example annotations: pv.kubernetes
// In this example, AK and SK are stored in environment variables for authentication. Before running this example, set environment variables
// In this example, AK and SK are stored in environment variables for authentication. Before running this example, set environment variables
\"namespace\":\"default\"},\"image\":{\"magento_image\":\"example.com/everest/magento:latest\",\"mysql_image\":\"example.com/everest/mysql:5.7.14\"}}", "version"
// In this example, AK and SK are stored in environment variables for authentication. Before running this example, set environment variables
// In this example, AK and SK are stored in environment variables for authentication. Before running this example, set environment variables
// In this example, AK and SK are stored in environment variables for authentication. Before running this example, set environment variables
// In this example, AK and SK are stored in environment variables for authentication. Before running this example, set environment variables
\"namespace\":\"default\"},\"image\":{\"magento_image\":\"example.com/everest/magento:latest\",\"mysql_image\":\"example.com/everest/mysql:5.7.14\"}}", "version"
"previous": null, "self": "https://www.example.com/v3/projects/a4a5d4098fb4474fa22cd05f897d6b99" },
// In this example, AK and SK are stored in environment variables for authentication. Before running this example, set environment variables
// In this example, AK and SK are stored in environment variables for authentication. Before running this example, set environment variables
// In this example, AK and SK are stored in environment variables for authentication. Before running this example, set environment variables
\"namespace\":\"default\"},\"image\":{\"magento_image\":\"example.com/everest/magento:latest\",\"mysql_image\":\"example.com/everest/mysql:5.7.14\"}}", "version"