two services
This commit is contained in:
parent
00a86fb02b
commit
bc8bf07e77
1 changed files with 28 additions and 28 deletions
|
|
@ -45,32 +45,32 @@ spec:
|
|||
# stack as soon as the ReplicaSet are completely ready/available.
|
||||
# Rollouts can be resumed using: `kubectl argo rollouts promote ROLLOUT`
|
||||
autoPromotionEnabled: false
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: hello-world-active
|
||||
namespace: hello-world
|
||||
spec:
|
||||
ports:
|
||||
- name: "5000"
|
||||
port: 5000
|
||||
targetPort: 5000
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: hello-world-preview
|
||||
namespace: hello-world
|
||||
spec:
|
||||
# selector:
|
||||
# app: hello-world
|
||||
ports:
|
||||
- name: "5000"
|
||||
port: 5000
|
||||
targetPort: 5000
|
||||
#
|
||||
# ---
|
||||
# apiVersion: v1
|
||||
# kind: Service
|
||||
# metadata:
|
||||
# name: hello-world-active
|
||||
# namespace: hello-world
|
||||
# spec:
|
||||
# ports:
|
||||
# - name: "5000"
|
||||
# port: 5000
|
||||
# targetPort: 5000
|
||||
#
|
||||
# ---
|
||||
# apiVersion: v1
|
||||
# kind: Service
|
||||
# metadata:
|
||||
# name: hello-world-preview
|
||||
# namespace: hello-world
|
||||
# spec:
|
||||
# # selector:
|
||||
# # app: hello-world
|
||||
# ports:
|
||||
# - name: "5000"
|
||||
# port: 5000
|
||||
# targetPort: 5000
|
||||
|
||||
# ---
|
||||
#
|
||||
|
|
@ -137,7 +137,7 @@ spec:
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: hello-world-nodeport-active
|
||||
name: hello-world-active
|
||||
namespace: hello-world
|
||||
spec:
|
||||
type: NodePort # Change service type to NodePort
|
||||
|
|
@ -153,7 +153,7 @@ spec:
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: hello-world-nodeport-preview
|
||||
name: hello-world-preview
|
||||
namespace: hello-world
|
||||
spec:
|
||||
type: NodePort # Change service type to NodePort
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue