Skip to content

Instantly share code, notes, and snippets.

# Default values for node-starter.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
replicaCount: 1
image:
repository: fabripautasso/node-starter-v2
tag: 1.17.0
pullPolicy: IfNotPresent
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "node-starter.fullname" . }}
labels:
{{- include "node-starter.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
apiVersion: v1
kind: ReplicationController
metadata:
name: api
spec:
replicas: 1
template:
metadata:
labels:
role: api
apiVersion: v1
kind: Service
metadata:
name: api
spec:
type: NodePort
ports:
- port: 80
targetPort: 3030
nodePort: 30000
@fabripautasso
fabripautasso / dev-namespace.yml
Created February 18, 2020 13:02
Kubernetes namespace example
kind: Namespace
apiVersion: v1
metadata:
name: development
build:
docker:
- image: circleci/node:10.10.0-stretch-browsers-legacy
working_directory: ~/repo
steps:
- checkout
- attach_workspace:
at: ~/repo
- run:
name: Build
workflows:
version: 2
test-build-deploy:
jobs:
- npm
- lint:
requires:
- npm
- build:
deploy-dev:
machine: true
steps:
- checkout
- run:
name: Build and push Docker image to Heroku
command: |
sudo curl https://cli-assets.heroku.com/install.sh | sh
HEROKU_API_KEY=${HEROKU_TOKEN} heroku container:login
HEROKU_API_KEY=${HEROKU_TOKEN} heroku container:push -a python-django-starter web