working with images
This commit is contained in:
@@ -39,13 +39,57 @@ spec:
|
||||
spec:
|
||||
description: ImageSpec defines the desired state of Image
|
||||
properties:
|
||||
args:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
command:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
init_script:
|
||||
properties:
|
||||
args:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
command:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
image:
|
||||
type: string
|
||||
required:
|
||||
- args
|
||||
- command
|
||||
- image
|
||||
type: object
|
||||
location:
|
||||
type: string
|
||||
name:
|
||||
description: |-
|
||||
INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
|
||||
Important: Run "make" to regenerate code after modifying this file
|
||||
type: string
|
||||
ports:
|
||||
items:
|
||||
properties:
|
||||
port:
|
||||
format: int32
|
||||
type: integer
|
||||
protocol:
|
||||
description: Protocol defines network protocols supported for
|
||||
things like container ports.
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
working_dir:
|
||||
type: string
|
||||
required:
|
||||
- location
|
||||
- name
|
||||
- ports
|
||||
- working_dir
|
||||
type: object
|
||||
type: object
|
||||
served: true
|
||||
|
||||
@@ -19,6 +19,7 @@ rules:
|
||||
- pods
|
||||
verbs:
|
||||
- create
|
||||
- delete
|
||||
- get
|
||||
- list
|
||||
- watch
|
||||
|
||||
@@ -4,6 +4,20 @@ metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: kubernetes-operator
|
||||
app.kubernetes.io/managed-by: kustomize
|
||||
name: image-sample
|
||||
name: minecraft-paper-1-21-4
|
||||
spec:
|
||||
# TODO(user): Add fields here
|
||||
location: git.acooldomain.co/server-manager/minecraft:paper-1.21.4
|
||||
name: minecraft:paper-1.21.4
|
||||
working_dir: /opt/server
|
||||
ports:
|
||||
- port: 25565
|
||||
protocol: TCP
|
||||
|
||||
init_script:
|
||||
image: alpine:latest
|
||||
command:
|
||||
- /bin/sh
|
||||
args:
|
||||
- /bin/sh
|
||||
- "-c"
|
||||
- "echo eula=true >> /data/eula.txt"
|
||||
|
||||
@@ -11,8 +11,7 @@ spec:
|
||||
"on": true
|
||||
server:
|
||||
"on": true
|
||||
image: git.acooldomain.co/server-manager/minecraft:paper-1.21.4
|
||||
working_dir: /opt/server
|
||||
image: minecraft-paper-1-21-4
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 25565
|
||||
|
||||
Reference in New Issue
Block a user