Skip to content

Instantly share code, notes, and snippets.

@atombender
Created October 17, 2017 04:59
Show Gist options
  • Save atombender/8c4bf08be933afe608ec05de97d75f18 to your computer and use it in GitHub Desktop.
Save atombender/8c4bf08be933afe608ec05de97d75f18 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Service
metadata:
name: vespa
labels:
app: vespa
spec:
selector:
app: vespa
type: NodePort
ports:
- name: sample-app
port: 8080
targetPort: 8080
protocol: TCP
- name: config
port: 19071
targetPort: 19071
protocol: TCP
apiVersion: apps/v1beta1
kind: StatefulSet
metadata:
name: vespa
labels:
app: vespa
spec:
replicas: 1
serviceName: vespa
template:
metadata:
labels:
app: vespa
spec:
containers:
- name: vespa
image: vespaengine/vespa
imagePullPolicy: Always
securityContext:
privileged: true
ports:
- containerPort: 8080
protocol: TCP
command:
- bash
- -xc
- /usr/local/bin/start-container.sh
readinessProbe:
httpGet:
path: /ApplicationStatus
port: 19071
scheme: HTTP
volumeMounts:
- name: data
mountPath: /opt/vespa/var/db/vespa/search
- name: sample-apps
mountPath: /vespa-sample-apps
volumes:
- name: sample-apps
hostPath:
path: /data/vespa-sample-apps
volumeClaimTemplates:
- metadata:
name: data
spec:
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 1Gi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment