Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
56 lines (54 sloc) 1.06 KB
kind: Service
apiVersion: v1
metadata:
name: articles
labels:
app: articles
spec:
selector:
app: articles
ports:
- port: 8080
name: http
type: NodePort
---
kind: Deployment
apiVersion: apps/v1beta1
metadata:
name: articles
spec:
replicas: 1
template:
metadata:
labels:
app: articles
version: v1
spec:
containers:
- name: articles
image: articles:1
ports:
- containerPort: 8080
env:
- name: samplescreation
valueFrom:
configMapKeyRef:
name: articles-config
key: samplescreation
livenessProbe:
exec:
command: ["sh", "-c", "curl -s http://localhost:8080/"]
initialDelaySeconds: 20
readinessProbe:
exec:
command: ["sh", "-c", "curl -s http://localhost:8080/health | grep -q articles"]
initialDelaySeconds: 40
restartPolicy: Always
---
kind: ConfigMap
apiVersion: v1
metadata:
name: articles-config
data:
samplescreation: CREATE
---
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.