Skip to content

Commit b33060a

Browse files
author
Alexander Rogalskiy
committed
Updates on files
Added changeset on workflow
1 parent c847992 commit b33060a

File tree

4 files changed

+28
-11
lines changed

4 files changed

+28
-11
lines changed

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,5 +127,4 @@ helm-dev: clean helm-lint helm-package
127127
# Run okteto build command.
128128
.PHONY: okteto
129129
okteto:
130-
okteto build -t styled-java-patterns:dev --target dev .
131-
okteto build -t styled-java-patterns .
130+
okteto build -t alexanderr/styled-java-patterns .

charts/templates/deployment.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ spec:
2828
{{ $key }}: {{ $value | quote }}
2929
{{- end }}
3030
spec:
31-
# {{- with .Values.image.pullSecrets }}
32-
# imagePullSecrets:
33-
# {{- toYaml . | nindent 8 }}
34-
# {{- end }}
31+
{{- with .Values.image.pullSecrets }}
32+
imagePullSecrets:
33+
{{- toYaml . | nindent 8 }}
34+
{{- end }}
3535
terminationGracePeriodSeconds: 30
3636
{{- if .Values.serviceAccount.enabled }}
3737
serviceAccountName: {{ include "backend-java-patterns.serviceAccountName" . }}

okteto-pipeline.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
icon: https://okteto.com/icons/icon-384x384.png
22
deploy:
3-
# - okteto build -t styled-java-patterns:${OKTETO_GIT_COMMIT} .
3+
- okteto build -t alexanderr/styled-java-patterns:${OKTETO_GIT_COMMIT} .
44
# - kubectl create clusterrolebinding kube-system-cluster-admin --clusterrole=cluster-admin --serviceaccount=kube-system:default
55
# - kubectl create role access-secrets --verb=get,list,watch,update,create --resource=secrets
66
# - kubectl create rolebinding --role=access-secrets default-to-secrets --serviceaccount=kube-system:default
7-
- helm upgrade --install backend-java-patterns -f charts/values.yaml --create-namespace --namespace webapp charts --set tag=${OKTETO_GIT_COMMIT}
8-
# - kubectl apply -f k8s/backend/deployment.yaml
7+
# - helm upgrade --install backend-java-patterns -f charts/values.yaml --create-namespace --namespace webapp charts --set tag=${OKTETO_GIT_COMMIT}
8+
- kubectl apply -f k8s/backend/deployment.yaml
99
devs:
1010
- okteto.yml

okteto.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,31 @@
11
name: styled-java-patterns
22
image: styled-java-patterns
3+
labels:
4+
app.kubernetes.io/part-of: devops
5+
app.kubernetes.io/component: documentation
36
environment:
47
- ENVIRONMENT=Development
58
# command: [ "dotnet", "watch", "run" ]
69
workdir: .
710
remote: 2222
8-
# sync:
9-
# - .:/docs
11+
resources:
12+
requests:
13+
memory: "64Mi"
14+
cpu: "250m"
15+
limits:
16+
memory: "128Mi"
17+
cpu: "500m"
1018
forward:
1119
- 8000:8000
1220
persistentVolume:
1321
enabled: false
22+
lifecycle:
23+
postStart: false
24+
postStop: true
25+
securityContext:
26+
runAsUser: 1000
27+
runAsGroup: 2000
28+
fsGroup: 3000
29+
capabilities:
30+
add:
31+
- SYS_PTRACE

0 commit comments

Comments
 (0)