Skip to content

Commit

Permalink
Updates on files
Browse files Browse the repository at this point in the history
Added changeset on workflow
  • Loading branch information
Alexander Rogalskiy committed Sep 2, 2021
1 parent c847992 commit b33060a
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 11 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -127,5 +127,4 @@ helm-dev: clean helm-lint helm-package
# Run okteto build command.
.PHONY: okteto
okteto:
okteto build -t styled-java-patterns:dev --target dev .
okteto build -t styled-java-patterns .
okteto build -t alexanderr/styled-java-patterns .
8 changes: 4 additions & 4 deletions charts/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ spec:
{{ $key }}: {{ $value | quote }}
{{- end }}
spec:
# {{- with .Values.image.pullSecrets }}
# imagePullSecrets:
# {{- toYaml . | nindent 8 }}
# {{- end }}
{{- with .Values.image.pullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
terminationGracePeriodSeconds: 30
{{- if .Values.serviceAccount.enabled }}
serviceAccountName: {{ include "backend-java-patterns.serviceAccountName" . }}
Expand Down
6 changes: 3 additions & 3 deletions okteto-pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
icon: https://okteto.com/icons/icon-384x384.png
deploy:
# - okteto build -t styled-java-patterns:${OKTETO_GIT_COMMIT} .
- okteto build -t alexanderr/styled-java-patterns:${OKTETO_GIT_COMMIT} .
# - kubectl create clusterrolebinding kube-system-cluster-admin --clusterrole=cluster-admin --serviceaccount=kube-system:default
# - kubectl create role access-secrets --verb=get,list,watch,update,create --resource=secrets
# - kubectl create rolebinding --role=access-secrets default-to-secrets --serviceaccount=kube-system:default
- helm upgrade --install backend-java-patterns -f charts/values.yaml --create-namespace --namespace webapp charts --set tag=${OKTETO_GIT_COMMIT}
# - kubectl apply -f k8s/backend/deployment.yaml
# - helm upgrade --install backend-java-patterns -f charts/values.yaml --create-namespace --namespace webapp charts --set tag=${OKTETO_GIT_COMMIT}
- kubectl apply -f k8s/backend/deployment.yaml
devs:
- okteto.yml
22 changes: 20 additions & 2 deletions okteto.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,31 @@
name: styled-java-patterns
image: styled-java-patterns
labels:
app.kubernetes.io/part-of: devops
app.kubernetes.io/component: documentation
environment:
- ENVIRONMENT=Development
# command: [ "dotnet", "watch", "run" ]
workdir: .
remote: 2222
# sync:
# - .:/docs
resources:
requests:
memory: "64Mi"
cpu: "250m"
limits:
memory: "128Mi"
cpu: "500m"
forward:
- 8000:8000
persistentVolume:
enabled: false
lifecycle:
postStart: false
postStop: true
securityContext:
runAsUser: 1000
runAsGroup: 2000
fsGroup: 3000
capabilities:
add:
- SYS_PTRACE

0 comments on commit b33060a

Please sign in to comment.