Skip to content

Commit

Permalink
Prefix resource names with ots
Browse files Browse the repository at this point in the history
Makes it less confusing when deployed in the same namespace with other stuff
  • Loading branch information
sorcix committed Nov 17, 2023
1 parent 457cd23 commit a48f333
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions docs/k8s_example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,27 @@ spec:
apiVersion: apps/v1
kind: Deployment
metadata:
name: redis
name: ots-redis
labels:
app: redis
app: ots-redis
role: leader
tier: backend
spec:
replicas: 1
selector:
matchLabels:
app: redis
app: ots-redis
template:
metadata:
labels:
app: redis
app: ots-redis
role: leader
tier: backend
spec:
volumes:
- name: redis-storage
persistentVolumeClaim:
claimName: redis
claimName: ots-redis
containers:
- name: leader
image: "docker.io/redis:6.2.5-alpine"
Expand Down Expand Up @@ -62,17 +62,17 @@ spec:
apiVersion: v1
kind: Service
metadata:
name: redis
name: ots-redis
labels:
app: redis
app: ots-redis
role: leader
tier: backend
spec:
ports:
- port: 6379
targetPort: 6379
selector:
app: redis
app: ots-redis
role: leader
tier: backend

Expand Down Expand Up @@ -115,7 +115,7 @@ spec:
args: ["--storage-type", "redis", "--customize", "/custom/customize.yml"]
env:
- name: REDIS_URL
value: "tcp://redis.ots.svc.cluster.local:6379"
value: "tcp://ots-redis:6379"
- name: REDIS_KEY
value: "ots"
- name: SECRET_EXPIRY
Expand Down Expand Up @@ -174,4 +174,4 @@ spec:
tls:
- hosts:
- ots.example.com
secretName: ingress-tls
secretName: ots-ingress-tls

0 comments on commit a48f333

Please sign in to comment.