forked from LaconicNetwork/kompose
* fix: update loading 'env_file' of docker_compose Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com> * test: add functional tests for loading env_file Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com> --------- Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
98 lines
1.9 KiB
YAML
98 lines
1.9 KiB
YAML
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
annotations:
|
|
kompose.service.type: headless
|
|
creationTimestamp: null
|
|
labels:
|
|
io.kompose.service: redis
|
|
name: redis
|
|
namespace: default
|
|
spec:
|
|
clusterIP: None
|
|
ports:
|
|
- name: headless
|
|
port: 55555
|
|
targetPort: 0
|
|
selector:
|
|
io.kompose.service: redis
|
|
status:
|
|
loadBalancer: {}
|
|
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
creationTimestamp: null
|
|
labels:
|
|
io.kompose.service: foo
|
|
name: foo
|
|
namespace: default
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
io.kompose.service: foo
|
|
strategy: {}
|
|
template:
|
|
metadata:
|
|
creationTimestamp: null
|
|
labels:
|
|
io.kompose.network/app-network: "true"
|
|
io.kompose.network/v30-normalized-network: "true"
|
|
io.kompose.network/web-network: "true"
|
|
io.kompose.service: foo
|
|
spec:
|
|
containers:
|
|
- args:
|
|
- sh
|
|
- -c
|
|
- echo Hello Foo
|
|
image: foo:latest
|
|
name: foo
|
|
resources: {}
|
|
restartPolicy: Always
|
|
status: {}
|
|
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
annotations:
|
|
kompose.service.type: headless
|
|
creationTimestamp: null
|
|
labels:
|
|
io.kompose.service: redis
|
|
name: redis
|
|
namespace: default
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
io.kompose.service: redis
|
|
strategy: {}
|
|
template:
|
|
metadata:
|
|
annotations:
|
|
kompose.service.type: headless
|
|
creationTimestamp: null
|
|
labels:
|
|
io.kompose.network/v30-default: "true"
|
|
io.kompose.service: redis
|
|
spec:
|
|
containers:
|
|
- image: redis
|
|
livenessProbe:
|
|
exec:
|
|
command:
|
|
- echo "hello world"
|
|
failureThreshold: 5
|
|
periodSeconds: 10
|
|
timeoutSeconds: 1
|
|
name: redis
|
|
resources: {}
|
|
restartPolicy: Always
|
|
status: {}
|
|
|