mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-21 06:21:43 +00:00
1) Set document IDs to avoid duplicating documents; 2) Set the `creationTime` field of each document in the index; 3) set the `values`, `kinds` and `identifiers` fields for all documents; 4) Add a `Copy` method into the `Document` struct: this fixes the issue where all the documents existing in the index point to the same Document object; 5) Avoid using keystore redis; 6) Set imagePullPolicy to `Always` for crawler jobs.
36 lines
790 B
YAML
36 lines
790 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: kustomize-search
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: kustomize-search
|
|
tier: backend
|
|
replicas: 1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: kustomize-search
|
|
tier: backend
|
|
spec:
|
|
containers:
|
|
- name: kustomize-search
|
|
image: gcr.io/kustomize-search/backend:latest
|
|
imagePullPolicy: Always
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /liveness
|
|
port: backend-port
|
|
ports:
|
|
- name: backend-port
|
|
containerPort: 8080
|
|
env:
|
|
- name: ELASTICSEARCH_URL
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: elasticsearch-config
|
|
key: es-url
|
|
- name: PORT
|
|
value: "8080"
|