Skip to content

Instantly share code, notes, and snippets.

@sarmadsaleem
Created September 8, 2020 11:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sarmadsaleem/271b53c6a6507ecdc6874d4e0dfa2cbb to your computer and use it in GitHub Desktop.
Save sarmadsaleem/271b53c6a6507ecdc6874d4e0dfa2cbb to your computer and use it in GitHub Desktop.
ScoutAPM - Sample app Kubernetes manifest
apiVersion: v1
kind: Namespace
metadata:
name: scout-apm
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: node-app-deployment
namespace: scout-apm
spec:
selector:
matchLabels:
app: scout-apm-node-app
replicas: 3
template:
metadata:
labels:
app: scout-apm-node-app
spec:
containers:
- name: node-app
image: docker.io/sarmadsaleem/scout-apm:node-app
resources:
limits:
memory: "256Mi"
cpu: "500m"
imagePullPolicy: Always
ports:
- name: http
containerPort: 3000
---
apiVersion: v1
kind: Service
metadata:
name: node-app-service
namespace: scout-apm
labels:
app: scout-apm-node-app
spec:
selector:
app: scout-apm-node-app
type: NodePort
ports:
- protocol: TCP
port: 3000
targetPort: 3000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment