Loop three types of files for each "multiple resources" test

This commit is contained in:
Janet Kuo
2015-10-02 13:23:00 -07:00
parent 7007481f00
commit b10e86038e
6 changed files with 114 additions and 139 deletions

View File

@@ -0,0 +1,33 @@
apiVersion: v1
kind: Service
metadata:
name: mock
labels:
app: mock
status: replaced
spec:
ports:
- port: 99
protocol: TCP
targetPort: 9949
selector:
app: mock
---
apiVersion: v1
kind: ReplicationController
metadata:
name: mock
spec:
replicas: 1
template:
metadata:
labels:
app: mock
status: replaced
spec:
containers:
- name: mock-container
image: kubernetes/pause
ports:
- containerPort: 9949
protocol: TCP

31
hack/testdata/multi-resource-yaml.yaml vendored Normal file
View File

@@ -0,0 +1,31 @@
apiVersion: v1
kind: Service
metadata:
name: mock
labels:
app: mock
spec:
ports:
- port: 99
protocol: TCP
targetPort: 9949
selector:
app: mock
---
apiVersion: v1
kind: ReplicationController
metadata:
name: mock
spec:
replicas: 1
template:
metadata:
labels:
app: mock
spec:
containers:
- name: mock-container
image: kubernetes/pause
ports:
- containerPort: 9949
protocol: TCP

View File

@@ -1,44 +0,0 @@
apiVersion: v1
kind: Service
metadata:
name: nginxsvc
labels:
app: nginx
status: replaced
spec:
type: NodePort
ports:
- port: 80
protocol: TCP
name: http
- port: 443
protocol: TCP
name: https
selector:
app: nginx
---
apiVersion: v1
kind: ReplicationController
metadata:
name: my-nginx
spec:
replicas: 1
template:
metadata:
labels:
app: nginx
status: replaced
spec:
volumes:
- name: secret-volume
secret:
secretName: nginxsecret
containers:
- name: nginxhttps
image: bprashanth/nginxhttps:1.0
ports:
- containerPort: 443
- containerPort: 80
volumeMounts:
- mountPath: /etc/nginx/ssl
name: secret-volume