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:
53 lines
1.0 KiB
YAML
53 lines
1.0 KiB
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
io.kompose.service: pgadmin
|
|
name: pgadmin
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
io.kompose.service: pgadmin
|
|
strategy:
|
|
type: Recreate
|
|
template:
|
|
metadata:
|
|
labels:
|
|
io.kompose.service: pgadmin
|
|
spec:
|
|
containers:
|
|
- env:
|
|
- name: PGADMIN_DEFAULT_EMAIL
|
|
value: dumb_pgadmin_user@email.com
|
|
- name: PGADMIN_DEFAULT_PASSWORD
|
|
value: pgadmin_password
|
|
image: dpage/pgadmin4
|
|
name: pgadmin
|
|
volumeMounts:
|
|
- mountPath: /var/lib/pgadmin
|
|
name: pgadmin-data
|
|
restartPolicy: Always
|
|
securityContext:
|
|
fsGroup: 1001
|
|
volumes:
|
|
- name: pgadmin-data
|
|
persistentVolumeClaim:
|
|
claimName: pgadmin-data
|
|
|
|
---
|
|
apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
labels:
|
|
io.kompose.service: pgadmin-data
|
|
name: pgadmin-data
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: 100Mi
|
|
|