two services

This commit is contained in:
Waylon Walker 2024-03-12 20:30:56 -05:00
parent 00a86fb02b
commit bc8bf07e77
No known key found for this signature in database
GPG key ID: 66E2BF2B4190EFE4

View file

@ -45,32 +45,32 @@ spec:
# stack as soon as the ReplicaSet are completely ready/available. # stack as soon as the ReplicaSet are completely ready/available.
# Rollouts can be resumed using: `kubectl argo rollouts promote ROLLOUT` # Rollouts can be resumed using: `kubectl argo rollouts promote ROLLOUT`
autoPromotionEnabled: false autoPromotionEnabled: false
#
--- # ---
apiVersion: v1 # apiVersion: v1
kind: Service # kind: Service
metadata: # metadata:
name: hello-world-active # name: hello-world-active
namespace: hello-world # namespace: hello-world
spec: # spec:
ports: # ports:
- name: "5000" # - name: "5000"
port: 5000 # port: 5000
targetPort: 5000 # targetPort: 5000
#
--- # ---
apiVersion: v1 # apiVersion: v1
kind: Service # kind: Service
metadata: # metadata:
name: hello-world-preview # name: hello-world-preview
namespace: hello-world # namespace: hello-world
spec: # spec:
# selector: # # selector:
# app: hello-world # # app: hello-world
ports: # ports:
- name: "5000" # - name: "5000"
port: 5000 # port: 5000
targetPort: 5000 # targetPort: 5000
# --- # ---
# #
@ -137,7 +137,7 @@ spec:
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: hello-world-nodeport-active name: hello-world-active
namespace: hello-world namespace: hello-world
spec: spec:
type: NodePort # Change service type to NodePort type: NodePort # Change service type to NodePort
@ -153,7 +153,7 @@ spec:
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: hello-world-nodeport-preview name: hello-world-preview
namespace: hello-world namespace: hello-world
spec: spec:
type: NodePort # Change service type to NodePort type: NodePort # Change service type to NodePort