People who code: we want your input. Take the Survey
2

Did you try by specifying a storageClassName since Kubernetes will be using default storage class when it's not specified? See Dynamic Provisioning of the blog post and Dynamic from Kubernetes documentation? Or try with by removing the default storageclass in the cluster to explicitly use given PV and PVC configuration.


2

This one from medium should be fine for your purposes: https://medium.com/@ychetankumarsarma/how-to-manage-angular-application-configurations-for-different-environments-with-docker-and-8ff8c55a1c7d. It is good because: It shows a test / development scenario. It notes that it is a good / accepted technique to use environment variables to drive config. It ...


2

Yes, the PersistentVolumeClaim is the workhorse here. You can evict pods, delete deployments, etc., to your heart's content and so long as you don't delete the PVC, your data will be there. You don't need to use StatefulSet for this. From the docs: Unlike a Deployment, a StatefulSet maintains a sticky identity for each of their Pods. These pods are ...


2

You can't configure your Ingress to serve static data (from your host files for example) alone because the Ingress resource is just a way to configure a way of understanding for Kubernetes on how to access a specific internal resource from outside the cluster. An API object that manages external access to the services in a cluster, typically HTTP. Ingress ...


1

Maybe storage classes? kubectl get sc?


1

Well of course its always the same - as soon as you actually do ask for help you figure it out... resource "kubernetes_persistent_volume" "nodeconfig" { metadata { name = "nodeconfig" labels = { a = "a" } } spec { capacity = { storage = "25Gi" } storage_class_name = "nodeconfig" ...


1

A storage solution for kubernetes is a pain for those of us who chose to run kubernetes on premises. What storage solution one picks would certainly depend on potential usage, a solution that will perform well for simple file operations would not pan out very well if you want to run a database in kubernetes. Given your configuration, I think "vSphere Cloud ...


Only top voted, non community-wiki answers of a minimum length are eligible