Last active
June 29, 2022 01:29
-
-
Save shameekagarwal/ec1a7d3c31814c789eae2d0e1c1ae569 to your computer and use it in GitHub Desktop.
ReplicaSet
This file contains 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: 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