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:
128 lines
2.2 KiB
YAML
128 lines
2.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.openshift.io/v1
|
|
kind: DeploymentConfig
|
|
metadata:
|
|
labels:
|
|
io.kompose.service: foo
|
|
name: foo
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
io.kompose.service: foo
|
|
template:
|
|
metadata:
|
|
labels:
|
|
io.kompose.service: foo
|
|
spec:
|
|
containers:
|
|
- args:
|
|
- sh
|
|
- -c
|
|
- echo Hello Foo
|
|
image: ' '
|
|
name: foo
|
|
restartPolicy: Always
|
|
test: false
|
|
triggers:
|
|
- type: ConfigChange
|
|
- imageChangeParams:
|
|
automatic: true
|
|
containerNames:
|
|
- foo
|
|
from:
|
|
kind: ImageStreamTag
|
|
name: foo:latest
|
|
type: ImageChange
|
|
|
|
---
|
|
apiVersion: image.openshift.io/v1
|
|
kind: ImageStream
|
|
metadata:
|
|
labels:
|
|
io.kompose.service: foo
|
|
name: foo
|
|
spec:
|
|
lookupPolicy:
|
|
local: false
|
|
tags:
|
|
- from:
|
|
kind: DockerImage
|
|
name: foo:latest
|
|
name: latest
|
|
referencePolicy:
|
|
type: ""
|
|
|
|
---
|
|
apiVersion: apps.openshift.io/v1
|
|
kind: DeploymentConfig
|
|
metadata:
|
|
labels:
|
|
io.kompose.service: redis
|
|
name: redis
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
io.kompose.service: redis
|
|
template:
|
|
metadata:
|
|
labels:
|
|
io.kompose.service: redis
|
|
spec:
|
|
containers:
|
|
- image: ' '
|
|
livenessProbe:
|
|
exec:
|
|
command:
|
|
- echo "hello world"
|
|
failureThreshold: 5
|
|
periodSeconds: 10
|
|
timeoutSeconds: 1
|
|
name: redis
|
|
restartPolicy: Always
|
|
test: false
|
|
triggers:
|
|
- type: ConfigChange
|
|
- imageChangeParams:
|
|
automatic: true
|
|
containerNames:
|
|
- redis
|
|
from:
|
|
kind: ImageStreamTag
|
|
name: redis:latest
|
|
type: ImageChange
|
|
|
|
---
|
|
apiVersion: image.openshift.io/v1
|
|
kind: ImageStream
|
|
metadata:
|
|
labels:
|
|
io.kompose.service: redis
|
|
name: redis
|
|
spec:
|
|
lookupPolicy:
|
|
local: false
|
|
tags:
|
|
- from:
|
|
kind: DockerImage
|
|
name: redis
|
|
name: latest
|
|
referencePolicy:
|
|
type: ""
|
|
|