Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Kompose-d Python application
apiVersion: v1
items:
- apiVersion: v1
kind: Service
metadata:
annotations:
kompose.cmd: kompose convert -f compose-roachless.yml -f compose-roachless.override.yml -o kompose.yml
kompose.version: 1.26.1 (a9d05d509)
creationTimestamp: null
labels:
io.kompose.service: web
name: web
spec:
ports:
- name: "5000"
port: 5000
targetPort: 5000
selector:
io.kompose.service: web
status:
loadBalancer: {}
- apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert -f compose-roachless.yml -f compose-roachless.override.yml -o kompose.yml
kompose.version: 1.26.1 (a9d05d509)
creationTimestamp: null
labels:
io.kompose.service: web
name: web
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: web
strategy:
type: Recreate
template:
metadata:
annotations:
kompose.cmd: kompose convert -f compose-roachless.yml -f compose-roachless.override.yml -o kompose.yml
kompose.version: 1.26.1 (a9d05d509)
creationTimestamp: null
labels:
io.kompose.service: web
spec:
containers:
- args:
- python
- manage.py
- run
- -h
- 0.0.0.0
env:
- name: DATABASE
value: cockroachdb
- name: DATABASE_URL
value: cockroachdb://root@roach-0:26257/defaultdb
- name: FLASK_APP
value: project/__init__.py
- name: FLASK_DEBUG
value: "1"
- name: SQL_HOST
value: roach-0
- name: SQL_PORT
value: "26257"
image: worldofgeese/web:v0.1.0
name: web
ports:
- containerPort: 5000
resources: {}
volumeMounts:
- mountPath: /app/
name: web-claim0
restartPolicy: Always
volumes:
- name: web-claim0
persistentVolumeClaim:
claimName: web-claim0
status: {}
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
creationTimestamp: null
labels:
io.kompose.service: web-claim0
name: web-claim0
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100Mi
status: {}
kind: List
metadata: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment