Skip to content

Instantly share code, notes, and snippets.

@shameekagarwal
Last active June 29, 2022 01:29
Show Gist options
  • Save shameekagarwal/ec1a7d3c31814c789eae2d0e1c1ae569 to your computer and use it in GitHub Desktop.
Save shameekagarwal/ec1a7d3c31814c789eae2d0e1c1ae569 to your computer and use it in GitHub Desktop.
ReplicaSet
apiVersion: apps/v1
kind: ReplicaSet
metadata:
name: rs
spec:
replicas: 2
selector:
matchLabels:
service: rs-demo
template:
metadata:
labels:
service: rs-demo
spec:
containers:
- name: db
image: mongo:3.3
- name: api
image: user-service
livenessProbe:
httpGet:
path: /demo/hello
port: 8080
env:
- name: DB
value: localhost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment