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:
209 lines
4.1 KiB
YAML
209 lines
4.1 KiB
YAML
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
creationTimestamp: null
|
|
labels:
|
|
io.kompose.service: another-namenode
|
|
name: another-namenode
|
|
spec:
|
|
ports:
|
|
- name: "50070"
|
|
port: 50070
|
|
targetPort: 50070
|
|
- name: "8020"
|
|
port: 8020
|
|
targetPort: 8020
|
|
selector:
|
|
io.kompose.service: another-namenode
|
|
|
|
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
creationTimestamp: null
|
|
labels:
|
|
io.kompose.service: namenode
|
|
name: namenode
|
|
spec:
|
|
ports:
|
|
- name: "50070"
|
|
port: 50070
|
|
targetPort: 50070
|
|
- name: "8020"
|
|
port: 8020
|
|
targetPort: 8020
|
|
selector:
|
|
io.kompose.service: namenode
|
|
|
|
|
|
---
|
|
apiVersion: v1
|
|
data:
|
|
FOO: BAR
|
|
kind: ConfigMap
|
|
metadata:
|
|
creationTimestamp: null
|
|
labels:
|
|
io.kompose.service: hadoop-hive-namenode-env
|
|
name: hadoop-hive-namenode-env
|
|
|
|
---
|
|
apiVersion: v1
|
|
data:
|
|
BAR: FOO
|
|
kind: ConfigMap
|
|
metadata:
|
|
creationTimestamp: null
|
|
labels:
|
|
io.kompose.service: another-namenode-hadoop-hive-namenode-env
|
|
name: hadoop-hive-namenode-env1
|
|
|
|
---
|
|
apiVersion: apps.openshift.io/v1
|
|
kind: DeploymentConfig
|
|
metadata:
|
|
creationTimestamp: null
|
|
labels:
|
|
io.kompose.service: another-namenode
|
|
name: another-namenode
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
io.kompose.service: another-namenode
|
|
strategy:
|
|
resources: {}
|
|
template:
|
|
metadata:
|
|
creationTimestamp: null
|
|
labels:
|
|
io.kompose.service: another-namenode
|
|
spec:
|
|
containers:
|
|
- env:
|
|
- name: BAR
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
key: BAR
|
|
name: hadoop-hive-namenode-env1
|
|
image: ' '
|
|
name: another-namenode
|
|
ports:
|
|
- containerPort: 50070
|
|
protocol: TCP
|
|
- containerPort: 8020
|
|
protocol: TCP
|
|
resources: {}
|
|
restartPolicy: Always
|
|
test: false
|
|
triggers:
|
|
- type: ConfigChange
|
|
- imageChangeParams:
|
|
automatic: true
|
|
containerNames:
|
|
- another-namenode
|
|
from:
|
|
kind: ImageStreamTag
|
|
name: another-namenode:2.0.0-hadoop2.7.4-java8
|
|
type: ImageChange
|
|
|
|
|
|
---
|
|
apiVersion: image.openshift.io/v1
|
|
kind: ImageStream
|
|
metadata:
|
|
creationTimestamp: null
|
|
labels:
|
|
io.kompose.service: another-namenode
|
|
name: another-namenode
|
|
spec:
|
|
lookupPolicy:
|
|
local: false
|
|
tags:
|
|
- annotations: null
|
|
from:
|
|
kind: DockerImage
|
|
name: bde2020/hadoop-namenode:2.0.0-hadoop2.7.4-java8
|
|
generation: null
|
|
importPolicy: {}
|
|
name: 2.0.0-hadoop2.7.4-java8
|
|
referencePolicy:
|
|
type: ""
|
|
|
|
|
|
---
|
|
apiVersion: apps.openshift.io/v1
|
|
kind: DeploymentConfig
|
|
metadata:
|
|
creationTimestamp: null
|
|
labels:
|
|
io.kompose.service: namenode
|
|
name: namenode
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
io.kompose.service: namenode
|
|
strategy:
|
|
resources: {}
|
|
template:
|
|
metadata:
|
|
creationTimestamp: null
|
|
labels:
|
|
io.kompose.service: namenode
|
|
spec:
|
|
containers:
|
|
- env:
|
|
- name: CLUSTER_NAME
|
|
value: test
|
|
- name: FOO
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
key: FOO
|
|
name: hadoop-hive-namenode-env
|
|
image: ' '
|
|
name: namenode
|
|
ports:
|
|
- containerPort: 50070
|
|
protocol: TCP
|
|
- containerPort: 8020
|
|
protocol: TCP
|
|
resources: {}
|
|
restartPolicy: Always
|
|
test: false
|
|
triggers:
|
|
- type: ConfigChange
|
|
- imageChangeParams:
|
|
automatic: true
|
|
containerNames:
|
|
- namenode
|
|
from:
|
|
kind: ImageStreamTag
|
|
name: namenode:2.0.0-hadoop2.7.4-java8
|
|
type: ImageChange
|
|
|
|
|
|
---
|
|
apiVersion: image.openshift.io/v1
|
|
kind: ImageStream
|
|
metadata:
|
|
creationTimestamp: null
|
|
labels:
|
|
io.kompose.service: namenode
|
|
name: namenode
|
|
spec:
|
|
lookupPolicy:
|
|
local: false
|
|
tags:
|
|
- annotations: null
|
|
from:
|
|
kind: DockerImage
|
|
name: bde2020/hadoop-namenode:2.0.0-hadoop2.7.4-java8
|
|
generation: null
|
|
importPolicy: {}
|
|
name: 2.0.0-hadoop2.7.4-java8
|
|
referencePolicy:
|
|
type: ""
|
|
|
|
|