I'm trying to deploy a docker image (https://hub.docker.com/r/digitorus/eramba-db) to Kubernetes. My workflow is using docker pull digitorus/eramba-db to pull the image and using the below .yaml file to deploy to a separate namespace (eramba-1)
apiVersion: apps/v1
kind: Deployment
metadata:
name: eramba
namespace: eramba-1
labels:
app: eramba
spec:
replicas: 1
selector:
matchLabels:
app: eramba
template:
metadata:
labels:
app: eramba
spec:
containers:
- name: eramba
image: docker.io/digitorus/eramba:latest
ports:
- containerPort: 80
The master node has a status of (notReady) and the pod is pending.
Update - I had to change this question back to the original question for Stackoverflow's one post one question rule.
CodePudding user response:
Taints: node.kubernetes.io/not-ready:NoSchedule
...
Namespace Name
--------- ----
kube-system etcd-osboxes
kube-system kube-apiserver-osboxes
kube-system kube-controller-manager-osboxes
kube-system kube-proxy-hhgwr
kube-system kube-scheduler-osboxes
...
After you ran kubeadm that installed core k8s components, your cluster needs to have network plugin installed and functioning so your node can be ready for workload deployment. Then you can remove the "master" taint kubectl taint nodes --all node-role.kubernetes.io/master- so that pod can be deploy on this single node.
