A simple deployment will be very simple using kubectl:

Kubectl Reference Docs
kubectl create deployment nginx --image=nginx --replicas=2
kubectl expose deployment nginx --port=80 --type=NodePort

The service will work on node port

kubectl get svc -o wide
NAME         TYPE        CLUSTER-IP     EXTERNAL-IP   PORT(S)        AGE   SELECTOR
kubernetes   ClusterIP   10.96.0.1              443/TCP        21h   
nginx        NodePort    10.103.94.71           80:30355/TCP   13s   app=nginx

Access your nginx:

https://192.168.126.145:30355/

Bash completion

yum install -y bash-completion

source /usr/share/bash-completion/bash_completion
echo "source <(kubectl completion bash)" >> ~/.bashrc
source  ~/.bashrc

With yaml:

to be continued...