<p>I'm trying to dockerize an multilayered .NET API project then deploy it and SQL Server to Kubernetes. After I have created k8s folder for .yaml files, I encounter a problem.</p>
<p>I have files like this :</p>
<p><img src="https://i.stack.imgur.com/2PI5y.png" alt="enter image description here" /></p>
<p>And even though I've written same commands for every .yaml files in k8s folder, when I write <code>kubectl get services</code> , I can see only two files which are <strong>dotnetapp-mssql-cluster-ip-service</strong> and <strong>dotnetapp-server-cluster-ip-service</strong> .
<img src="https://i.stack.imgur.com/XdqYZ.png" alt="enter image description here" /></p>
<p>When I try to <code>kubectl create</code> or <code>kubectl apply</code> for other files that I can't see on the services list, it says <strong>unchanged</strong> .
<img src="https://i.stack.imgur.com/ZRHcX.png" alt="enter image description here" /></p>
<p>How can I see all my files when I write <code>kubectl get services</code> ?</p>

Ecem Ozturk
<p>It seems like you have created a PVC, 2 services, 2 deployments, and an ingress? Based on you re-running <code>kubectl apply -f WebAPI/k8s/ingress-service.yaml</code> and Kubernetes telling you that <code>ingress.networking.k8s.io/dotnetapp</code> is unchanged.</p>
<p>Try run <code>kubectl get ingress</code>. Also remember that resources are not named after the files, but the property <code>name</code> set in <code>metadata</code> within each resource. So you should see an <code>ingress</code> called <code>dotnetapp</code> when running that commands.</p>
<p>Otherwise it seems you can see your other 2 services as expected using <code>kubectl get services</code>?</p>
