for i in range(0,len(l_str)):
if l_str[i] in Filter:
l_str[i] = ""
j_str = " ".join(l_str)
j_str = j_str.split()
if ("create" in j_str or "deploy" in j_str or "launch" in j_str or "make" in j_str) and len(j_str)<4:
command = "kubectl create deployment " + j_str[1] + " --image=httpd --kubeconfig admin.conf"
elif ("create" in j_str or "deploy" in j_str or "launch" in j_str) and (len(j_str)<5 and "id" in j_str):
command = "kubectl create deployment " + j_str[1] + " --image=" + j_str[3] + " --kubeconfig admin.conf"
elif ("get" in j_str or "show" in j_str) and len(j_str)<2:
command = "kubectl get pods --kubeconfig admin.conf"
elif "cluster" in j_str or "cluster's" in j_str or "cluster-info" in j_str or "info" in j_str or "details" in j_str:
command = "kubectl cluster-info --kubeconfig admin.conf"
elif ("replicas" in j_str or "replica" in j_str or "copies" in j_str or "copy" in j_str) and len(j_str)>3:
command = "kubectl scale deployment " + j_str[3] + " --replicas=" + j_str[1] + " --kubeconfig admin.conf"