Skip to content

Instantly share code, notes, and snippets.

@riskiwah
Last active August 25, 2021 11:27
Show Gist options
  • Save riskiwah/9ad14d26b323220a9a05e9466250e51d to your computer and use it in GitHub Desktop.
Save riskiwah/9ad14d26b323220a9a05e9466250e51d to your computer and use it in GitHub Desktop.
kind: Service
apiVersion: v1
metadata:
name: nginx-debug-svc
spec:
selector:
app: nginx-debug
type: ClusterIP
ports:
- name: http
port: 80
targetPort: 80
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-debug
spec:
selector:
matchLabels:
app: nginx-debug
replicas: 1
template:
metadata:
labels:
app: nginx-debug
spec:
containers:
- name: nginx
image: nginx:alpine
ports:
- containerPort: 80
kind: Service
apiVersion: v1
metadata:
name: nginx-debug-inject
spec:
selector:
app: nginx-debug-inject
type: ClusterIP
ports:
- name: http
port: 80
targetPort: 80
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-debug-inject
spec:
selector:
matchLabels:
app: nginx-debug-inject
replicas: 1
template:
metadata:
labels:
app: nginx-debug-inject
spec:
containers:
- name: nginx
image: nginx:alpine
ports:
- containerPort: 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment