Improved Kubernetes cluster documentation

This commit is contained in:
Timo Geier
2021-06-10 11:13:55 +02:00
parent 350d47b120
commit 3a1c789fcf
3 changed files with 92 additions and 3 deletions

View File

@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
name: nginx-service
namespace: web-test
spec:
type: NodePort
selector:
app: nginx-deployment
ports:
# By default and for convenience, the `targetPort` is set to the same value as the `port` field.
- port: 80
targetPort: 80
# Optional field
# By default and for convenience, the Kubernetes control plane will allocate a port from a range (default: 30000-32767)
nodePort: 30007