Once you have a working cluster, edit the environment variables and volume sizes in
You may also want to change the service types to use
LoadBalancers depending on where you're running your cluster (add
type: LoadBalancer to
By default they will use
ClusterIPs, which will allow access only within the cluster. See the docs for more on networking in Kubernetes.
Important Running a database in Kubernetes will work, but is generally not recommended. If you're deploying on any of the common cloud providers, you should consider using their managed database service instead (RDS, Cloud SQL, Azure Databse, etc.).
Now you can deploy:
# Add `-n foo` if you want to deploy into a specific namespace `foo`; # otherwise your resources will be created in the `default` namespace. kubectl apply -f docker/k8s/db.yml kubectl apply -f docker/k8s/pictshare.yml kubectl apply -f docker/k8s/lemmy.yml
If you used a
LoadBalancer, you should see it in your cloud provider's console.