Skip to content

Instantly share code, notes, and snippets.

View fhsinchy's full-sized avatar
🎯
Trying to focus

Farhan Hasin Chowdhury fhsinchy

🎯
Trying to focus
View GitHub Profile
View front-end-back-end-mapping.yaml
apiVersion: getambassador.io/v3alpha1
kind: Mapping
metadata:
name: front-end-mapping
spec:
prefix: "/?(.*)"
prefix_regex: true
service: http://client-cluster-ip-service:8080
---
apiVersion: getambassador.io/v3alpha1
View emissary-listener-host.yaml
apiVersion: getambassador.io/v3alpha1
kind: Listener
metadata:
name: emissary-listener
spec:
port: 80
protocol: HTTP
securityModel: INSECURE
hostBinding:
selector:
View api-load-balancer-service.yaml
apiVersion: v1
kind: Service
metadata:
name: api-load-balancer-service
spec:
type: LoadBalancer
selector:
component: api
ports:
- port: 3000
View api-node-port-service.yaml
apiVersion: v1
kind: Service
metadata:
name: api-node-port-service
spec:
type: NodePort
selector:
component: api
ports:
- port: 3000
View postgres-deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: postgres-deployment
spec:
replicas: 1
selector:
matchLabels:
component: postgres
template:
View postgres-cluster-ip-service.yaml
apiVersion: v1
kind: Service
metadata:
name: postgres-cluster-ip-service
spec:
type: ClusterIP
selector:
component: postgres
ports:
- port: 5432
View api-deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: api-deployment
spec:
replicas: 3
selector:
matchLabels:
component: api
template:
View hello-kube-pod.yaml
apiVersion: v1
kind: Pod
metadata:
name: hello-kube-pod
labels:
component: web
spec:
containers:
- name: hello-kube
image: fhsinchy/hello-kube
View notes-api-docker-compose.yaml
## /notes-api/docker-compose.yaml
version: "3.8"
services:
db:
image: postgres:12
volumes:
- db-data:/var/lib/postgresql/data
environment:
View guide-to-laravel-passport-interceptor-main.js
// src/main.js
// ...
import configureAxios from './services/http';
//...
configureAxios();