k8s开发基础-container元数据
container元数据:以Mysql的容器为例{'args': None,'command': None,'env': [{'name': 'MYSQL_USER', 'value': 'longway'},{'name': 'MYSQL_PASSWORD', 'value': '123456'},{'name': 'MYSQL_ROOT_PASSWORD', 'value': 'abcde'}
container元数据:以Mysql的容器为例
{'args': None,
'command': None,
'env': [{'name': 'MYSQL_USER', 'value': 'longway'},
{'name': 'MYSQL_PASSWORD', 'value': '123456'},
{'name': 'MYSQL_ROOT_PASSWORD', 'value': 'abcde'},
{'name': 'MYSQL_DATABASE', 'value': 'testdb'}],
'env_from': None,
'image': 'mysql:latest',
'image_pull_policy': None,
'lifecycle': None,
'liveness_probe': None,
'name': 'mysql',
'ports': [{'container_port': '3306',
'host_ip': '192.168.56.102',
'host_port': '3310',
'name': None,
'protocol': None}],
'readiness_probe': None,
'resources': {'limits': {'cpu': '500m', 'memory': '1Gi'},
'requests': {'cpu': '450m', 'memory': '900Mi'}},
'security_context': None,
'startup_probe': None,
'stdin': None,
'stdin_once': None,
'termination_message_path': None,
'termination_message_policy': None,
'tty': None,
'volume_devices': None,
'volume_mounts': None,
'working_dir': None}
更多推荐
所有评论(0)