forked from LaconicNetwork/kompose
* Fix ConfigMap name clash if env_file name is equal #2000 * Generate envFrom instead of single env entries from env_file entries #1999 * Fix failing test fixture outputs
59 lines
886 B
YAML
59 lines
886 B
YAML
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
labels:
|
|
io.kompose.service: redis
|
|
name: redis
|
|
spec:
|
|
ports:
|
|
- name: "6379"
|
|
port: 6379
|
|
targetPort: 6379
|
|
selector:
|
|
io.kompose.service: redis
|
|
type: NodePort
|
|
|
|
---
|
|
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
labels:
|
|
io.kompose.service: redis
|
|
name: redis
|
|
spec:
|
|
containers:
|
|
- envFrom:
|
|
- configMapRef:
|
|
name: foo-env
|
|
- configMapRef:
|
|
name: bar-env
|
|
image: bitnami/redis:latest
|
|
name: redis
|
|
ports:
|
|
- containerPort: 6379
|
|
protocol: TCP
|
|
restartPolicy: Never
|
|
|
|
---
|
|
apiVersion: v1
|
|
data:
|
|
ALLOW_EMPTY_PASSWORD: "yes"
|
|
kind: ConfigMap
|
|
metadata:
|
|
labels:
|
|
io.kompose.service: redis-foo-env
|
|
name: foo-env
|
|
|
|
---
|
|
apiVersion: v1
|
|
data:
|
|
BAR: FOO
|
|
FOO: BAR
|
|
kind: ConfigMap
|
|
metadata:
|
|
labels:
|
|
io.kompose.service: redis-bar-env
|
|
name: bar-env
|
|
|