Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More dev env improvements #4256

Merged
merged 1 commit into from
Dec 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions kustomize/base/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ kind: Service
metadata:
name: kotsadm
labels:
kots.io/kotsadm: 'true'
kots.io/backup: velero
app: kotsadm
annotations:
dev.okteto.com/auto-ingress: "true"
Expand Down
2 changes: 1 addition & 1 deletion kustomize/overlays/kotsstore/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
- name: S3_BUCKET_NAME
value: "shipbucket"
- name: S3_ENDPOINT
value: http://kotsadm-s3:4569/
value: http://kotsadm-minio:4569/
- name: S3_ACCESS_KEY_ID
value: not-a-key
- name: S3_SECRET_ACCESS_KEY
Expand Down
7 changes: 4 additions & 3 deletions kustomize/overlays/kotsstore/minio/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ data:
kind: Secret
metadata:
labels:
app: minio
release: minio
name: minio
kots.io/kotsadm: 'true'
kots.io/backup: velero
app: kotsadm-minio
name: kotsadm-minio
type: Opaque
10 changes: 5 additions & 5 deletions kustomize/overlays/kotsstore/minio/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ apiVersion: v1
kind: Service
metadata:
labels:
app: minio
release: minio
name: kotsadm-s3
kots.io/kotsadm: 'true'
kots.io/backup: velero
app: kotsadm-minio
name: kotsadm-minio
spec:
ports:
- name: service
port: 4569
protocol: TCP
targetPort: 9000
selector:
app: minio
release: minio
app: kotsadm-minio
type: ClusterIP
29 changes: 12 additions & 17 deletions kustomize/overlays/kotsstore/minio/statefulset.yaml
Original file line number Diff line number Diff line change
@@ -1,27 +1,22 @@
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: kotsadm-minio
labels:
app: minio
release: minio
kots.io/backup-type: admin-console
name: minio
kots.io/kotsadm: 'true'
kots.io/backup: velero
spec:
serviceName: minio
serviceName: kotsadm-minio
selector:
matchLabels:
app: minio
release: minio
app: kotsadm-minio
template:
metadata:
labels:
app: minio
release: minio
kots.io/backup-type: admin-console
annotations:
backup.velero.io/backup-volumes: miniodata
kots.io/backup-type: admin-console
name: minio
kots.io/kotsadm: 'true'
kots.io/backup: velero
app: kotsadm-minio
name: kotsadm-minio
spec:
securityContext:
runAsUser: 1001
Expand All @@ -35,12 +30,12 @@ spec:
valueFrom:
secretKeyRef:
key: accesskey
name: minio
name: kotsadm-minio
- name: MINIO_SECRET_KEY
valueFrom:
secretKeyRef:
key: secretkey
name: minio
name: kotsadm-minio
- name: MINIO_BROWSER
value: "on"
image: kotsadm/minio:0.20231101.183725
Expand All @@ -55,7 +50,7 @@ spec:
periodSeconds: 30
successThreshold: 1
timeoutSeconds: 1
name: minio
name: kotsadm-minio
ports:
- containerPort: 9000
name: service
Expand Down
12 changes: 12 additions & 0 deletions migrations/kustomize/overlays/dev/rqlite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ kind: Service
metadata:
name: kotsadm-rqlite
labels:
kots.io/kotsadm: 'true'
kots.io/backup: velero
app: kotsadm-rqlite
spec:
type: ClusterIP
Expand All @@ -18,6 +20,9 @@ apiVersion: v1
kind: Service
metadata:
name: kotsadm-rqlite-headless
labels:
kots.io/kotsadm: 'true'
kots.io/backup: velero
spec:
type: ClusterIP
clusterIP: None
Expand All @@ -34,6 +39,8 @@ kind: Secret
metadata:
name: kotsadm-rqlite
labels:
kots.io/kotsadm: 'true'
kots.io/backup: velero
app: kotsadm-rqlite
type: Opaque
data:
Expand All @@ -45,6 +52,9 @@ apiVersion: apps/v1
kind: StatefulSet
metadata:
name: kotsadm-rqlite
labels:
kots.io/kotsadm: 'true'
kots.io/backup: velero
spec:
replicas: 1
serviceName: kotsadm-rqlite-headless
Expand All @@ -55,6 +65,8 @@ spec:
template:
metadata:
labels:
kots.io/kotsadm: 'true'
kots.io/backup: velero
app: kotsadm-rqlite
spec:
containers:
Expand Down
9 changes: 0 additions & 9 deletions skaffold.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,6 @@ manifests:
deploy:
kubectl: {}
statusCheckDeadlineSeconds: 240
portForward:
- resourceType: service
resourceName: kotsadm
port: 3000
localPort: 30000
- resourceType: service
resourceName: kurl-proxy
port: 8800
localPort: 30880
profiles:
- name: kotsstore
activation:
Expand Down
Loading