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:
65 lines
1.1 KiB
YAML
65 lines
1.1 KiB
YAML
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
labels:
|
|
io.kompose.service: front-end
|
|
name: front_end
|
|
spec:
|
|
ports:
|
|
- name: "80"
|
|
port: 80
|
|
targetPort: 80
|
|
selector:
|
|
io.kompose.service: front-end
|
|
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
io.kompose.service: front-end
|
|
name: front-end
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
io.kompose.service: front-end
|
|
template:
|
|
metadata:
|
|
labels:
|
|
io.kompose.service: front-end
|
|
spec:
|
|
containers:
|
|
- env:
|
|
- name: GET_HOSTS_FROM
|
|
value: dns
|
|
image: gcr.io/google-samples/gb-frontend:v4
|
|
name: front-end
|
|
ports:
|
|
- containerPort: 80
|
|
protocol: TCP
|
|
restartPolicy: Always
|
|
|
|
---
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
labels:
|
|
io.kompose.service: front-end
|
|
name: front-end
|
|
spec:
|
|
ingressClassName: nginx
|
|
rules:
|
|
- host: lb
|
|
http:
|
|
paths:
|
|
- backend:
|
|
service:
|
|
name: front-end
|
|
port:
|
|
number: 80
|
|
path: /
|
|
pathType: Prefix
|
|
|