created a guestbook namespace and moved the app to the namespace

This commit is contained in:
Krzysztof Waberski 2022-12-06 10:48:58 +00:00
parent f133864206
commit 354b58cd6d
No known key found for this signature in database
GPG Key ID: E84405C7341D26FA
5 changed files with 7 additions and 12 deletions

View File

@ -2,6 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: guestbook-ui
namespace: guestbook
spec:
replicas: 1
revisionHistoryLimit: 3

View File

@ -2,7 +2,7 @@ apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: guestbook-ui-ingress
namespace: default
namespace: guestbook
spec:
rules:
- host: guestbook-ui.corp.guardanet.net

View File

@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: guestbook

View File

@ -2,6 +2,7 @@ apiVersion: v1
kind: Service
metadata:
name: guestbook-ui
namespace: guestbook
spec:
ports:
- port: 80

View File

@ -1,11 +0,0 @@
apiVersion: v1
data:
accounts.krzys: apiKey, login
accounts.kwaberski: apiKey, login
kind: ConfigMap
metadata:
labels:
app.kubernetes.io/name: argocd-cm
app.kubernetes.io/part-of: argocd
name: argocd-cm
namespace: argocd