How to deploy a application using StatefulSets
| File | Content |
|---|---|
| azure-PersistentVolumeClaim-secret.yml | Creates a Kubernetes secret which holds both the account name and key for Microsoft Azure storage account. (sensitive data was removed) |
| azure-PersistentVolumeClaim.yml | Mount the Azure File Storage using a Persistent Volume and a Persistent Volume Claim. |
| azure-PersistentVolumeClaim-claim.yml | Persistent Volume Claim. |
| azure-PersistentVolumeClaim-pod.yml | Create a stateful set of pods with persistent volume claims. |
| basic-ingress.yaml | Ingress resources map |
| service.yaml | Service exposing Nginx test server |
| helloworld.sh | Deploys and exposes a extra Nginx test server on TCP/8080 |
Create the secret
$ kubectl -f azure-PersistentVolumeClaim-secret.ymlPersistent Volume using azureFile
$ kubectl -f azure-PersistentVolumeClaim.ymlPersistent Volume Claim matching the Volume
$ kubectl -f azure-PersistentVolumeClaim-claim.ymlCreate a stateful set of pods with persistent volume claims
$ kubectl -f azure-PersistentVolumeClaim-pod.ymlKubernetes ingress is a collection of routing rules that govern how external users access services running in a Kubernetes cluster.
| File | Content |
|---|---|
| mandatory.yaml | Resources for complete Nginx Ingress Controller deployment. |
| service-nodeport.yaml | Creating a Kubernetes service of type NodePort |
| nginx-ingress-version.sh | To detect which version of the ingress controller is running, exec into the pod and run nginx-ingress-controller version command. |
Creates Kubernetes Ingress resources for a generic deployment
$ kubectl -f mandatory.yamlCreates a service of type NodePort and connect itself to Ingress
$ kubectl -f service-nodeport.yamlShows the version of Nginx Ingress running on the Pods
$ kubectl -f nginx-ingress-version.shhttp://hellotravix.kubetest.cf:30936/
http://helloworld.kubetest.cf:30936/
http://40.87.6.237:30936 (default backend 404)