Preserve existing namespace when using kubectl set --local

This commit is contained in:
Jordan Liggitt
2019-04-30 10:39:29 -04:00
parent 306740f81c
commit 2fae80c27c
3 changed files with 60 additions and 1 deletions

View File

@@ -0,0 +1,17 @@
apiVersion: v1
kind: ReplicationController
metadata:
name: namespaced-rc
namespace: existing-ns
spec:
replicas: 1
selector:
app: mock
template:
metadata:
labels:
app: mock
spec:
containers:
- name: mock-container
image: k8s.gcr.io/pause:3.1