forked from LaconicNetwork/kompose
#### What type of PR is this? <!-- Add one of the following kinds: /kind bug /kind documentation /kind feature --> /kind cleanup #### What this PR does / why we need it: Removes the network policy annotation which is not needed (we are not generating network policy) #### Which issue(s) this PR fixes: <!-- *Automatically closes linked issue when PR is merged. Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`. --> Fixes https://github.com/kubernetes/kompose/issues/1759 #### Special notes for your reviewer:
72 lines
1.2 KiB
YAML
72 lines
1.2 KiB
YAML
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
labels:
|
|
io.kompose.service: redis
|
|
name: redis
|
|
spec:
|
|
clusterIP: None
|
|
ports:
|
|
- name: headless
|
|
port: 55555
|
|
targetPort: 0
|
|
selector:
|
|
io.kompose.service: redis
|
|
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
io.kompose.service: foo
|
|
name: foo
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
io.kompose.service: foo
|
|
template:
|
|
metadata:
|
|
labels:
|
|
io.kompose.service: foo
|
|
spec:
|
|
containers:
|
|
- args:
|
|
- sh
|
|
- -c
|
|
- echo Hello Foo
|
|
image: foo:latest
|
|
name: foo
|
|
restartPolicy: Always
|
|
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
io.kompose.service: redis
|
|
name: redis
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
io.kompose.service: redis
|
|
template:
|
|
metadata:
|
|
labels:
|
|
io.kompose.service: redis
|
|
spec:
|
|
containers:
|
|
- image: redis
|
|
livenessProbe:
|
|
exec:
|
|
command:
|
|
- echo "hello world"
|
|
failureThreshold: 5
|
|
periodSeconds: 10
|
|
timeoutSeconds: 1
|
|
name: redis
|
|
restartPolicy: Always
|
|
|