Open Application Model (OAM) — Bringing some sanity to application deployment on kubernetes (k8s).

OAM — Credits Cloud Native Computing Foundation (CNCF),
  1. Lens https://k8slens.dev/
$ vela version
CLI Version: v1.3.0
Core Version: 1.3.0
GitRevision: git-3aa4412
GolangVersion: go1.17.8
pip install flask hashids
pip freeze >> requirements.txt
# syntax=docker/dockerfile:1FROM python:3.8-slim-busterWORKDIR /python-dockerCOPY requirements.txt requirements.txt
RUN pip3 install -r requirements.txt
COPY . .CMD [ "python3", "-m" , "flask", "run", "--host=0.0.0.0"]
docker build --tag shortener-docker .
docker push <your docker id>/shortener-docker
apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
name: urls-shortener-service
spec:
components:
- name: urls-shortener-service
type: webservice
properties:
image: sejuba/shortener-docker
port: 5000
traits:
- type: gateway
properties:
domain: urlsrsvc.oentity.com
http:
"/": 5000
vela exec urls-shortener-service -- python init_db.py

--

--

--

SW Generalist, Test Automation engineer, Technology enthusiast and entrepreneur. I Love Python and I brew my own beer.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Search a Number in a Matrix (Sorted Rows)| Coding Interview | Searching

When a Programmer is Put Into a Marketing Team in Ruangguru

How to install and run a whois in Windows 10

Build a Supply Chain Tracker with the Ambrosus iOS SDK

Automate the infrastructure provisioning and expose as a self-service component

Deploy applications across multiple clusters using IBM Cloud Private

9 Websites that pay Technical Writers at least $300 per Article for first-time Writers

Woman typing

leetcode 112. Path Sum

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Olawepo Olayemi

Olawepo Olayemi

SW Generalist, Test Automation engineer, Technology enthusiast and entrepreneur. I Love Python and I brew my own beer.

More from Medium

A Kubernetes cluster from Virtualbox

Easy Blue-Green Deployment on Openshift Container Platform using Argo Rollouts

Kubernetes tutorial — What are Static Pods?

How is security managed in Kubernetes clusters?