Created
June 18, 2025 00:53
-
-
Save tomschlick/63be7309f80007ab6ec8a05966190f9e to your computer and use it in GitHub Desktop.
nightwatch k8s ingest
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: nightwatch-ingest | |
namespace: whatever | |
labels: | |
tier: backend | |
layer: nightwatch-ingest | |
spec: | |
replicas: 1 | |
revisionHistoryLimit: 1 | |
strategy: | |
type: Recreate | |
selector: | |
matchLabels: | |
tier: backend | |
layer: nightwatch-ingest | |
template: | |
metadata: | |
labels: | |
tier: backend | |
layer: nightwatch-ingest | |
spec: | |
imagePullSecrets: | |
- name: ecr-container-registry-secret | |
containers: | |
- name: nightwatch-ingest | |
image: your_cli_image_here | |
imagePullPolicy: Always | |
ports: | |
- containerPort: 2407 | |
command: | |
- "php" | |
- "/var/www/html/artisan" | |
- "nightwatch:agent" | |
- "--listen-on=0.0.0.0:2407" | |
env: | |
- name: NIGHTWATCH_INGEST_URI | |
value: "127.0.0.1:2407" | |
- name: K8S_NODE_NAME | |
valueFrom: | |
fieldRef: | |
fieldPath: spec.nodeName | |
envFrom: | |
- configMapRef: | |
name: app-configmap | |
- secretRef: | |
name: app-secrets | |
livenessProbe: | |
exec: | |
command: | |
- "php" | |
- "/var/www/html/artisan" | |
- "nightwatch:status" | |
initialDelaySeconds: 10 | |
periodSeconds: 180 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: nightwatch-ingest | |
namespace: whatever | |
spec: | |
selector: | |
tier: backend | |
layer: nightwatch-ingest | |
ports: | |
- protocol: TCP | |
port: 2407 | |
targetPort: 2407 | |
type: ClusterIP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment