This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
status: | |
loadBalancer: | |
ingress: | |
- ip: 172.x.x.x |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ kubectl get cm -n ingress-nginx | |
NAME DATA AGE | |
ingress-controller-leader 0 16d | |
ingress-controller-leader-nginx 0 2y42d |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kubectl logs -f deploy/nginx-ingress-controller \ | |
-- all-containers=true \ | |
-n ingress-nginx | egrep -i "fail|error" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
spec: | |
rules: | |
- host: my-app.domain.io | |
http: | |
paths: | |
- backend: | |
serviceName: my-app | |
servicePort: 80 | |
path: / | |
pathType: ImplementationSpecific |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2022/02/11 20:04:18 [error] 14457#14457: *74949988 upstream timed out (110: Operation timed out) while reading response header from upstream, client: x.x.x.x, server: my-app.subdomain.domain.io, request: "POST /extract_and_link HTTP/1.1", upstream: "http://x.x.x.x:8181/extract_and_link", host: "my-app.subdomain.domain.io" | |
E0211 20:04:20.214789 7 leaderelection.go:367] Failed to update lock: configmaps "ingress-controller-leader" is forbidden: User "system:serviceaccount:ingress-nginx:nginx-ingress-serviceaccount" cannot update resource "configmaps" in API group "" in the namespace "ingress-nginx" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: Role | |
metadata: | |
labels: | |
app.kubernetes.io/name: ingress-nginx | |
app.kubernetes.io/part-of: ingress-nginx | |
name: nginx-ingress-role | |
namespace: ingress-nginx | |
rules: | |
- apiGroups: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: Role | |
metadata: | |
labels: | |
app.kubernetes.io/name: ingress-nginx | |
app.kubernetes.io/part-of: ingress-nginx | |
name: nginx-ingress-role | |
namespace: ingress-nginx | |
rules: | |
- apiGroups: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
stages: | |
- dev | |
- staging | |
- production | |
## | |
## Child pipeline | |
## Job: Terraform main pipeline: Init, validate, fmt, plan and apply | |
## Env: Dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.prepare: | |
before_script: | |
- | | |
#!/bin/bash | |
set -e | |
if [[ ! -z $AWS_ACCOUNT_ID && ! -z $AWS_IAM_ROLE ]] | |
then | |
echo 'Assuming role...' | |
session_name="${CI_COMMIT_SHORT_SHA}-`date +%Y%m%d`" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.retrieve-secret-values: | |
before_script: | |
- | | |
#!/bin/bash | |
set -e | |
if [[ ! -z $AWS_ACCOUNT_ID && ! -z $AWS_IAM_ROLE && ! -z $AWS_REGION ]] | |
then | |
echo 'Assuming role...' | |
session_name="${CI_COMMIT_SHORT_SHA}-`date +%Y%m%d`" |