Skip to content

rootshell2/kubernetes-resources

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Kubernetes Deployments

Deploy a stateful application

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.yml

Persistent Volume using azureFile

$ kubectl -f azure-PersistentVolumeClaim.yml

Persistent Volume Claim matching the Volume

$ kubectl -f azure-PersistentVolumeClaim-claim.yml

Create a stateful set of pods with persistent volume claims

$ kubectl -f azure-PersistentVolumeClaim-pod.yml

NGINX Ingress Controller.

Kubernetes 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.yaml

Creates a service of type NodePort and connect itself to Ingress

$ kubectl -f service-nodeport.yaml

Shows the version of Nginx Ingress running on the Pods

$ kubectl -f nginx-ingress-version.sh

http://hellotravix.kubetest.cf:30936/

http://helloworld.kubetest.cf:30936/

http://40.87.6.237:30936 (default backend 404)

About

Deploy a stateful application and NGINX Ingress Controller.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages