Totally revamp cluster chart configs
This commit is contained in:
29
charts/busynix/busynix.yaml
Normal file
29
charts/busynix/busynix.yaml
Normal file
@@ -0,0 +1,29 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: busynix
|
||||
labels:
|
||||
app: busynix
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: busynix
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: busynix
|
||||
spec:
|
||||
dnsPolicy: Default
|
||||
containers:
|
||||
- image: registry.gitlab.com/serit/k8s/busynix:1.1
|
||||
name: busynix
|
||||
imagePullPolicy: IfNotPresent
|
||||
command:
|
||||
- /bin/sh
|
||||
- "-c"
|
||||
- "while true; do echo ping | nc -l -p 8000; done"
|
||||
ports:
|
||||
- containerPort: 8000
|
||||
imagePullSecrets:
|
||||
- name: gitlab-pull-secret
|
||||
12
charts/busynix/deploy.sh
Executable file
12
charts/busynix/deploy.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
namespace=default
|
||||
|
||||
charts=(
|
||||
busynix.yaml
|
||||
)
|
||||
|
||||
. ../config.sh
|
||||
|
||||
kubectl_apply $namespace "${charts[@]}"
|
||||
|
||||
Reference in New Issue
Block a user