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:
99 lines
2.1 KiB
YAML
99 lines
2.1 KiB
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
|
|
|
|
---
|
|
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:
|
|
affinity:
|
|
nodeAffinity:
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
nodeSelectorTerms:
|
|
- matchExpressions:
|
|
- key: kubernetes.io/hostname
|
|
operator: In
|
|
values:
|
|
- machine
|
|
- key: kubernetes.io/os
|
|
operator: In
|
|
values:
|
|
- ubuntu 14.04
|
|
- key: foo
|
|
operator: NotIn
|
|
values:
|
|
- bar
|
|
containers:
|
|
- image: ' '
|
|
name: redis
|
|
ports:
|
|
- containerPort: 6379
|
|
protocol: TCP
|
|
restartPolicy: Always
|
|
topologySpreadConstraints:
|
|
- labelSelector:
|
|
matchLabels:
|
|
io.kompose.service: redis
|
|
maxSkew: 2
|
|
topologyKey: zone
|
|
whenUnsatisfiable: ScheduleAnyway
|
|
- labelSelector:
|
|
matchLabels:
|
|
io.kompose.service: redis
|
|
maxSkew: 1
|
|
topologyKey: ssd
|
|
whenUnsatisfiable: ScheduleAnyway
|
|
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: ""
|
|
|