apiVersion: v1beta3
kind: Pod
Metadata:
name: MysqL
labels:
name: MysqL
spec:
containers:
- resources:
limits :
cpu: 1
image: MysqL
name: MysqL
env:
- name: MysqL_ROOT_PASSWORD
# change this
value: yourpassword
ports:
- containerPort: 3306
name: MysqL
运行kubectl create -f MysqL.yaml会给出错误:
Error from server: error when creating "MysqL.yaml": Pod "Unknown" is forbidden: no API token found for service account default/default,retry after the token is automatically created and added to the service account
我有一个主机和一个节点,都是centos 7.1.