namespaces #3
4 changed files with 11 additions and 0 deletions
|
@ -3,6 +3,7 @@ apiVersion: apps/v1
|
|||
kind: Deployment
|
||||
metadata:
|
||||
name: beer-deployment
|
||||
namespace: beer
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
|
|
|
@ -3,6 +3,7 @@ apiVersion: networking.k8s.io/v1beta1
|
|||
kind: Ingress
|
||||
metadata:
|
||||
name: beer-ingress
|
||||
namespace: beer
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/rewrite-target: /
|
||||
spec:
|
||||
|
|
8
kube/beer-namespace.yaml
Normal file
8
kube/beer-namespace.yaml
Normal file
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: beer
|
||||
labels:
|
||||
name: beer
|
||||
|
|
@ -3,6 +3,7 @@ apiVersion: v1
|
|||
kind: Service
|
||||
metadata:
|
||||
name: beer
|
||||
namespace: beer
|
||||
spec:
|
||||
selector:
|
||||
app: beer
|
||||
|
|
Loading…
Reference in a new issue