Add namespace, secret for image registry, and prod configs
This commit is contained in:
@@ -2,6 +2,7 @@ apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: todo-frontend
|
||||
namespace: todo-test
|
||||
labels:
|
||||
app: todo-frontend
|
||||
spec:
|
||||
@@ -14,10 +15,12 @@ spec:
|
||||
labels:
|
||||
app: todo-frontend
|
||||
spec:
|
||||
imagePullSecrets:
|
||||
- name: todo-registry-secret
|
||||
containers:
|
||||
- name: todo-frontend
|
||||
image: todo-frontend:latest
|
||||
imagePullPolicy: IfNotPresent
|
||||
image: ccr.ccs.tencentyun.com/todo-test/todo-frontend:latest
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 80
|
||||
env:
|
||||
|
||||
@@ -2,6 +2,7 @@ apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: todo-frontend
|
||||
namespace: todo-test
|
||||
spec:
|
||||
type: NodePort
|
||||
selector:
|
||||
|
||||
Reference in New Issue
Block a user