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.
# 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