Add service
This commit is contained in:
parent
0599c2c51e
commit
0b2830c2ec
@ -6,11 +6,11 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: documentation-site
|
app: static-site
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: documentation-site
|
app: static-site
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: documentation-site
|
- name: documentation-site
|
||||||
|
14
cluster/static-site-hosts/static-site-hosts-services.yaml
Normal file
14
cluster/static-site-hosts/static-site-hosts-services.yaml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: static-site-services
|
||||||
|
namespace: default
|
||||||
|
spec:
|
||||||
|
type: LoadBalancer
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
targetPort: 80
|
||||||
|
protocol: TCP
|
||||||
|
selector:
|
||||||
|
app: static-site
|
||||||
|
|
Loading…
Reference in New Issue
Block a user