Add test directory for command localize

Create simple kustomization directory that `kustomize localize` can download as remote reference in test.
This commit is contained in:
Anna Song
2022-05-09 15:40:38 -07:00
parent 46d4934b68
commit c83ebd9530
3 changed files with 39 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: test-deployment-simple
labels:
app: deployment-simple
spec:
selector:
matchLabels:
app: simple
template:
metadata:
labels:
app: simple
spec:
containers:
- name: nginx
image: nginx:1.16
ports:
- containerPort: 8080

View File

@@ -0,0 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./deployment.yaml
- ./service.yaml
namePrefix: localize-

View File

@@ -0,0 +1,11 @@
apiVersion: v1
kind: Service
metadata:
name: test-service-simple
spec:
selector:
app: deployment-simple
ports:
- protocol: TCP
port: 80
targetPort: 8080