Skip to content

Instantly share code, notes, and snippets.

@lakhansamani
Created December 12, 2019 08:10
Show Gist options
  • Save lakhansamani/7d52641fd85c40f5b395e2fada6890de to your computer and use it in GitHub Desktop.
Save lakhansamani/7d52641fd85c40f5b395e2fada6890de to your computer and use it in GitHub Desktop.
cat <<EOF | kubectl apply -f -
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: "1"
generation: 1
name: arc
spec:
selector:
matchLabels:
app: arc
strategy:
type: RollingUpdate
template:
metadata:
creationTimestamp: null
labels:
app: arc
spec:
containers:
- env:
- name: USERNAME
value: admin
- name: PASSWORD
value: admin
- name: ARC_ID
value: YOUR_ARC_ID
- name: ES_CLUSTER_URL
value: "http://elastic:PASSWORD@elasticsearch-es-http:9200/"
image: appbaseio/arc:7.8.3
imagePullPolicy: IfNotPresent
name: arc
ports:
- containerPort: 8000
name: http
protocol: TCP
replicas: 1
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment