add k8s
This commit is contained in:
parent
157c27f313
commit
cfe0598a26
12
k8s/aios-claim0-persistentvolumeclaim.yaml
Normal file
12
k8s/aios-claim0-persistentvolumeclaim.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
labels:
|
||||
io.kompose.service: aios-claim0
|
||||
name: aios-claim0
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 100Mi
|
57
k8s/aios-deployment.yaml
Normal file
57
k8s/aios-deployment.yaml
Normal file
@ -0,0 +1,57 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
annotations:
|
||||
kompose.cmd: kompose convert -f ../compose.yml
|
||||
kompose.version: 1.32.0 (HEAD)
|
||||
labels:
|
||||
io.kompose.service: aios
|
||||
name: aios
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
io.kompose.service: aios
|
||||
strategy:
|
||||
type: Recreate
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
kompose.cmd: kompose convert -f ../compose.yml
|
||||
kompose.version: 1.32.0 (HEAD)
|
||||
labels:
|
||||
io.kompose.network/bot-default: "true"
|
||||
io.kompose.service: aios
|
||||
spec:
|
||||
containers:
|
||||
- env:
|
||||
- name: ADMIN
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: ADMIN
|
||||
name: env
|
||||
- name: HANDLE
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: HANDLE
|
||||
name: env
|
||||
- name: HOST
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: HOST
|
||||
name: env
|
||||
- name: PASSWORD
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: PASSWORD
|
||||
name: env
|
||||
image: aios
|
||||
name: aios
|
||||
volumeMounts:
|
||||
- mountPath: /root/.config
|
||||
name: aios-claim0
|
||||
restartPolicy: Always
|
||||
volumes:
|
||||
- name: aios-claim0
|
||||
persistentVolumeClaim:
|
||||
claimName: aios-claim0
|
11
k8s/env-configmap.yaml
Normal file
11
k8s/env-configmap.yaml
Normal file
@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
data:
|
||||
ADMIN: syui.syu.is
|
||||
HANDLE: ai.syu.is
|
||||
HOST: syu.is
|
||||
PASSWORD: test01234
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
labels:
|
||||
io.kompose.service: aios-env
|
||||
name: env
|
Loading…
Reference in New Issue
Block a user