Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cmoulliard/c084e88ab79b6082b6cddc59c20ca673 to your computer and use it in GitHub Desktop.
Save cmoulliard/c084e88ab79b6082b6cddc59c20ca673 to your computer and use it in GitHub Desktop.
---
apiVersion: "v1"
kind: "ServiceAccount"
metadata:
annotations:
app.quarkus.io/vcs-url: "https://github.com/snowdrop-bot/snowdrop-bot.git"
app.quarkus.io/build-timestamp: "2020-07-15 - 13:40:50 +0000"
app.quarkus.io/commit-id: "4d2157c00d5e282ad3d254b49ea3233a77e17bfe"
labels:
app.kubernetes.io/name: "snowdrop-bot"
app.kubernetes.io/part-of: "snowdrop-bot"
app.kubernetes.io/version: "0.1-SNAPSHOT"
name: "snowdrop-bot"
---
apiVersion: "v1"
kind: "Service"
metadata:
annotations:
app.quarkus.io/vcs-url: "https://github.com/snowdrop-bot/snowdrop-bot.git"
app.quarkus.io/build-timestamp: "2020-07-15 - 13:40:50 +0000"
app.quarkus.io/commit-id: "4d2157c00d5e282ad3d254b49ea3233a77e17bfe"
labels:
app.kubernetes.io/name: "snowdrop-bot"
app.kubernetes.io/part-of: "snowdrop-bot"
app.kubernetes.io/version: "0.1-SNAPSHOT"
name: "snowdrop-bot"
spec:
ports:
- name: "http"
port: 8080
targetPort: 8080
selector:
app.kubernetes.io/name: "snowdrop-bot"
app.kubernetes.io/part-of: "snowdrop-bot"
app.kubernetes.io/version: "0.1-SNAPSHOT"
type: "ClusterIP"
---
apiVersion: "apps/v1"
kind: "Deployment"
metadata:
annotations:
app.quarkus.io/vcs-url: "https://github.com/snowdrop-bot/snowdrop-bot.git"
app.quarkus.io/build-timestamp: "2020-07-15 - 13:40:50 +0000"
app.quarkus.io/commit-id: "4d2157c00d5e282ad3d254b49ea3233a77e17bfe"
labels:
app.kubernetes.io/name: "snowdrop-bot"
app.kubernetes.io/part-of: "snowdrop-bot"
app.kubernetes.io/version: "0.1-SNAPSHOT"
name: "snowdrop-bot"
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: "snowdrop-bot"
app.kubernetes.io/part-of: "snowdrop-bot"
app.kubernetes.io/version: "0.1-SNAPSHOT"
template:
metadata:
annotations:
app.quarkus.io/vcs-url: "https://github.com/snowdrop-bot/snowdrop-bot.git"
app.quarkus.io/build-timestamp: "2020-07-15 - 13:40:50 +0000"
app.quarkus.io/commit-id: "4d2157c00d5e282ad3d254b49ea3233a77e17bfe"
labels:
app.kubernetes.io/name: "snowdrop-bot"
app.kubernetes.io/part-of: "snowdrop-bot"
app.kubernetes.io/version: "0.1-SNAPSHOT"
spec:
containers:
- env:
- name: "KUBERNETES_NAMESPACE"
valueFrom:
fieldRef:
fieldPath: "metadata.namespace"
envFrom:
- secretRef:
name: "snowdrop-github"
optional: false
image: "cmoullia/snowdrop-bot:0.1-SNAPSHOT"
imagePullPolicy: "Always"
name: "snowdrop-bot"
ports:
- containerPort: 8080
name: "http"
protocol: "TCP"
volumeMounts:
- mountPath: "/z/var/snowdrop-bot/data/db"
name: "snowdrop-db"
readOnly: false
subPath: ""
- mountPath: "/z/var/snowdrop-bot/google"
name: "snowdrop-googledocs"
readOnly: false
subPath: ""
serviceAccount: "snowdrop-bot"
volumes:
- name: "snowdrop-db"
persistentVolumeClaim:
claimName: "snowdrop-db-claim"
readOnly: false
- name: "snowdrop-googledocs"
persistentVolumeClaim:
claimName: "snowdrop-googledocs"
readOnly: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment