kompose/script/test/fixtures/compose-file-env-variable/output-k8s.yaml
TessaIO 3bf98301f7
fix: expose container to host only with labels (#1880)
Signed-off-by: ahmed.g <ahmed.g@adjoe.io>
Signed-off-by: TessaIO <ahmedgrati1999@gmail.com>
2024-05-29 16:05:04 -04:00

83 lines
1.4 KiB
YAML

---
apiVersion: v1
kind: Service
metadata:
labels:
io.kompose.service: alpine
name: alpine
spec:
ports:
- name: "80"
port: 80
targetPort: 80
selector:
io.kompose.service: alpine
---
apiVersion: v1
kind: Service
metadata:
labels:
io.kompose.service: debian
name: debian
spec:
ports:
- name: "80"
port: 80
targetPort: 80
selector:
io.kompose.service: debian
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
io.kompose.service: alpine
name: alpine
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: alpine
template:
metadata:
labels:
io.kompose.network/compose-file-env-variable-default: "true"
io.kompose.service: alpine
spec:
containers:
- image: alpine
name: alpine
ports:
- containerPort: 80
protocol: TCP
restartPolicy: Always
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
io.kompose.service: debian
name: debian
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: debian
template:
metadata:
labels:
io.kompose.network/compose-file-env-variable-default: "true"
io.kompose.service: debian
spec:
containers:
- image: debian
name: debian
ports:
- containerPort: 80
protocol: TCP
restartPolicy: Always